Sell


Selling of NFTs can be performed using sellNFT function of NFTFactoryContract1155.sol contract.

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

It emits an event:

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