polkadart library

Classes

$ApiVersionCodec
$ChainType
ChainType enum values
$ChainTypeCodec
ChainType Scale Codec
$HealthCodec
$RuntimeVersionCodec
ApiVersion
A pairs of ApiId and a u32 for version.
AuthorApi<P extends Provider>
Substrate state API
Blake2bHasher
Blake2b hash
ChainApi<P extends Provider>
Substrate chain API
ChainType
The type of a chain.
Custom
Some custom chain type.
Development
A development chain that runs mainly on one node.
EventRecord
Events
ExtrinsicPayload
ExtrinsicStatus
Hasher
Health
Health struct returned by the RPC
HttpProvider
The HTTP Provider allows sending requests using HTTP to a HTTP RPC server TCP port. It does not support subscriptions so you won't be able to listen to events such as new blocks or balance changes. It is usually preferable using the [WsProvider]
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
Provider
ReadProof
ReadProof struct returned by the RPC
RpcResponse<R, T>
RuntimeMetadata
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.
SigningPayload
StateApi<P extends Provider>
Substrate state API
StorageChangeSet
Storage change set
StorageDoubleMap<K1, K2, V>
StorageHasher<K>
StorageMap<K, V>
StorageNMap<V>
StorageQuadrupleMap<K1, K2, K3, K4, V>
StorageQuintupleMap<K1, K2, K3, K4, K5, V>
StorageSextupleMap<K1, K2, K3, K4, K5, K6, V>
StorageTripleMap<K1, K2, K3, V>
StorageValue<V>
SubscriptionMessage<R>
SubscriptionResponse<R>
SyncState
The state of the syncing of the node.
SyncStateCodec
SyncState Scale Codec
SystemApi<P extends Provider, H, N>
Substrate system RPC API
TwoxxHasher
XX hash
WsProvider
The WebSocket Provider allows sending requests using WebSocket to a WebSocket RPC server TCP port. Unlike the [HttpProvider], it does support subscriptions and allows listening to events such as new blocks or balance changes.
XXHash64
XXHash64 is a fast and efficient non-cryptographic hash function for 64-bit platforms. It is designed for producing a quick and reliable hash value for a given data, which can be used for many applications, such as checksum, data validation, etc. In addition, it has a good distribution of hash values, which helps to reduce collisions.

Extensions

KeyPairExtension on KeyPair
SignExtrinsicExtension on Uint8List
XXHash64StringExtension on String
Extension to String to generate xxh64 code.

Constants

xxh64 → const XXHash64
An instance of XXHash64 with seed = 0

Functions

xxh64code(String input, [Encoding? encoding]) int
Gets the 64-bit xxHash value of a String.
xxh64sum(String input, [Encoding? encoding]) String
Gets the 64-bit xxHash hash of a String in hexadecimal.

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.