Summary
Given an address, the explorer should list:
- All transactions where the address appears as from or to
- Ordered by block number and transaction index (newest first)
- Display metadata
Discussion
Don't use indexer service
- Use eth_getBlockByNumber and index locally backwards
- Cache results for X time
- This method is very slow, user should know
With indexer
- Use Third-party API or build an indexer in-house