TES-0018: Tokenview Block Explorer API Routes
TES-0018: Tokenview Block Explorer API Routes
A.Simple Summary
Standard API Routes for Block Explorers
B.Abstract
This proposal brings standardization between block explorers API routes when linking transactions, blocks, accounts, tokens, smart contracts and charts.
C.Motivation
Blockchain users, including web users, wallets, exchanges, will identify and link transaction, blocks, accounts, tokens, smart contracts, charts with blockchain related information to blockchain explorer web pages. Standardizing the API routes to these links improves interoperability between block explorers and web users, wallets, exchanges.
D.Specification
Block explorers will route their web pages accordingly for the following data:
Blocks
applicable to all public chains
Blocks
<BLOCK_EXPORER_URL>/block/<BLOCK_HASH_OR_HEIGHT>
Blocklist
<BLOCK_EXPORER_URL>/blocklist
Uncle Blocklist
<BLOCK_EXPORER_URL>/uncleblocklist
Transactions
applicable to all public chains
Transactions
<BLOCK_EXPORER_URL>/tx/<TX_HASH>
Pending Transactions
<BLOCK_EXPORER_URL>/pending/<TX_HASH>
Accounts
applicable to all public chains
Accounts
<BLOCK_EXPORER_URL>/address/<ACCOUNT_ADDRESS>
Top Accounts
<BLOCK_EXPORER_URL>/topaccount
Tokens
applicable to all public chains that supports smart contracts. E.g. ETH, TRX, NEO and so on
Tokens
<BLOCK_EXPORER_URL>/token/<TOKEN_ADDRESS>
Token List
<BLOCK_EXPORER_URL>/tokenlist
Token Transactions
<BLOCK_EXPORER_URL>/tokentxns/<TOKEN_TX_HASH>
Charts
applicable to all public chains
Charts
<BLOCK_EXPORER_URL>/charts
Daily Price Chart
<BLOCK_EXPORER_URL>/chart/coinPrice
Daily Market Cap Chart
<BLOCK_EXPORER_URL>/chart/marketInfo
Daily Block Number Chart
<BLOCK_EXPORER_URL>/chart/blockNum
Block Size Chart
<BLOCK_EXPORER_URL>/chart/blockSize
Block Generation Period Chart
<BLOCK_EXPORER_URL>/chart/blockTime
Daily Average Hashrate Chart
<BLOCK_EXPORER_URL>/chart/dailyHashrate
Mining Difficulty Chart
<BLOCK_EXPORER_URL>/chart/dailyDiff
Mining Reward (USD) Chart
<BLOCK_EXPORER_URL>/chart/RewardUsd
Mining Reward Chart
<BLOCK_EXPORER_URL>/chart/dailyReward
Average Fee of Each Transaction (USD) Chart
<BLOCK_EXPORER_URL>/chart/dailyTxFeeUsd
Daily Total Fee (USD) Chart
<BLOCK_EXPORER_URL>/chart/dailyFeeUsd
Daily Total Fee Chart
<BLOCK_EXPORER_URL>/chart/dailyFee
Average Block Fee Chart
<BLOCK_EXPORER_URL>/chart/mineFee
Average Block Fee Median Chart
<BLOCK_EXPORER_URL>/chart/mineFeeMedian
Mining Revenue Chart
<BLOCK_EXPORER_URL>/chart/rewardUsd
Median Daily Transaction Amount in a Single Block Chart
<BLOCK_EXPORER_URL>/chart/dailyMedianBlock
Daily Transaction Amount Chart
<BLOCK_EXPORER_URL>/chart/dailySentVolume
Daily Average Trade Volume Per Transaction Chart
<BLOCK_EXPORER_URL>/chart/dailyVolume
Daily Transaction Counts Chart
<BLOCK_EXPORER_URL>/chart/dailyCount
Daily Trade Volume (USD) Chart
<BLOCK_EXPORER_URL>/chart/dailyTotalVolumeUsd
Daily Active Address & Newly Created Address Chart
<BLOCK_EXPORER_URL>/chart/dailyAccounts
Mining Outputs Chart
<BLOCK_EXPORER_URL>/chart/dailyMinedCoin
Full Node Size Chart
<BLOCK_EXPORER_URL>/chart/dailyChainSize
Smart Contract
applicable to all public chains that supports smart contracts
Smart Contract
<BLOCK_EXPORER_URL>/contract/<CONTRACT_ADDRESS>
E.Backward Compatibility
No compatibility issues. Special cases will depend on the actual situation.
F.Security Considerations
To be determined.
G. Copyright
Copyright and related rights waived via CC0.
H.Citation
Please cite this document as:
Tokenview, 'TBS-0018: Block Explorer API Routes', Tokenview Blockchain Standards, no.0018, January 2018. Available: https://tokenview.io/proposals/tbs-0018