Request schema
{
"type": "object",
"properties": {
"method": {
"type": "string",
"description": "JSON-RPC read method, e.g. eth_getBalance",
"examples": [
"debug_getRawHeader",
"debug_getRawReceipts",
"eth_accounts",
"eth_blobBaseFee",
"eth_blockNumber",
"eth_call",
"eth_chainId",
"eth_coinbase",
"eth_config",
"eth_createAccessList",
"eth_estimateGas",
"eth_feeHistory",
"eth_gasPrice",
"eth_getBalance",
"eth_getBlockAccessList",
"eth_getBlockByHash",
"eth_getBlockByNumber",
"eth_getBlockReceipts",
"eth_getBlockTransactionCountByHash",
"eth_getBlockTransactionCountByNumber",
"eth_getCode",
"eth_getFilterChanges",
"eth_getFilterLogs",
"eth_getLogs",
"eth_getProof",
"eth_getStorageAt",
"eth_getStorageValues",
"eth_getTransactionByBlockHashAndIndex",
"eth_getTransactionByBlockNumberAndIndex",
"eth_getTransactionByHash",
"eth_getTransactionCount",
"eth_getTransactionReceipt",
"eth_getUncleByBlockHashAndIndex",
"eth_getUncleByBlockNumberAndIndex",
"eth_getUncleCountByBlockHash",
"eth_getUncleCountByBlockNumber",
"eth_maxPriorityFeePerGas",
"eth_newBlockFilter",
"eth_newFilter",
"eth_newPendingTransactionFilter",
"eth_simulateV1",
"eth_syncing",
"eth_uninstallFilter",
"net_listening",
"net_peerCount",
"net_version",
"web3_clientVersion",
"web3_sha3"
]
},
"params": {
"description": "Parameters per the Ethereum JSON-RPC spec"
}
},
"required": [
"method"
]
}
Response schema
{
"type": "object",
"description": "JSON-RPC 2.0 response envelope. Exactly one of `result` or `error` is present. `result` takes the shape the called method defines: hex-encoded quantities and byte strings per the Ethereum JSON-RPC specification, an object for block and receipt reads.",
"properties": {
"jsonrpc": {
"type": "string",
"description": "The protocol version, always \"2.0\""
},
"id": {
"type": [
"string",
"number",
"null"
],
"description": "The request id, echoed back"
},
"result": {
"description": "The method's result, in the shape the called method defines. Present when the call succeeded; absent when `error` is."
},
"error": {
"type": "object",
"description": "Present instead of `result` when the call failed",
"properties": {
"code": {
"type": "integer",
"description": "A JSON-RPC 2.0 error code"
},
"message": {
"type": "string"
},
"data": {
"description": "Method-specific detail, when the node supplies it"
}
}
}
},
"examples": [
{
"jsonrpc": "2.0",
"id": 1,
"result": false
}
]
}