API

BlockScout Internal Documentation

To view Modules and API Reference documentation:

  1. Generate documentation.

    mix docs

  2. View the generated docs.

    open doc/index.html

BlockScout API Usage

Api calls can be accessed from the BlockScout UI menu. BlockScout supports several methods:

  1. Graphiql: An IDE for exploring GraphQL

  2. RPC: API provided for developers transitioning their applications from Etherscan to BlockScout. Supports GET and POST requests.

  3. Eth RPC: Supports the most popular JSON RPC methods.

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.

Docs button for GraphQL

ETH RPC

We support the following methods. Requests and return data are identical to the documentation.