Ethereum RPC Quickstart
Ethereum RPC Quickstart
This guide takes you from zero to your first Ethereum JSON-RPC response with ERPC.
1. Get Your API Key
You can obtain and check your API key on the ERPC Web Dashboard: ERPC Web Dashboard
Already using ERPC for Solana? You can use the same RPC key as Solana.
2. Make Your First Request
Send a JSON-RPC 2.0 request as an HTTP POST, with your API key in the
api-key parameter:bash
The response returns the latest block number in hexadecimal:
json
You can check which chain the endpoint serves with
eth_chainId:bash
3. Subscribe over WebSocket
The WebSocket endpoint accepts standard
eth_subscribe subscriptions:bash
For the available subscription types, refer to the official Ethereum JSON-RPC documentation linked below.
4. Batch Requests
You can send up to 256 JSON-RPC calls in a single HTTP request. Each call in a batch is metered as its own call.
bash
Next Steps
- Endpoints, metering, and status codes: Ethereum RPC Endpoint Documentation
- Full method list with request and response shapes: Ethereum RPC API Reference
- Official Ethereum JSON-RPC documentation: https://ethereum.org/en/developers/docs/apis/json-rpc/






