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 an ERC721

Simple example of how to deploy a ERC721 contract

PreviousCreate an ERC1155NextCreate your NFT Art Gallery

Last updated 2 years ago

In order to instantiate the ERC721 a instance object or a object must be provided.

import {Erc721Standard} from '@taikai/dappkit'

/* Deploying your NFT */
const deployer = new Erc721Standard({
  web3Host: 'https://localhost:1337',
  privateKey: 'ub3rPr1v47eK'
});

deployer.connection.start();
deployer.loadAbi();

let receipt;

receipt = await deployer.deployJsonAbi('My NFT Name', '$MyNftSymbol');
console.log('deployed!', receipt);

/* Using your NFT after deployment */
const myNFT = new Erc721Standard(deployer.connection, receipt.contractAddress);

await myNFT.loadContract();

receipt = await myNFT.mint('0xMyAddress', 'tokenId-1');
console.log('Minted!', receipt);

Web3Connection
Web3ConnectionOptions