Get An Address's Full Transaction History
Last updated
Last updated
Sample code gist
Start by fetching transactions from the block 0
up to the latest
block.
In most cases, if your address has less than max records ( 1k for free and 5k for paid tiers ), you're good to go
If you receive = max records, its likely that your address has exceeded the query limit.
Its important to set the next startBlock
to the block number of the last record - 1
The next block number to start your query from should be the block number of the last record - 1.
This is due to the possibility of transactions from the last block returned being cut off by the limit, particularly if a block contains many transactions to that address.
The transactions from the last block number skipped will subsequently be fully queried in the next request.
This address took approximately 30s to fully pull for free tiers and 10s for paid tiers.
The same pagination applies to ERC20 token transactions, NFT transactions to get an address's full transaction history across 50+ supported chains.
Once we receive less than max records limit, we've gotten all 71134 transactions