oNFT - OmniFlix NFT Module
The code for this module is initially taken from the irismod/nft repository and modified according the structure of oNFT.
-
onftd query onft denoms
-
onftd query onft denom <denom-id>
-
onftd query onft collection <denom-id>
-
onftd query onft supply <denom-id>
-
onftd query onft asset <denom-id> <nft-id>
-
onftd query onft owner <account-address>
-
Usage
onftd tx onft create [symbol] [flags]
Flags:
- name : name of denom/collection
- description: description for the denom
- preview-uri: display picture url for denom
- schema: json schema for additional properties
Example:
onftd tx onft create <symbol> --name=<name> --description=<description> --preview-uri=<preview-uri> --schema=<schema> --chain-id=<chain-id> --fees=<fee> --from=<key-name>
-
Usage
onftd tx onft mint [denom-id] [flags]
Flags:
- name : name of denom/collection (string)
- description: description of the denom (string)
- media-uri: ipfs uri of the nft (url)
- preview-uri: preview uri of the nft (url)
- data: additional nft properties (json string)
- recipient: recipient of the nft (optional, default: minter of the nft)
Example:
onftd tx onft mint <denom-id> --name=<name> --description=<description> --media-uri=<preview-uri> --preview-uri=<preview-uri> --data=<additional nft data json string> --recipient=<recipient-account-address> --chain-id=<chain-id> --fees=<fee> --from=<key-name>
-
Usage
onftd tx onft transfer [recipient] [denom-id] [onft-id] [flags]
Example:
onftd tx onft transfer <recipient> <denom-id> <nft-id> --chain-id=<chain-id> --fees=<fee> --from=<key-name>
-
Usage
onftd tx onft burn [denom-id] [onft-id] [flags]
Example:
onftd tx onft burn <denom-id> <nft-id> --chain-id=<chain-id> --fees=<fee> --from=<key-name>