Documentation Index
Fetch the complete documentation index at: https://blockscout-mf-14206.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Supported JSON RPC Clients
BlockScout currently supports Geth, Erigon, Nethermind, Reth, Besu, RSKj, Lotus, and Anvil JSON RPC clients. To define the JSON RPC node variant, it’s advised to define theETHEREUM_JSONRPC_VARIANT environment variable*. Correct values include:
| JSON RPC Client | Value | Note |
|---|---|---|
| Geth | `geth` | Default. This value is applicable for both Geth and Reth JSON RPC clients |
| Erigon | `erigon` | It is suggested to use erigon variant for Reth JSON RPC client. |
| Nethermind | `nethermind` | This value is applicable for Reth and deprecated OpenEthereum (aka Parity) JSON RPC clients |
| Besu | `besu` | |
| RSKj | `rsk` | |
| Lotus | `filecoin` | |
| Anvil | `anvil` |
CHAIN_TYPE variable according to the mapping https://github.com/blockscout/blockscout/blob/a2625803c831fb86e38ffe0e28d94bfd697914ce/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/variant.ex#L114-L120
BlockScout currently requires a full archive node in order to import every state change for every address on the target network.
Configs
Variables to connect to JSON RPC client
| Name | Environment Variable | Default Value | Description |
|---|---|---|---|
| HTTP Endpoint | ETHEREUM_JSONRPC_HTTP_URL | http://localhost:8545 | The HTTP Endpoint is used to fetch blocks, transactions, receipts, coin/token balances. |
| Fallback HTTP Endpoint | ETHEREUM_JSONRPC_FALLBACK_HTTP_URL | (empty) | Fallback JSON RPC HTTP url. |
| Tracing Endpoint | ETHEREUM_JSONRPC_TRACE_URL | http://localhost:8545 | The Tracing endpoint is used to fetch internal transactions and block traces. In most cases this endpoint is identical to the HTTP Endpoint. |
| Fallback Tracing Endpoint | ETHEREUM_JSONRPC_FALLBACK_TRACE_URL | (empty) | Fallback JSON RPC tracing url. |
| Eth_call Requests Endpoint | ETHEREUM_JSONRPC_ETH_CALL_URL | (empty) | JSON RPC url for eth_call method requests. |
| Fallback Eth_call Requests Endpoint | ETHEREUM_JSONRPC_FALLBACK_ETH_CALL_URL | (empty) | Fallback JSON RPC eth_call url. |
| WebSockets Endpoint | ETHEREUM_JSONRPC_WS_URL | ws://localhost:8546 | The WebSockets endpoint subscribes to newHeads which alerts the indexer to fetch the new block from the subscription. |