Skip to main content

Module client

Module client 

Source
Expand description

Native chain access for the Rust SDK.

The codec/runtime modules deliberately remain transport agnostic. Client is the small blocking JSON-RPC layer that turns their metadata-driven SCALE primitives into pinned reads, signed submissions, receipts, and block streams. It uses the crate’s existing rustls-backed reqwest dependency, so the native SDK adds no second async runtime and works in ordinary Rust tests, command-line programs, and foreign-language bindings alike.

Structs§

BlockHeader
A decoded block header.
BlockStream
Iterator returned by Client::blocks.
Client
The native Bittensor chain client.
DispatchError
A normalized dispatch failure. semantic_code is stable across wording changes and is suitable for branching in callers and e2e assertions.
Snapshot
A read-only view pinned to one block hash.
SubnetInfo
One subnet’s small, commonly used read model.
SwapQuote
Swap simulation returned by the runtime API.
TxOutcome
Inclusion/finalization result for a submitted extrinsic.

Functions§

as_bool
as_str
as_u128
field
value_bytes
variant
variant_name