NFT Functions

How to use NFT model using mitumjs SDK.

  1. Create a contract-account first using function of contract class. The account must be deployed on the Mitum network. (Create an operation with contract.createAccount() or contract.createWallet(), and use operation.sign() and operation.send(), or use contract.touch() to sign and send at once.)

  2. Create a new collection using an operation to register new NFT model. The function called registerModel() generate the operation.

  3. Sign and send the operation to Mitum network. (You can check whether the collection information has been properly registered using the getModelInfo() function.)

  4. The owner of the contract-account or account in white-list of the collection can mint the new NFT. Use the function mint() to make raw operation.

  5. Sign and send the operation to Mitum network.

Last updated