[英]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?还是 1 个智能合约可以服务多个交易? Thanks ahead提前谢谢
You don't need to deploy another smart contract to transfer NFTs.你不需要部署另一个智能合约来转移 NFT。
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:因此,您只需从当前所有者地址对收集合同执行safeTransferFrom()
function,并传递以下参数:
_from
)当前所有者( _from
)_to
)接收者( _to
)_tokenId
)令牌 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.有几种方法可以从常规(非合约)地址执行 function,例如使用收集合约地址详细页面的Contract
-> Write Contract
部分下的 EtherScan/BSCScan 的 UI。
Note: All assuming the collection contract follows the ERC-721 standard.注意:所有假设收集合同遵循ERC-721标准。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.