Blockscout API
Blockscout Internal Documentation
To view Modules and API Reference documentation:
Generate documentation.
mix docs
View the generated docs.
open doc/index.html
Blockscout API Usage
API calls can be accessed from the Blockscout main menu, footer or header depending on the instance.
Blockscout supports several methods:
REST API: API that serves the UI for new instances of Blockscout. -> More info
RPC API: provided for developers transitioning their applications from Etherscan to Blockscout. Supports GET and POST requests. -> More info
Eth RPC API: Supports the most popular JSON RPC methods. -> More info
Graphiql: An IDE for exploring GraphQL.
GraphQL
Send Queries to quickly get information. Use the Docs button to quickly find arguments accepted by the schema. More information is available in our Blockscout GraphQL tutorial.
ETH RPC
Blockscout supports the following methods. Requests and return data are identical to the Ethereum documentation.
eth_blockNumber
eth_getBalance
eth_getLogs
eth_gasPrice
eth_getTransactionByHash
eth_getTransactionReceipt
eth_chainId
eth_maxPriorityFeePerGas
eth_getTransactionCount
eth_getCode
eth_getStorageAt
eth_estimateGas
eth_getBlockByNumber
eth_getBlockByHash
eth_sendRawTransaction
eth_call
More details on ETH RPC for Blockscout are available here.
API Keys
If My Account is enabled, users can add up to 3 API keys to ensure 10 request/second limits. When API Keys are not used, the global default is 50 requests/second.
More info on My Account and adding API Keys
More info on API Requests and Limits
Last updated