Skip to main content
The 2024 Developer Survey results are live! See the results

New answers tagged

0 votes

get_total_transfer(tx_hash, receipt) function to compute the total amount transferred for each token involved in an Ethereum transaction

I believe from_address and to_address should be: from_address = log['topics'][1] to_address = log['topics'][2] while value should be either decoded_log or decoded_log[0] (depends on how your decoding ...
0xSanson's user avatar
  • 3,554
0 votes

Raw Tx to structure

You can achieve that by accessing eth_getTransactionByHash action using Etherscan API after getting the Etherscan API key. Here's the minimal code in Python: import requests from web3 import Web3 def ...
SYED ASAD KAZMI's user avatar

Top 50 recent answers are included