telosnetwork / teloscan

Telos EVM block explorer for viewing blocks, transactions, contracts, staking, and more
https://teloscan.io
Apache License 2.0
22 stars 25 forks source link

Adapt the way we query the last internal transactions for an address #789

Closed Viterbo closed 1 day ago

Viterbo commented 4 months ago

Description

Currently, we fetch transactions one by one to get the last 20 internal transactions. This should be changed to query just one bulk list of the last internal transactions for an address.

Update: This issue depends on https://github.com/telosnetwork/teloscan-indexer/issues/280

Uptade:

route will be /v1/address/{address}/internal?key=<determines-offset>

Viterbo commented 1 month ago

we need to change the strategy on the query offset to what we use on the transaction page (using a p for the page and a key parameter on the query).