AlertSourceDiscuss
Skip to content

EIP-3091: Block Explorer API Routes

API Routes for Blockchain explorers

🚧 StagnantInterface

Stagnant

This EIP has had no recent activity for at least 6 months, and has automatically been marked as stagnant. This EIP should not be used in production.

If you are interested in helping move this EIP to final, create a PR to move this EIP back to Draft and add yourself as an author, and an EIP editor will help guide you through the process. Thank you!

AuthorsPedro Gomes, ligi
Created2020-11-02

Abstract ​

This proposal brings standardization between block explorers API routes when linking transactions, blocks, accounts and tokens.

Motivation ​

Currently wallets and dapps link transactions and accounts to block explorer web pages but as chain diversity and layer two solutions grow it becomes harder to maintain a consistent user experience. Adding new chains or layer two solutions becomes harder given these endpoints are inconsistent. Standardizing the API routes to these links improves interoperability between wallets and block explorers.

Specification ​

Block explorers will route their webpages accordingly for the following data:

Blocks ​

<BLOCK_EXPLORER_URL>/block/<BLOCK_HASH_OR_HEIGHT>

Transactions ​

<BLOCK_EXPLORER_URL>/tx/<TX_HASH>

Accounts ​

<BLOCK_EXPLORER_URL>/address/<ACCOUNT_ADDRESS>

Tokens ​

<BLOCK_EXPLORER_URL>/token/<TOKEN_ADDRESS>

Rationale ​

The particular paths used in this proposal are chosen to be compatible with the majority of existing block explorers.

Backwards Compatibility ​

Incompatible block explorers can use redirects to their existing API routes in order to conform to this EIP.

Security Considerations ​

None

Copyright and related rights waived via CC0.

Citation

Please cite this document as:

Pedro Gomes, ligi, "EIP-3091: Block Explorer API Routes[DRAFT]," Ethereum Improvement Proposals, no. 3091, 2020/11/2. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-3091.