API Directory › 🔗 Blockchain & Web3 › Blockscout
No authHTTPSCORS

Blockscout API

Open-source block explorer with a public REST API for many chains.

Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open Blockscout docs ↗

What it does

Blockscout is an open-source blockchain explorer with a full API, run as the public explorer for many EVM chains (Ethereum, Gnosis, Optimism, Base, Polygon zkEVM and hundreds more). It offers a native REST API (v2), an Etherscan-compatible API, and JSON-RPC — and you can self-host it for any chain.

Base URL

https://eth.blockscout.com/api/v2

Authentication

Public instances are generally key-less and rate limited; some offer a free API key for higher limits. The native REST API is under /api/v2/; the Etherscan-compatible shim is /api?module=…&action=… (lets you reuse Etherscan client code).

Code examples

curl (native v2)
curl -s "https://eth.blockscout.com/api/v2/addresses/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
Python (Etherscan-compatible mode)
import requests

r = requests.get("https://eth.blockscout.com/api", params={
    "module": "account", "action": "balance",
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}, timeout=10)
wei = int(r.json()["result"])
print(wei / 1e18, "ETH")

Rate limits & quotas

The main public instances allow roughly 10 requests/second per IP without a key (HTTP 429 over that); a free API key on supported instances raises it. There is no global Blockscout SLA — each chain’s explorer is operated separately. For production, self-host or use a paid instance.

Key response fields

(v2 address) hash / coin_balance / is_contract / tokenAddress summary
(v2) /addresses/{hash}/transactionsPaginated tx list with next_page_params
(v2) /smart-contracts/{hash}Verified source, ABI, compiler settings
(v2) /tokens/{hash} & /tokens/{hash}/holdersToken metadata and holder list
(etherscan mode) status / message / resultSame envelope as Etherscan

Common errors

404Address/tx/token not found on that chain’s instance, or wrong host for the chain.
429Public rate limit exceeded.
(v2 vs v1 shape)The native /api/v2/ JSON differs entirely from the Etherscan-compatible /api — pick one and stick to it.
(instance down)A given chain’s public Blockscout can be offline independently — have a fallback.

When to use it (and alternatives)

The pick for an open-source, self-hostable explorer API, for chains Etherscan doesn’t cover, or when you want an Etherscan-compatible API you fully control. For the widest hosted EVM coverage with one key, Etherscan V2; for multichain address data, Covalent.

FAQ

Is there one Blockscout API URL?

No — each chain has its own Blockscout host (eth.blockscout.com, base.blockscout.com, gnosis.blockscout.com…). Pick the host for your chain; the API paths are the same.

Can I drop it in where I used Etherscan?

Largely yes — hit /api?module=&action= on a Blockscout host and the responses match Etherscan’s shape for common account/contract actions. Coverage of niche actions varies.

How do I run it for my own chain?

Blockscout ships Docker images and a Helm chart. Point it at your chain’s archive node and it indexes blocks, transactions, tokens and verified contracts, exposing the same API.

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Blockchain & Web3 APIs

← Back

More Blockchain & Web3 APIs · All 196 APIs