Sell


Selling of NFTs can be performed using sellNFT function of NFTFactoryContract contract.

    sellNFT(
        address _collectionAddress,
        uint256 _tokenId,
        uint256 _price
    )
  • _collectionAddress: address of collection
  • _tokenId: Id of token willing to sell
  • _price: selling price

It emits an event:

    TokenMetaReturn(meta, _tokenIdTracker.current())
  • meta: TokenMeta struct
  • _tokenIdTracker.current(): a counter tracking current token Id