Crate subxt_lightclient
source ·Expand description
A wrapper around smoldot_light
which provides an light client capable of connecting
to Substrate based chains.
Structs§
- Configuration to connect to a chain.
- An error response from the JSON-RPC server (ie smoldot) in response to a method call or as a subscription notification.
- 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. - 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. - A stream of notifications handed back when
LightClientRpc::subscribe
is called.
Enums§
- Something went wrong building chain config.
- Things that can go wrong when constructing the
LightClient
. - Things that can go wrong calling methods of
LightClientRpc
.