cURL
single
curl --request POST \ --url https://rpc.routeme.sh/rpc/{chainId}/{apiKey} \ --header 'Content-Type: application/json' \ --data ' { "jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1 } '
{ "jsonrpc": "2.0", "id": "<unknown>", "result": "<unknown>", "error": { "code": 123, "message": "<string>", "data": "<unknown>" } }
Send a single JSON-RPC request or a JSON-RPC batch (array).
2.0
JSON-RPC response (single or batch)
Result value (varies by JSON-RPC method).
JSON-RPC error object. See RPC Error Codes for full code → meaning and when each occurs.
Show child attributes