Expand description
A wrapper around smoldot_light
which provides an light client capable of connecting
to Substrate based chains.
Structs§
- Chain
Config - Configuration to connect to a chain.
- Json
RpcError - An error response from the JSON-RPC server (ie smoldot) in response to a method call or as a subscription notification.
- Light
Client - This represents a single light client connection to the network. Instantiate
it with
LightClient::relay_chain()
to communicate with a relay chain, and then callLightClient::parachain()
to establish connections to parachains. - Light
Client Rpc - 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. - Light
Client RpcSubscription - A stream of notifications handed back when
LightClientRpc::subscribe
is called.
Enums§
- Chain
Config Error - Something went wrong building chain config.
- Light
Client Error - Things that can go wrong when constructing the
LightClient
. - Light
Client RpcError - Things that can go wrong calling methods of
LightClientRpc
.