Crate subxt_lightclient

Source
Expand description

A wrapper around smoldot_light which provides an light client capable of connecting to Substrate based chains.

Structs§

ChainConfig
Configuration to connect to a chain.
JsonRpcError
An error response from the JSON-RPC server (ie smoldot) in response to a method call or as a subscription notification.
LightClient
This represents a single light client connection to the network. Instantiate it with LightClient::relay_chain() to communicate with a relay chain, and then call LightClient::parachain() to establish connections to parachains.
LightClientRpc
This represents a single RPC connection to a specific chain, and is constructed by calling one of the methods on LightClient. Using this, you can make RPC requests to the chain.
LightClientRpcSubscription
A stream of notifications handed back when LightClientRpc::subscribe is called.

Enums§

ChainConfigError
Something went wrong building chain config.
LightClientError
Things that can go wrong when constructing the LightClient.
LightClientRpcError
Things that can go wrong calling methods of LightClientRpc.