Module result

Source
Expand description

Re-exported from reth_rpc::rpc.

Traits§

ToRpcResult
Helper trait to easily convert various Result types into [RpcResult]

Functions§

block_id_to_str
Formats a [BlockId] into an error message.
internal_rpc_err
Constructs an internal JSON-RPC error.
internal_rpc_err_with_data
Constructs an internal JSON-RPC error with data
invalid_params_rpc_err
Constructs an invalid params JSON-RPC error.
rpc_err
Constructs a JSON-RPC error, consisting of code, message and optional data.
rpc_error_with_code
Constructs an internal JSON-RPC error with code and message