tronprotocol / java-tron

Java implementation of the Tron whitepaper
GNU Lesser General Public License v3.0
3.72k stars 1.4k forks source link

How can I quickly obtain all internal transactions #6019

Closed z1z2z3z closed 4 hours ago

z1z2z3z commented 4 hours ago

I have set up a full node locally (including internal transactions), how can I quickly retrieve all internal transactions on the blockchain. GetBlockByLimitNext method cann't give the block info included internal transactions Is there a method to retrieve multiple block information at once?

endiaoekoe commented 4 hours ago

method cann't give the block info included internal transactions

@z1z2z3z In my development experience of using these query APIs when querying multiple blocks, I will use API 'wallet/getblockbylatestnum' to get latest blocks ,use the tx_ids extract from returned block info as query param then query the API 'wallet/gettransactioninfobyid' to get the tx details(include internal txs).