Skip to main content

Module rpc

Module rpc 

Source

Structs§

ClientVersion
Client version information used for identification in the Engine API and P2P.
NodeData
Node identity and configuration information.
RpcApiContext
This struct contains all the dependencies that RPC handlers need to process requests, including storage access, blockchain state, P2P networking, and configuration.
WebSocketConfig
Configuration for the WebSocket RPC server.

Enums§

RpcRequestWrapper
Wrapper for JSON-RPC requests that can be either single or batched.

Constants§

FILTER_DURATION
Duration after which inactive filters are cleaned up.

Traits§

RpcHandler
Trait for implementing JSON-RPC method handlers.

Functions§

handle_authrpc_request
handle_eth_subscribe
Handle eth_subscribe.
handle_eth_unsubscribe
Handle eth_unsubscribe.
handle_get_heap
handle_get_heap_flamegraph
handle_websocket
Handle a WebSocket connection.
map_admin_requests
map_authrpc_requests
Handle requests from consensus client
map_debug_requests
Routes debug_* namespace requests to their handlers.
map_engine_requests
Routes engine_* namespace requests to their handlers.
map_eth_requests
Routes eth_* namespace requests to their handlers.
map_http_requests
Handle requests that can come from either clients or other users
map_mempool_requests
map_net_requests
map_web3_requests
rpc_response
Formats a handler result into a JSON-RPC 2.0 response.
shutdown_signal
Returns a future that completes when SIGINT (Ctrl+C) is received.
start_api
Starts the JSON-RPC API servers.
start_block_executor
Spawns a dedicated thread for sequential block execution.