3

I've been trying to figure out the best way to get the Net internal/trace transactions using python for a specific transaction hash.

I have read other topics on the forum that say that these are not recorded on the blockchain, so web3.py is not an option and you have to use a specialized kind of EVM to simulate a given transaction using the contract, I'm trying to avoid that, since it seems complicated on python...

I'm considering now using etherscan site Net Internal Transactions, I might resort to webscraping with beautifulsoup, but I don't know if anyone knows of a better alternative with python based api that does this (takes in a hash, returns internal transactions) that interacts with either etherscan/infura...

2
  • You should definitely consider using Etherscan Developers API instead of scraping their website. In particularly this one (scroll down a bit in order to get to the 'Internal Transactions' part). Feb 28, 2020 at 7:15
  • thanks looks like a great option... I'll definitely have a look... Yes definitely a good option for this. Probably I'll use that
    – KALEB
    Feb 28, 2020 at 7:18

1 Answer 1

3

I'm considering now using etherscan site Net Internal Transactions, I might resort to webscraping with beautifulsoup, but I don't know if anyone knows of a better alternative with python based api that does this (takes in a hash, returns internal transactions) that interacts with either etherscan/infura...

You should definitely consider using Etherscan Developers APIs instead of scraping their website.

In particularly this one (scroll down a bit in order to get to the Internal Transactions part).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.