NFT

NFT provides the ability to digitize assets. Through this module, each off-chain asset will be modeled as a unique on-chain nft.

Available Commands

NameDescription
issueSpecify the nft Denom (nft classification) and metadata JSON Schema to issue nft.
transfer-denomThe owner of the NFT classification can transfer the ownership of the NFT classification to others.
mintAdditional issuance (create) of specific nft of this type can be made.
editThe metadata of the specified nft can be updated.
transferTransfer designated nft.
burnDestroy the created nft.
supplyQuery the total amount of nft according to Denom; accept the optional owner parameter.
ownerQuery all nft owned by an account; you can specify the Denom parameter.
collectionQuery all nft according to Denom.
denomQuery nft denom information based on Denom.
denomsQuery the total amount of nft according to Denom; accept the optional owner parameter.
tokenQuery specific nft based on Denom and ID.

iris tx nft issue

Specify the nft Denom (nft classification) and metadata JSON Schema to issue nft.

iris tx nft issue [denom-id] [flags]

Flags:

Name, shorthandRequiredDefaultDescription
--nameThe name of the denom
--uriThe uri of the denom
--dataOff-chain metadata for supplementation (JSON object)
--schemaDenom data structure definition
--symbolThe symbol of the denom
--mint-restrictedThis field indicates whether there are restrictions on the issuance of NFTs under this classification, true means that only Denom owners can issue NFTs under this classification, false means anyone can
--update-restrictedThis field indicates whether there are restrictions on updating NFTs under this classification, true means that no one under this classification can update the NFT, false means that only the owner of this NFT can update

iris tx nft transfer-denom

The owner of the NFT classification can transfer the ownership of the NFT classification to others.

iris tx nft transfer-denom [recipient] [denom-id]

iris tx nft mint

Additional issuance (create) of specific nft of this type can be made.

iris tx nft mint [denomID] [tokenID] [flags]

Flags:

Name, shorthandRequiredDefaultDescription
--uriURI of off-chain token data
--recipientReceiver of the nft
--nameThe name of nft

iris tx nft edit

The metadata of the specified nft can be updated.

iris tx nft edit [denomID] [tokenID] [flags]

Flags:

Name, shorthandRequiredDefaultDescription
--uriURI of off-chain token data
--nameThe name of nft

iris tx nft transfer

Transfer designated nft.

iris tx nft transfer [recipient] [denomID] [tokenID] [flags]

Flags:

Name, shorthandRequiredDefaultDescription
--uriURI of off-chain token data
--nameThe name of nft

iris tx nft burn

Destroy the created nft.

iris tx nft burn [denomID] [tokenID] [flags]

iris query nft

Query nft

iris query nft supply

iris query nft supply [denomID]
iris query nft supply [denomID] --owner=<owner address>

iris query nft owner

iris query nft owner [owner address]
iris query nft owner [owner address] --denom=<denomID>

iris query nft collection

iris query nft collection [denomID]

iris query nft denom

iris query nft denom [denomID]

iris query nft denoms

iris query nft denoms

iris query nft token

iris query nft token [denomID] [tokenID]