Invoke a Besu JSON-RPC Method
post
/v1/besu/proxy
Submits the request body to the selected Besu JSON-RPC endpoint and returns its status and response body.
Use this endpoint for any JSON-RPC method, such as `eth_blockNumber` or `eth_getBalance`.
Request
Header Parameters
-
X-Besu-Node: string
Optional operator-defined Besu node identifier. Supported values include
rpc-0,rpc-1,archive-0,validator-0, andbootnode-0. -
X-Request-Id: string
Optional correlation ID. Echoed in the response when provided.
Supported Media Types
- application/json
Root Schema : schema
Type:
objectAdditional Properties Allowed:
trueJSON-RPC request submitted to a Besu node.
Show Source
-
id(required):
id
Request identifier echoed in the response.
-
jsonrpc(required): string
JSON-RPC protocol version.
-
method(required): string
JSON-RPC method name.
-
params(required): array
params
JSON-RPC parameters. The structure depends on the method.
Nested Schema : params
Type:
arrayJSON-RPC parameters. The structure depends on the method.
Show Source
Nested Schema : type
Type:
objectAdditional Properties Allowed:
trueExamples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Returns the Besu JSON-RPC response.
Root Schema : JsonRpcResponse
Type:
objectAdditional Properties Allowed:
trueJSON-RPC response returned by a Besu node.
Show Source
-
id:
id
Echoed request identifier.
-
jsonrpc: string
JSON-RPC protocol version.
-
result:
JSON-RPC result payload. The structure depends on the method.
Examples
4XX Response
Request error or Besu JSON-RPC error.
Root Schema : JsonRpcErrorResponse
Type:
objectJSON-RPC error response returned by a Besu node.
Show Source
-
error: object
JsonRpcErrorObject
Error object returned in a JSON-RPC response.
-
id:
id
Echoed request identifier, when available.
-
jsonrpc: string
JSON-RPC protocol version.
Nested Schema : JsonRpcErrorObject
Type:
objectError object returned in a JSON-RPC response.
Show Source
-
code: integer
JSON-RPC error code returned by the Besu node.
-
data:
Error data returned by the Besu node. Its structure varies by method.
-
message: string
JSON-RPC error message returned by the Besu node.
5XX Response
Unexpected service error or Besu JSON-RPC error.
Root Schema : JsonRpcErrorResponse
Type:
objectJSON-RPC error response returned by a Besu node.
Show Source
-
error: object
JsonRpcErrorObject
Error object returned in a JSON-RPC response.
-
id:
id
Echoed request identifier, when available.
-
jsonrpc: string
JSON-RPC protocol version.
Nested Schema : JsonRpcErrorObject
Type:
objectError object returned in a JSON-RPC response.
Show Source
-
code: integer
JSON-RPC error code returned by the Besu node.
-
data:
Error data returned by the Besu node. Its structure varies by method.
-
message: string
JSON-RPC error message returned by the Besu node.