Polkadart
Provides a clean wrapper around all the methods exposed by a Polkadot/Substrate network client and defines all the types exposed by a node.
Usage
import 'package:polkadart/polkadart.dart' show Provider, StateApi;
void main() async {
final polkadot = Provider(Uri.parse('wss://rpc.polkadot.io'));
final api = StateApi(polkadot);
final runtimeVersion = await api.getRuntimeVersion();
print(runtimeVersion.toJson());
await polkadot.disconnect();
}
Tutorials
Looking for tutorials to get started? Look at example for guides on how to use the API to make queries and submit transactions.
Libraries
- apis/apis
- extrinsic/signed_extensions/asset_hub
- substrate/hash/block_hash
- substrate/era
- extrinsic/extrinsic
- extrinsic/extrinsic_payload
- substrate/hash/hash_base
- substrate/hash/hash_digest
- polkadart
- primitives/primitives
- provider
- scale_codec
- extrinsic/signing_payload
- extrinsic/signed_extensions/substrate
- substrate/substrate
- substrate/hash/xxh64