referrerpolicy=no-referrer-when-downgrade

Module client

Source
Expand description

The client connects to the source substrate chain and is used by the rpc server to query and send transactions to the substrate chain.

Structs§

Client
A client connect to a node and maintains a cache of the last CACHE_SIZE blocks.

Enums§

ClientError
The error type for the client.
SubscriptionType
The subscription type used to listen to new blocks.

Functions§

connect
Connect to a node at the given URL, and return the underlying API, RPC client, and legacy RPC clients.

Type Aliases§

Balance
The runtime balance type.
SubstrateBlock
The substrate block type.
SubstrateBlockHash
The substrate block hash type.
SubstrateBlockHeader
The substrate block header.
SubstrateBlockNumber
The substrate block number type.