简体   繁体   English

1 个智能合约可以转移多少 nft?

[英]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,并传递以下参数:

  1. current owner ( _from )当前所有者( _from
  2. receiver ( _to )接收者( _to
  3. token ID ( _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.

相关问题 一个智能合约可以持有多少个 NFT - How many NFTs can a smart contract hold 一个智能合约有多少个 NFT? - How many NFTs does a smart contract have? 如何部署具有链上 NFT 和复杂/长 svg 的智能合约? - How to deploy a smart contract with on-chain NFTs and complex/long svgs? ERC-721 智能合约一次铸造 2 个 NFT - ERC-721 Smart contract is minting 2 NFTs at a time 任何人都可以澄清用户在以太坊区块链上使用智能合约 function 需要多少费用吗? - Can anyone clarify how much cost it takes for a user to use a function of a smart contract on ethereum blockchain? 如何获取智能合约的json接口 - How can get json interface of the smart contract 我正在创建一个智能合约来与特定的 NFT 进行交互。 有没有function来过滤具体的NFT合约地址? - I'm creating a smart contract to interact with specific NFTs. Is there a function to filter a specific NFT contract address? 如何在我的网站中识别转移令牌的类型 - how can i identify type of transferd toke in my website 我们如何在智能合约中动态获取已部署智能合约的地址? - how we can get the address of a deployed smart contract in a smart contract dynamically? 我如何从 abi json 文件智能合约调用智能合约中的 function - how can i call a function in a smart contract from an abi json file smart contract
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM