primitives/primitives library

Classes

$ApiVersionCodec
$ChainType
ChainType enum values
$ChainTypeCodec
ChainType Scale Codec
$HealthCodec
$RuntimeVersionCodec
ApiVersion
A pairs of ApiId and a u32 for version.
ChainHeadBestBlockChanged
Emitted when the best block changes.
ChainHeadEvent
Base class for chainHead follow events.
ChainHeadFinalized
Emitted when blocks are finalized.
ChainHeadInitialized
Emitted when the follow subscription is initialized.
ChainHeadNewBlock
Emitted when a new non-finalized block is imported.
ChainHeadOperationBodyDone
Emitted when a body() operation completes successfully.
ChainHeadOperationCallDone
Emitted when a call() operation completes successfully.
ChainHeadOperationError
Emitted when an operation fails with an error.
ChainHeadOperationInaccessible
Emitted when the block was unpinned before the operation could complete.
ChainHeadOperationResult
Result of a chainHead operation that returns an operationId.
ChainHeadOperationStorageDone
Emitted when a storage() operation has finished delivering all items.
ChainHeadOperationStorageItems
Emitted when a storage() operation returns partial results.
ChainHeadStop
Emitted when the subscription is stopped by the server.
ChainType
The type of a chain.
Custom
Some custom chain type.
Development
A development chain that runs mainly on one node.
Events
ExtrinsicStatus
Health
Health struct returned by the RPC
KeyValue
Live
A live chain.
Local
A local chain that runs locally on multiple nodes for testing purposes.
PeerInfo<H, N>
Network Peer information
PeerInfoCodec<H, N>
PeerInfo Scale Codec
ReadProof
ReadProof struct returned by the RPC
RuntimeVersion
Runtime version. This should not be thought of as classic Semver (major/minor/tiny). This triplet have different semantics and mis-interpretation could cause problems. In particular: bug fixes should result in an increment of spec_version and possibly authoring_version, absolutely not impl_version since they change the semantics of the runtime.
StorageChangeSet
Storage change set
StorageQueryItem
Storage query item for chainHead_v1_storage.
StorageResultItem
A single storage item returned by a storage() operation.
SyncState
The state of the syncing of the node.
SyncStateCodec
SyncState Scale Codec

Enums

ChainHeadEventType
Event types emitted by the chainHead follow subscription.

Typedefs

ApiId = BigInt
The identity of a particular API interface that the runtime might provide.
BlockHash = Uint8List
Block hash
StorageData = Uint8List
Storage data associated to a `StorageKey`.
StorageKey = Uint8List
Storage key.