如何判断交易是否与NFT(ERC721)交易有关

发布于 2025-02-02 03:12:43 字数 274 浏览 3 评论 0 原文

我们怎么能说以下交易是否与Etherscan中的NFT(ERC721)交易有关?

How can we say if the following transaction is related to NFT (ERC721) transaction or not in Etherscan?

https://etherscan.io/tx/0xe2be6b09de94d1e17e575141adfa4351d97fa1ca1a619a3397403c51db0fa6a1

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

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

发布评论

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

评论(1

我是有多爱你 2025-02-09 03:12:43

erc-721 标准标准定义 Transfer 必须要进行的事件在每个令牌传输中发出,包含3个主题:

  • 1st 索引主题是发件人地址
  • 2nd 索引主题是收件人地址
  • 3rd 索引>索引主题>主题是令牌ID

erc-20 标准标准定义了非常相似的传输事件,也有3个主题。但是,代表转移令牌数量的第三个主题是不是索引

因此,当您查看转移事件。他们俩都没有第三个主题,这意味着它们正在转移ERC-20令牌 - 而不是NFT。如果他们转移NFT,则第三个主题将为<代码>索引。

The ERC-721 standard defines Transfer event that has to be emitted with each token transfer, containing 3 topics:

  • 1st indexed topic is the sender address
  • 2nd indexed topic is the recipient address
  • 3rd indexed topic is the token ID

The ERC-20 standard defines a very similar Transfer event, also with 3 topics. But the 3rd topic, representing the amount of transferred tokens, is not indexed.

So when you look at the event logs produced by this transaction, there are two Transfer events. Both of them have the 3rd topic non-indexed, meaning they are transferring ERC-20 tokens - not NFTs. If they were transferring NFTs, the 3rd topic would be indexed.

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