Build powerful blockchain applications with type-safe Dart & Flutter
Get started in minutes โข Perfect for Flutter apps โข Production ready
Polkadart is a comprehensive Dart/Flutter SDK that provides everything you need to build decentralized applications on Polkadot, Substrate, and other compatible blockchain networks. With type-safe APIs, automatic code generation, and Flutter-first design, it's the most developer-friendly way to integrate blockchain functionality into your Dart applications.
This library is funded by Web3 Foundation via their Open Grants Program
๐ Developer-First Experience
- Type-Safe Everything: Auto-generated types from chain metadata ensure compile-time safety
- Flutter Ready: Built from the ground up for mobile and cross-platform development
- Intuitive APIs: Clean, idiomatic Dart interfaces that feel natural to use
- Comprehensive Docs: Extensive documentation with real-world examples
โก Feature Complete
- Universal Compatibility: Works with any Substrate-based blockchain
- Smart Contracts: Full support for ink! smart contract interactions
- Real-time Subscriptions: WebSocket support for live blockchain data
- Complete Cryptography: All signature schemes (sr25519, ed25519, ecdsa) included
- Advanced Features: Batch transactions, multi-sig, custom RPCs, and more
๐ Production Ready
- Battle-Tested: Powers production wallets and dApps with millions of transactions
- High Performance: Optimized SCALE codec with minimal overhead
- Security First: Comprehensive key management and secure signing
- Active Maintenance: Regular updates and active community support
- Web3 Foundation Backed: Official grant recipient ensuring long-term sustainability
dependencies: polkadart: ^0.7.0 polkadart_keyring: ^0.7.0import 'package:polkadart/polkadart.dart'; // Connect to Polkadot final provider = Provider.fromUri(Uri.parse('wss://rpc.polkadot.io')); final api = await ApiPromise.create(provider); // Query account balance final account = '15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5'; final balance = await api.query.system.account(account); print('Free balance: ${balance.data.free}');import 'package:polkadart_keyring/polkadart_keyring.dart'; // Create a wallet final keyring = Keyring(); final alice = await keyring.fromMnemonic('//Alice'); // Send a transfer final tx = api.tx.balances.transfer( dest: '14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3', value: BigInt.from(10).pow(12), // 1 DOT ); final hash = await tx.signAndSend(alice); print('Transaction hash: $hash');This repository is a monorepo containing the complete Polkadart ecosystem:
| Package | Description | Version |
|---|---|---|
| polkadart | Main SDK for Substrate/Polkadot interaction | |
| polkadart_keyring | Key management and account handling |
| Package | Description | Version |
|---|---|---|
| polkadart_cli | Generate typed APIs from chain metadata | |
| ink_cli | Generate typed interfaces for smart contracts |
| Package | Description | Version |
|---|---|---|
| polkadart_scale_codec | SCALE codec implementation | |
| substrate_metadata | Runtime metadata parsing | |
| ink_abi | ink! ABI encoding/decoding |
| Package | Description | Version |
|---|---|---|
| sr25519 | Schnorrkel signature scheme | |
| secp256k1_ecdsa | ECDSA operations | |
| ss58 | SS58 address encoding | |
| substrate_bip39 | BIP39 mnemonic generation |
Getting Started
Advanced Topics
Package Documentation
|
|
We welcome contributions from developers of all skill levels! Here's how you can help:
|
|
|
Every contribution matters! Check our Contributing Guide for details.
A heartfelt thank you to all the amazing contributors who have helped build Polkadart! emoji key
This project follows the all-contributors specification. Contributions of any kind welcome! โค๏ธ
This project is licensed under the Apache 2.0 License
Ready to build your next blockchain application? Here's where to go:
- ๐ Read the Documentation - Complete guides and tutorials
- ๐ป Explore Examples - Working code samples
- ๐ฌ Join the Community - Get help and share ideas
- โญ Star the Project - Show your support!
Build the future of Web3 with Dart & Flutter ๐
