Auction
NFTs can also be put on Auction Sale using sellNFT_byBid function of NFTBid contract. An auction sale is the sale of goods through a bidding process.
SellNFT_byBid(
address _collectionAddress,
uint256 _tokenId,
uint256 _price,
uint256 _bidTime
)
- _collectionAddress: address of collection
- _tokenId: Id of token willing to sell
- _price: selling price
- _bidTime: time till NFT is on auction
It emits an event:
TokenMetaReturn(meta, _tokenIdTracker.current())
- meta: TokenMeta struct
- _tokenIdTracker.current(): a counter tracking current token Id