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...

  • 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). – goodvibration Feb 28 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 at 7:18
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).

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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