Expand description
Re-exported from reth_rpc::rpc
.
Traits§
- ToRpc
Result - 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 optionaldata
. - rpc_
error_ with_ code - Constructs an internal JSON-RPC error with code and message