Ethereum RPC
Relay
Deterministic failover, cache, and pricing for DeFi bots. One URL, zero latency surprises.
⚡
250x Faster Than Alchemy
How to Use Your Token
Endpoint: https://rpc-cache-worker.rpc-relay-cache.workers.dev/api/v1/rpccURL
curl https://rpc-cache-worker.rpc-relay-cache.workers.dev/api/v1/rpc \
-H "Authorization: Bearer ***" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'
JavaScript
fetch('https://rpc-cache-worker.rpc-relay-cache.workers.dev/api/v1/rpc', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
jsonrpc: '2.0',
id: 1,
method: 'eth_blockNumber',
params: []
})
})
Python
import requests
response = requests.post(
'https://rpc-cache-worker.rpc-relay-cache.workers.dev/api/v1/rpc',
headers={'Authorization': 'Bearer YOUR_TOKEN'},
json={'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': []}
)
print(response.json())
Authentication
Authorization: Bearer YOUR_TOKEN