交易哈希:0x70a584e4a2eb38cf7d6d48e215f6ac105b17ecfd97cd7091c4079bb961c2aa4c
[Etherscan 网站]
https://etherscan.io/tx/0x70a584e4a2eb38cf7d6d48e215f6ac105b17ecfd97cd7091c4079bb961c2aa4c
转移值 = 900000000000000000000000 (90,000 C3W)
[Etherscan API]
转移值 = 9000000000000 (0.000009 C3W)
[网络3]
const tx = await web3.eth.getTransaction('0x70a584e4a2eb38cf7d6d48e215f6ac105b17ecfd97cd7091c4079bb961c2aa4c');
const input = tx.input; // '0xa9059cbb0000000000000000000000000d7a0161f798166b2fcc996f03448892c25841930000000000000000000000000000000000000000000000000000082f79cd9000'
/*** convert ***/
转移值 = 9000000000000 (0.000009 C3W)
为什么不一样?哪些数据是正确的?以及如何使用 Web3 或 Etherscan API 获得正确的令牌值?