简体   繁体   English

如何在 etherscan 中判断交易是否与 NFT (erc721) 交易相关

[英]How to tell if a transaction is related to an NFT (erc721) transaction or not in etherscan

How can we say if the following transaction is related to NFT (ERC721) transaction or not in Etherscan?我们如何判断以下交易是否与 Etherscan 中的 NFT(ERC721)交易相关?

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

The ERC-721 standard defines Transfer event that has to be emitted with each token transfer, containing 3 topics: ERC-721标准定义了每次令牌传输都必须发出的Transfer事件,包含 3 个主题:

  • 1st indexed topic is the sender address第一个indexed主题是发件人地址
  • 2nd indexed topic is the recipient address第二个indexed主题是收件人地址
  • 3rd indexed topic is the token ID第三个indexed主题是令牌 ID

The ERC-20 standard defines a very similar Transfer event, also with 3 topics. ERC-20标准定义了一个非常相似的Transfer事件,也有 3 个主题。 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.因此,当您查看此事务产生的事件日志时,有两个Transfer事件。 Both of them have the 3rd topic non-indexed, meaning they are transferring ERC-20 tokens - not NFTs.他们都有第三个主题未编入索引,这意味着他们正在转移 ERC-20 代币,而不是 NFT。 If they were transferring NFTs, the 3rd topic would be indexed .如果他们正在转移 NFT,则第 3 个主题将被indexed

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM