/marketplace

This is the repository with the code to deploy an NFT Marketplace module using the oNFT standard

Primary LanguageGo

marketplace

CLI Commands

Queries

Querying commands for the marketplace module

Usage:

  marketplaced query marketplace [flags]
  marketplaced query marketplace [command]

Available Commands:

  listing           
  listings          
  listings-by-owner 
  auction
  auctions
  auctions-by-owner
  bid
  bids
  params
  • Get Listings

    usage:

     marketplaced q marketplace listings [Flags]

    Flags:

    owner: get listings of a specfic account address

    pagination flags: count-toal, limit, offset etc ..

  • Get Listing Details

    usage:

     marketplaced q marketplace listing [listingId] [Flags]

    args:

    listingsId: listing id

  • Get Listings by owner

    usage:

     marketplaced q marketplace listings-by-owner  [owner] [Flags]

    args:

    owner: bech32 account address

  • Get Auctions

    usage:

     marketplaced q marketplace auctions [Flags]

    Flags:

    owner: get auctions of a specfic account address

    pagination flags: count-toal, limit, offset etc ..

  • Get Auction

    usage:

     marketplaced q marketplace auction <auction-id> [Flags]
  • Get Auction Bid usage:

     marketplaced q marketplace bid <auction-id> [Flags]

Transactions

marketplace transactions subcommands

Usage:

marketplaced tx marketplace [flags]
marketplaced tx marketplace [command]

Available Commands:

list-nft     - List an nft on marketplace
buy-nft      - Buy an nft from marketplace
de-list-nft  - DeList an nft from marketplace
edit-listing - Edit active listing on marketplace

Listings

  • List NFT

    usage:

    marketplaced tx marketplace list-nft [flags]

    Example:

    marketplaced tx marketplace list-nft 
      --nft-id="nft_id"
      --denom-id="denom_id"
      --price="10000000uflix"
      --from=test-key
      --chain-id="chain_id"
      --fees="200uflix"

    For splitting sale amount between multiple accounts use split-shares

    --split-shares="address:percentage,address:percentage"

    Example:

    --split-shares "omniflix1e49p22vz8w5nyer77gl0nhs2puumu3jdel822w:0.70,omniflix1muyp5qvz7e6qd8wkpxex0h963um962qcd777ez:0.30"
  • Buy NFT

    usage:

    marketplaced tx marketplace buy-nft [flags]

    Example:

    marketplaced tx marketplace buy-nft [listing-id]--price=<price> --from=<key-name> --chain-id=<chain-id> --fees=<fee>
  • DeList NFT

    usage:

    marketplaced tx marketplace de-list-nft [flags]

    Example:

    marketplaced tx marketplace de-list-nft [listing-id] --from=<key-name> --chain-id=<chain-id> --fees=<fee>

Auctions

  • Create Auction

    usage:

    marketplaced tx marketplace create-auction [flags]

    Example:

    marketplaced tx marketplace create-auction 
      --nft-id=<nft_id>  
      --denom-id=<denom_id>  
      --start-price=1000000uflix 
      --start-time="2022-11-27T17:26:00.000Z" 
      --from=<key-name> 
      --chain-id=<chain-id>
      --fees=<fee>
  • Cancel Auction (only allowed when there are no bids)

    usage:

    marketplaced tx marketplace cancel-auction [auction-id] [flags]

    Example:

    marketplaced tx marketplace cancel-auction <auction_id> 
      --chain-id=<chain_id> 
      --from=<key-name> 
      --fees=<fee>
  • Place Bid

    usage:

    marketplaced tx marketplace place-bid [auction-id] [flags]

    Example:

      marketplaced tx marketplace place-bid <auction-id> 
        --amount=<bid_amount> 
        --chain-id=<chain_id> 
        --from=<key-name> 
        --fees=<fee>