Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EIP-3091: Block Explorer API Routes #3091

Merged
merged 4 commits into from
Nov 6, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions EIPS/eip-3091.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
eip: 3091
title: Block Explorer API Routes
author: Pedro Gomes (@pedrouid)
discussions-to: https://github.com/ethereum/EIPs/pull/3091
pedrouid marked this conversation as resolved.
Show resolved Hide resolved
status: Draft
type: Standards Track
category: Interface
created: 2020-11-02
---

## Simple Summary
This proposal brings standardization between block explorers API routes when linking transactions, blocks, accounts and tokens.
pedrouid marked this conversation as resolved.
Show resolved Hide resolved

## Abstract
Currently wallets will link transactions and accounts to block explorers web pages but as chain diversity and layer two solutions grow it becomes harder to maintain a consistent user experience. Standardizing the API routes to these links improves interoperability between wallets and block explorers.
pedrouid marked this conversation as resolved.
Show resolved Hide resolved

## Motivation
Adding new chains or layer two solutions becomes harder given these endpoints are inconsistent. This EIP makes RPC endpoints like EIP-2015 and EIP-2016 more feasible.
pedrouid marked this conversation as resolved.
Show resolved Hide resolved
pedrouid marked this conversation as resolved.
Show resolved Hide resolved

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

### Blocks
<BLOCK_EXPORER_URL>/block/<BLOCK_HASH_OR_HEIGHT>


### Transactions
<BLOCK_EXPORER_URL>/tx/<TX_HASH>

### Accounts
<BLOCK_EXPORER_URL>/address/<ACCOUNT_ADDRESS>


### ERC-20 Tokens
<BLOCK_EXPORER_URL>/token/<TOKEN_ADDRESS>

## References

- Related EIPs
- [EIP-2015: Wallet Update Ethereum Chain JSON-RPC Method (`wallet_updateChain`)](./eip-2015.md)
- [EIP-2016: Wallet Add Ethereum Chain RPC Method (`wallet_addEthereumChain`)](./eip-2016.md)

pedrouid marked this conversation as resolved.
Show resolved Hide resolved
## Copyright
pedrouid marked this conversation as resolved.
Show resolved Hide resolved
Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).