How to Get an Ethereum RPC Endpoint
Step-by-step guide to getting a fast, reliable Ethereum RPC endpoint. Set up free or production-grade ETH RPC access with GetBlock in under 2 minutes.
{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": "getblock.io"
}{
"jsonrpc": "2.0",
"id": "getblock.io",
"result": "0x134A5B2"
}
// The result field contains the latest block number in hexadecimal.Step-by-Step: Get Your Ethereum RPC Endpoint
4
Test the Connection
curl -X POST https://go.getblock.io/<YOUR-ACCESS-TOKEN>/ \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": "getblock.io"
}'{
"jsonrpc": "2.0",
"id": "getblock.io",
"result": "0x134A5B2"
}
// The result field contains the latest block number in hexadecimal.Using Your Endpoint with Popular Libraries
WebSocket Endpoint for Real-Time Data
Subscribe to new blocks
Ethereum Testnet Endpoints
Testnet
Purpose
How to Get Tokens
Archive Data Access
What's Next?
Last updated
Was this helpful?

