Transactions

這兩個具有相同雜湊值和不同值的交易是什麼?

  • June 11, 2022

我正在 Etherscan API 模組帳戶和操作 tokentx 上瀏覽來自給定乙太坊地址的一些 erc20 交易。這裡的例子:

有時我觀察到 2 個連續相同的結果,除了值欄位

例子 :

{"blockNumber":"5235102","timeStamp":"1520756570","hash":"0x68768899c47a79ce4b8cb8d91d00034fa9494a0ff48c9cc6bb995ca69a7e7397","nonce":"526","blockHash":"0x5a4a6c0ebe64c98f173f0c3116bda863e4cbdf2c0d22d64b974e9b26685fbacd","from":"0xb69a50f98a49f85fd2042813e1647b02dc43d71f","contractAddress":"0xa65ee5fd259d94294c4ef030d1a62eeb465b9438","to":"0xe29746124c699fd2063235264bd7f188ee24d27a","value":"2836450","tokenName":"Etherball","tokenSymbol":"EBYTE","tokenDecimal":"9","transactionIndex":"7","gas":"6211693","gasPrice":"2000000000","gasUsed":"4140801","cumulativeGasUsed":"4340045","input":"deprecated","confirmations":"9678838"}
{"blockNumber":"5235102","timeStamp":"1520756570","hash":"0x68768899c47a79ce4b8cb8d91d00034fa9494a0ff48c9cc6bb995ca69a7e7397","nonce":"526","blockHash":"0x5a4a6c0ebe64c98f173f0c3116bda863e4cbdf2c0d22d64b974e9b26685fbacd","from":"0xb69a50f98a49f85fd2042813e1647b02dc43d71f","contractAddress":"0xa65ee5fd259d94294c4ef030d1a62eeb465b9438","to":"0xe29746124c699fd2063235264bd7f188ee24d27a","value":"414791","tokenName":"Etherball","tokenSymbol":"EBYTE","tokenDecimal":"9","transactionIndex":"7","gas":"6211693","gasPrice":"2000000000","gasUsed":"4140801","cumulativeGasUsed":"4340045","input":"deprecated","confirmations":"9678838"}

我不知道如何解釋這些數據。這 2 行是否屬於同一事務,因為它們具有相同的雜湊?這兩個不同的值是什麼?它只是相對於 Etherball 嗎?

查看您在etherscan上的範例中的交易,我看到該交易將 erc20 代幣多次轉移到不同的地址。

您正在查詢的 etherscan 端點似乎將同一事務中的每個傳輸返回為result數組中的單獨條目;因此,當將不同金額轉移到同一地址時,會出現具有不同值的重複條目。

引用自:https://ethereum.stackexchange.com/questions/130030