Skip to content

SputnikNetwork/onft

This branch is 49 commits behind OmniFlix/onft:main.

Folders and files

NameName
Last commit message
Last commit date
Aug 14, 2021
Nov 16, 2021
Dec 27, 2021
Nov 16, 2021
Aug 14, 2021
Nov 9, 2021
Nov 24, 2021
Nov 23, 2021
Aug 14, 2021
Aug 14, 2021
Oct 27, 2021
Nov 23, 2021
Aug 14, 2021
Aug 14, 2021
Aug 14, 2021
Nov 23, 2021
Nov 24, 2021
Nov 24, 2021
Oct 27, 2021
Oct 21, 2021
Dec 21, 2021

Repository files navigation

oNFT

oNFT - OmniFlix NFT Module

The code for this module is initially taken from the irismod/nft repository and modified according the structure of oNFT.

CLI Commands

Queries

  • Get List of denoms (collections)

    onftd query onft denoms
  • Get Denom details by it's Id

    onftd query onft denom <denom-id>
  • Get List of NFTs in a collection

    onftd query onft collection <denom-id>
  • Get Total Count of NFTs in a collection

    onftd query onft supply <denom-id>
  • Get NFT details by it's Id

    onftd query onft asset <denom-id> <nft-id>
  • Get All NFTs owned by an address

    onftd query onft owner <account-address>

Transactions

  • Create Denom / Collection

    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>
  • Mint NFT

    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>
  • Transfer NFT

    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>
  • Burn NFT

    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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.3%
  • Makefile 1.3%
  • Shell 0.4%