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
  • Optional operator-defined Besu node identifier. Supported values include rpc-0, rpc-1, archive-0, validator-0, and bootnode-0.
  • Optional correlation ID. Echoed in the response when provided.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Additional Properties Allowed: true
JSON-RPC request submitted to a Besu node.
Show Source
Nested Schema : id
Request identifier echoed in the response.
Match One Schema
Show Source
Nested Schema : params
Type: array
JSON-RPC parameters. The structure depends on the method.
Show Source
Nested Schema : items
Match One Schema
Show Source
Nested Schema : type
Type: object
Additional Properties Allowed: true
Nested Schema : type
Type: array
Show Source
Examples

Back to Top

Response

Supported Media Types

200 Response

Returns the Besu JSON-RPC response.
Body ()
Root Schema : JsonRpcResponse
Type: object
Additional Properties Allowed: true
JSON-RPC response returned by a Besu node.
Show Source
Nested Schema : id
Echoed request identifier.
Match One Schema
Show Source
Examples

4XX Response

Request error or Besu JSON-RPC error.
Body ()
Root Schema : JsonRpcErrorResponse
Type: object
JSON-RPC error response returned by a Besu node.
Show Source
Nested Schema : JsonRpcErrorObject
Type: object
Error object returned in a JSON-RPC response.
Show Source
  • JSON-RPC error code returned by the Besu node.
  • Error data returned by the Besu node. Its structure varies by method.
  • JSON-RPC error message returned by the Besu node.
Nested Schema : id
Echoed request identifier, when available.
Match One Schema
Show Source

5XX Response

Unexpected service error or Besu JSON-RPC error.
Body ()
Root Schema : JsonRpcErrorResponse
Type: object
JSON-RPC error response returned by a Besu node.
Show Source
Nested Schema : JsonRpcErrorObject
Type: object
Error object returned in a JSON-RPC response.
Show Source
  • JSON-RPC error code returned by the Besu node.
  • Error data returned by the Besu node. Its structure varies by method.
  • JSON-RPC error message returned by the Besu node.
Nested Schema : id
Echoed request identifier, when available.
Match One Schema
Show Source
Back to Top