Skip to main content

Blockscout API Usage

API information can be accessed from the Blockscout main menu, footer or header depending on the instance.
Our Universal PRO API is available for beta access, please go to https://dev.blockscout.com/ to get an API key and get started. You can then use the PRO API to access all REST and RPC methods.
Blockscout supports several methods:
  1. PRO API: Universal multichain API for access to all endpoints.
  2. REST API: API that serves the UI for Blockscout.
  3. 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.
  4. Eth RPC API: Supports the most popular JSON RPC methods.
  5. GraphiQL: An IDE for exploring GraphQL.

API Keys

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

Blockscout Internal Documentation

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