{"id":2361,"date":"2020-11-06T10:20:19","date_gmt":"2020-11-06T10:20:19","guid":{"rendered":"http:\/\/blog.mathwallet.org\/?p=2361"},"modified":"2022-06-08T07:16:04","modified_gmt":"2022-06-08T07:16:04","slug":"bsc-dapp-dev-tutorial3-how-to-create-a-bsc-nft-tok","status":"publish","type":"post","link":"https:\/\/blog.mathwallet.org\/?p=2361","title":{"rendered":"BSC DAPP Dev Tutorial\uff083\uff09- How to create a BSC NFT Token"},"content":{"rendered":"<p>BSC DAPP Dev Tutorial Serie<br \/>\n<a href=\"http:\/\/blog.mathwallet.org\/?tag=BSCdapp\">http:\/\/blog.mathwallet.org\/?tag=BSCdapp<\/a><\/p>\n<h2 id=\"toc_0\">Develop Environment<\/h2>\n<p>Please check the BSC DAPP Dev Tutorial\uff081\uff09<br \/>\n<a href=\"http:\/\/blog.mathwallet.org\/?p=2357\">http:\/\/blog.mathwallet.org\/?p=2357<\/a><\/p>\n<h2 id=\"toc_1\">Compile Contract<\/h2>\n<p>Open <a href=\"https:\/\/remix.ethereum.org\">https:\/\/remix.ethereum.org<\/a><\/p>\n<p>Delete the default files, and create a new file: NFT.sol<\/p>\n<p>Copy the Token.sol code from below repo<br \/>\n<a href=\"https:\/\/github.com\/mathwallet\/BSC-Contracts\/blob\/main\/Contracts\/NFT.sol\">https:\/\/github.com\/mathwallet\/BSC-Contracts\/blob\/main\/Contracts\/NFT.sol<\/a><\/p>\n<p>You need to modify NFTToken code based on your needs<br \/>\n<img src=\"http:\/\/qiniu.eth.fm\/2020-11-06-16046513970734.jpg\" alt=\"\" \/><\/p>\n<p>For example, you want to create a ColorNFT serie, and this NFT Token is named RED<br \/>\n<img src=\"http:\/\/qiniu.eth.fm\/2020-11-06-16046531242013.jpg\" alt=\"\" \/><\/p>\n<p>BaseURI is the meta data of the NFT token, format can be reference is below:<br \/>\n<a href=\"http:\/\/developer.mathwallet.org\/bsc\/nfttest\/#\">http:\/\/developer.mathwallet.org\/bsc\/nfttest\/#<\/a><\/p>\n<p>This json need to return a image URL for the NFT, ex:<br \/>\n<a href=\"http:\/\/developer.mathwallet.org\/bsc\/nfttest\/red.jpg\">http:\/\/developer.mathwallet.org\/bsc\/nfttest\/red.jpg<\/a><\/p>\n<p>Any user should be able to visit this image URL so that it can be showed in wallet and NFT markets.<\/p>\n<p>For compiler version, select 0.5.5<br \/>\n<img src=\"http:\/\/qiniu.eth.fm\/2020-11-06-16046533699220.jpg\" alt=\"\" \/><\/p>\n<h2 id=\"toc_2\">Deploy Contract<\/h2>\n<p><img src=\"http:\/\/qiniu.eth.fm\/2020-11-06-16046534642628.jpg\" alt=\"\" \/><\/p>\n<h2 id=\"toc_3\">Config Contract<\/h2>\n<p>After deployment, you need to verify the contract on Bscscan, steps can be found in tutorial 2<br \/>\n<a href=\"http:\/\/blog.mathwallet.org\/?p=2359\">http:\/\/blog.mathwallet.org\/?p=2359<\/a><\/p>\n<p>After verification, you need to use addMinter to add an address<br \/>\n<img src=\"http:\/\/qiniu.eth.fm\/2020-11-06-16046547018646.jpg\" alt=\"\" \/><\/p>\n<p>Then this address will be able to call mint function to mint NFT to others<br \/>\n<img src=\"http:\/\/qiniu.eth.fm\/2020-11-06-16046543017652.jpg\" alt=\"\" \/><\/p>\n<p>In the Bscscan contract URL, change contract to token, and you will able to review the detail NFT token information.<br \/>\n<a href=\"https:\/\/testnet.bscscan.com\/token\/0x\">https:\/\/testnet.bscscan.com\/token\/0x<\/a><\/p>\n<h2 id=\"toc_4\">Submit Token<\/h2>\n<p>Now you can deploy your NFT token in BSC mainnet, and submit your NFT token to MathWallet so that more people can receive and transfer it<br \/>\n<a href=\"http:\/\/hk.mikecrm.com\/diQs9M1\">http:\/\/hk.mikecrm.com\/diQs9M1<\/a><\/p>\n<p><img style=\"width: 300px;\" src=\"http:\/\/mathwallet.oss-cn-hangzhou.aliyuncs.com\/blog\/2020\/10%E6%9C%88\/BSC_NFT_EN\/N1%20-%20%E5%89%AF%E6%9C%AC.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>BSC DAPP Dev Tutorial Serie http:\/\/blog.mathwallet.org\/?tag=BSCdapp Develop Environment Please check the BSC DAPP Dev Tutorial\uff081\uff09 http:\/\/blog.mathwallet.org\/?p=2357 Compile Contract Open https:\/\/remix.ethereum.org Delete the default files, and create a new file: NFT.sol Copy the Token.sol code from below repo https:\/\/github.com\/mathwallet\/BSC-Contracts\/blob\/main\/Contracts\/NFT.sol You need to modify NFTToken code based on your needs For example, you want to create a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"unlock_protocol_post_locks":""},"categories":[1],"tags":[56,76,97],"_links":{"self":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/2361"}],"collection":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2361"}],"version-history":[{"count":4,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/2361\/revisions"}],"predecessor-version":[{"id":3898,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/2361\/revisions\/3898"}],"wp:attachment":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}