Installation
Add abidock_mvx to your Dart or Flutter project.
Using pub.dev
Add the dependency to your pubspec.yaml:
dependencies:
abidock_mvx: ^3.0.0
Then run:
dart pub get
# or for Flutter
flutter pub get
From Git
For the latest development version:
dependencies:
abidock_mvx:
git:
url: https://github.com/ABIdock/abidock_mvx.git
ref: main
Verify Installation
Create a simple test file:
import 'package:abidock_mvx/abidock_mvx.dart';
void main() {
// Create a simple address
final address = Address.fromBech32(
'erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu'
);
print('Address: ${address.bech32}');
print('Hex: ${address.hex}');
// Create a BigUInt value
final amount = BigUIntType.create(BigInt.from(1000000000000000000));
print('Amount: ${amount.nativeValue}');
}
Run it:
dart run test_install.dart
Expected output:
Address: erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu
Hex: 0000000000000000000000000000000000000000000000000000000000000000
Amount: 1000000000000000000
Platform Support
| Platform | Support |
|---|---|
| Dart VM (CLI, server) | Full |
| Flutter (Android) | Full |
| Flutter (iOS) | Full |
| Flutter (Desktop) | Full |
| Flutter (Web) | Not supported |
caution
The network layer, the WebSocket event stream, and the file-backed wallet
helpers use dart:io, which does not exist on the web. Build for the VM,
mobile, or desktop; on web, put the SDK behind a backend you control.
Dependencies
| Package | Used for |
|---|---|
dio | HTTP client for the API and Gateway providers |
web_socket_channel | WebSocket event streaming |
pointycastle | Cryptographic primitives |
cryptography | Keystore key derivation |
pinenacl | Ed25519 signing and secret-box encryption |
ed25519_hd_key | HD key derivation |
bip39_plus | Mnemonic generation and validation |
unorm_dart | Unicode normalization of mnemonics |
convert | Hex and base encodings |
yaml | Reading abidock.yaml in the CLI |
path | Filesystem paths in the CLI and wallet helpers |
meta | Annotations |
Everything is pure Dart — no platform channels, no native build step.
Next Steps
- Quick Start Guide - Create your first transaction
- Configuration - Configure network and providers