Comment on page
Create your NFT Art Gallery
A simple NFT Collectibles contract where you can create a limited set of NFTs available
Details
- All NFTs have the same price
setPricePerPack
- All NFTs are identified via the metadata via a
baseURI
&tokenURI
- These can be created with an unlimited Amount of Packs or unlimited by providing
limitedAmount
as0
- A tokenURI can be set to provide Information Metadata for each NFT at
setTokenURI
to make all NFT have the same URI - examplehttps://bepronetwork.github.io/B.E.P.R.O/meta/
- This will make the tokenID the suffix of the
baseURI
- for example for the NFT number 1, thetokenURI
will behttps://bepronetwork.github.io/B.E.P.R.O/meta/1
- structure asbaseURI + tokenURI
- This will make systems such as opensea automatically gather the metadata for your NFT directly from your API
- You can also set each one independently via the call
setTokenURI(tokenId, url)
- this will make it abandon the baseURI standard - structure astokenURI
instance object of Web3ConnectionOptions
import { ERC721Collectibles } from '@taikai/dappkit';
const erc721Collectibles = new ERC721Collectibles({
web3Host: 'WEB3_LINK',
});
await erc721Contract.start();
await erc721Collectibles.loadAbi();
// Deploy
const transactionReceipt = await erc721Collectibles.deployJsonAbi(
"Art | BEPRO",
"B.E.P.R.O",
1000,
"0xDAI_ADDRESS",
"0xPURCHASE_TOKEN",
"0xBASE_FEE_ADDRESS",
"0xOTHER_ADDRESS"
);
console.log(transactionReceipt);
Looking for more functions?
Last modified 1yr ago