Skip to main content

Blockscout API Usage

API information can be accessed from the Blockscout main menu, footer or header depending on the instance. Blockscout supports several methods:
  1. REST API: API that serves the UI for Blockscout.
  2. RPC API: provided for developers transitioning applications from Etherscan to Blockscout. Supports GET and POST requests, simply replace Etherscan url with Blockscout url to use the RPC.
  3. Eth RPC API: Supports the most popular JSON RPC methods.
  4. Graphiql: An IDE for exploring GraphQL.

API Keys

Blockscout provides swagger documentation for various API services here: https://blockscout.github.io/swaggers/

API access in new instance

Blockscout Internal Documentation

To view Modules and API Reference documentation:
  1. Generate documentation. mix docs
  2. View the generated docs. open doc/index.html