0

is that possible to receive all transactions from new block with light node and parse all and even internal transactions with the help of its api?

  • What data are you hoping to glean by parsing the internal transactions? – foba Jul 10 at 18:58
0

You can achieve this with Web3 API and what could you do here is first use:

web3.eth.getBlock('latest')

This will return all the latest block data including transactions array with all the transaction hashes inside this block. Then you can loop the transaction hashes array and use:

web3.eth.getTransaction(transactionHash)

This will return the transaction data including from, to, value and more.

  • Doesn't explain how to parse internal transactions (i.e. message calls). – Thomas Jay Rush Jul 10 at 15:50

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.