Crate sc_rpc_server

source ·
Expand description

Substrate RPC servers.

Re-exports

pub use crate::middleware::RpcMetrics;

Modules

RPC middleware to collect prometheus metrics on RPC calls.

Structs

Generates random integers as subscription ID.
Generates random strings of length len as subscription ID.
Server config.

Constants

Maximal payload accepted by RPC servers.

Traits

Trait to generate subscription IDs.

Functions

Start a JSON-RPC server listening on given address that supports both HTTP and WS.
Start HTTP server listening on given address.

Type Definitions

Type alias JSON-RPC server