NFT Functions
How to use NFT model using mitumjs SDK.
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()
orcontract.createWallet()
, and useoperation.sign()
andoperation.send()
, or usecontract.touch()
to sign and send at once.)Create a new collection using an operation to register new NFT model. The function called
registerModel()
generate the operation.Sign and send the operation to Mitum network. (You can check whether the collection information has been properly registered using the
getModelInfo()
function.)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.Sign and send the operation to Mitum network.
Last updated