polkadart 0.1.0-pre.1 copy "polkadart: ^0.1.0-pre.1" to clipboard
polkadart: ^0.1.0-pre.1 copied to clipboard

outdated

Interfaces for interacting with Polkadot JsonRPC interface

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.

9
likes
0
points
1.99k
downloads

Publisher

verified publisherpolkadart.dev

Weekly Downloads

Interfaces for interacting with Polkadot JsonRPC interface

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

convert, http, pointycastle, polkadart_scale_codec, substrate_metadata, web_socket_channel

More

Packages that depend on polkadart