Skip to main content
POST
/
rpc
/
{chainId}
/
{apiKey}
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>"
  }
}

Path Parameters

chainId
string
required
apiKey
string<password>
required

Body

application/json
jsonrpc
enum<string>
required
Available options:
2.0
method
string
required
id
any
required
params

Response

JSON-RPC response (single or batch)

jsonrpc
enum<string>
required
Available options:
2.0
id
any
required
result
any

Result value (varies by JSON-RPC method).

error
object

JSON-RPC error object. See RPC Error Codes for full code → meaning and when each occurs.