Search code examples
soliditysmartcontractsnft

How much nfts can be transferd on 1 smart contract?


I can't figure out if i need to Deploy a smart contract for each transfer? or can 1 smart contract serve several transactions? Thanks ahead


Solution

  • You don't need to deploy another smart contract to transfer NFTs.

    Info about each token ownership is stored in its collection contract. So you just need to execute the safeTransferFrom() function on the collection contract from the current owner address, passing it following params:

    1. current owner (_from)
    2. receiver (_to)
    3. token ID (_tokenId)

    There are several ways to execute the function from a regular (non-contract) address, for example using the UI of EtherScan/BSCScan under the Contract -> Write Contract section on the detail page of the collection contract address.

    Note: All assuming the collection contract follows the ERC-721 standard.