Crate sc_rpc_server
source ·Expand description
Substrate RPC servers.
Re-exports§
pub use middleware::Metrics;
pub use middleware::MiddlewareLayer;
pub use middleware::NodeHealthProxyLayer;
pub use middleware::RpcMetrics;
pub use utils::RpcEndpoint;
pub use utils::RpcMethods;
Modules§
- JSON-RPC specific middleware.
- Substrate RPC server utils.
Structs§
- RPC server configuration.
- Generates random integers as subscription ID.
- Generates random strings of length
len
as subscription ID. - Similar to
tower::ServiceBuilder
but doesn’t support any tower middleware implementations. - Type to encapsulate the server handle and listening address.
Enums§
- Configuration for batch request handling.
- Holds IPv4 or IPv6 network.
Traits§
- Trait for providing subscription IDs that can be cloned.
Functions§
- Start RPC server listening on given address.