我可以仅使用代码将NFT(ERC-721)发送到钱包吗?

发布于 2025-02-04 06:33:18 字数 107 浏览 2 评论 0原文

我可以仅使用代码(后端)将NFT(ERC-721)从(分散)发送到钱包吗?

我用作提供商(infura)和图书馆(Ethers.js)。

我很感谢您遵循道路的任何其他建议。

Can I send an NFT (erc-721) from (Decentraland) to a wallet using only code (backend)?

I am using as a provider (infura) and as a library (ethers.js).

I would appreciate any additional suggestions to follow a path.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天生の放荡 2025-02-11 06:33:18

是的,您可以,但是您需要与合同进行互动以转让ERC721令牌。

在这里看
https://docs.openzeppelin.com/contracts/contracts/3.x/ api/token/erc721

at safetransferfrom方法。您可以从具有NFT的帐户调用此方法,并将其传输到“ _to”帐户。

Yes, you can, but you will need to interact with a contract to transfer ERC721 token.

Look here
https://docs.openzeppelin.com/contracts/3.x/api/token/erc721

at safeTransferFrom method. You can call this method from an account that has the NFT and it will transfer it to '_to' account.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文