Simple Examples Showing How To Trade Digital Assets
Protokol NFT set comes with full trading capabilities built-in and tracked on the digital ledger. In the following section we are going to explain the basic trading process supported with code examples.
STEP 1. Auction Creation And Cancellation
We can open a new auction by using the NFTAuction Transaction Type. Auction can set the following fields:
startAmount - minimal starting amount
expiration - set in block height (when we stop accepting bid for our items)
nftIds - list of owned items we want to auction
Only an auction owner can cancel an auction.
How To Create An Auction
examples/nft-auction.ts at develop · protokol/examples