主页EIPs
EIPsEIP-3091
EIP-3091

Block Explorer API Routes

API Routes for Blockchain explorers
DraftStandards Track: Interface
创建时间: 2020-11-02
Pedro Gomes (@pedrouid), ligi (@ligi)
社区讨论原文链接编辑
1 分钟了解

相关视频
欢迎补充好内容
去提交
正文

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.

扩展阅读
欢迎补充好内容
去提交
相关项目
欢迎补充好内容
去提交

不想错过最新的 EIP 动态?

订阅 EIPs Fun 周刊以跟进相关更新,建⽴你与 EIP 之间的连接 ,更好地建设以太坊。

详情
聚集 EIP 贡献者, 扩展以太坊
资源
GitHub
支持社区