package.json
to use ES modules.
.env.example
as a template:
.env
and fill in your details securely.
The following code is a trimmed snippet from the full implementation available in the solayer-labs/solayer-devs GitHub repository.
It highlights only the core functionality—for example, reading NFT metadata, building Solana transactions, and minting the NFT. For complete logic including validation, logging, error handling, environment setup, and deployment indexing, please refer to the respective full files: • scripts/deploy_nft.js • config/index.js • scripts/setup.js
config/index.js
to centrally manage settings.
scripts/setup.js
.
assets/nft-metadata.json
:
scripts/deploy_nft.js
to:
scripts/deploy_nft.js
) focusing on the core functions. The full implementation (initialization, transaction confirmation, index updates, error handling, etc.) is available in the GitHub repo.
server/api.js
to track and manage NFT deployments.
Check the guide on Github for additional steps to configure your server.