dappKit Documentation
  • About dappKit
  • Start building
    • Installation
    • How To Guides
      • Create a Web3Connection
      • Create an ERC20 Token
      • Create an ERC1155
      • Create an ERC721
      • Create your NFT Art Gallery
      • Create other Project
      • Create custom Object
    • Examples
  • Use Cases
  • How to Contribute
  • External Links
    • SDK Documentation
    • GitHub
  • Community
    • Discord Server
    • Support
Powered by GitBook
On this page
  1. Start building
  2. How To Guides

Create your NFT Art Gallery

PreviousCreate an ERC721NextCreate other Project

Last updated 3 years ago

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 as 0

  • A tokenURI can be set to provide Information Metadata for each NFT at setTokenURI to make all NFT have the same URI - example https://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, the tokenURI will be https://bepronetwork.github.io/B.E.P.R.O/meta/1 - structure as baseURI + tokenURI

    • Ensure the API returns data structures similar to

    • This will make systems such as 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 as tokenURI

In order to use ERC721Collectibles you also need to provide instance

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?

See all available functions

this one
opensea
Web3Connection
here