idexo
Search…
Create a BEP721 Non-Fungible Token (NFT) Minter on Binance Smart Chain Mainnet
How to create an NFT Minter on Binance Smart Chain Mainnet in one line of code.
To use this method, you need an idexo API key that has been upgraded to a customer API key. To upgrade, please contact us.
Assuming you have installed the SDK, you can use the following code in your file (instructions on modifying it follows - for more information on how to use it see our Getting Started tutorial):
1
const ido = require('idexo-sdk')
2
ido.Binance.deployBEP721('My First Mainnet Minter', 'MFMM', apiKey)
3
.then((res) => console.log(res.data))
Copied!
If you run that code (e.g. if you called that file index.js and ran 'node index.js' from within its directory), you will get back the address of the created contract on the blockchain. To see a live example of a contract created with the above code see: https://bscscan.com/address/0x6c5e15a249f9ef191f01f5dd9559be1b6e302477.
To customize the above code you need:
    1.
    The name of the NFT minter. Replace 'My First Mainnet Minter' with that. For example you could call it 'My Awesome Art'.
    2.
    The symbol of the token. Replace 'MFMM' with that. For example you could call it 'MAA'.
    3.
    Your idexo API key that has been upgraded to a customer API key.
Using the above examples, your code would become:
1
const ido = require('idexo-sdk')
2
ido.Binance.deployBEP721('My Awesome Art', 'MAA', apiKey)
3
.then((res) => console.log(res.data))
Copied!
The method in summary is:
ido.Binance.deployBEP721(name, symbol, apiKey)
Last modified 6mo ago
Copy link