Skip to main content

Module substrate

Module substrate 

Source
Expand description

Substrate (Polkadot/Kusama) RPC support — method safety, CU costs, and transport.

Substrate chains use JSON-RPC on port 9944. Methods follow the module_method naming convention (e.g., chain_getBlock, state_getStorage).

Structs§

SubstrateChainClient
Substrate implementation of ChainClient.
SubstrateCuCostTable
Per-method compute-unit cost table for Substrate RPC.
SubstrateTransport
Substrate RPC transport wrapper.

Functions§

classify_substrate_method
Classify a Substrate JSON-RPC method by its safety level.
is_substrate_cacheable
is_substrate_safe_to_dedup
is_substrate_safe_to_retry
kusama_mainnet_endpoints
polkadot_mainnet_endpoints