Mint an NFT on Binance Smart Chain

This describes how to mint an NFT with an associated token URI on the Binance Smart Chain.

To use this method, you need an idexo API key. You also need to have the address of an BEP721 contract that you have deployed, the address you are minting to and the URI for the metadata file for the NFT that you are minting.

Assuming you have installed the SDK, you can use the following code in your file (instructions on modifying it follows):

const ido = require('idexo-sdk')
ido.Binance.mintBEP721(contractAddress, mintToAddress, tokenUri, apiKey)

To customize the above code you need:

  1. The contract address. Replace contractAddress with that.

  2. The address you want to mint the NFT to. Replace mintToAddress with that.

  3. The URI of the token metadata file.

  4. Your idexo API key.

The method in summary is:

ido.Binance.mintBEP721(contractAddress, mintToAddress, tokenUri, apiKey)