vechain_flutter_sdk 0.0.5-dev
vechain_flutter_sdk: ^0.0.5-dev copied to clipboard
A native Flutter/Dart SDK for VeChainThor. Pure Dart: wallets, transactions, fee delegation and VeBetter X-to-Earn integration.
example/vechain_flutter_sdk_example.dart
// vechain_flutter_sdk - Quick Start Examples
//
// This file is the entry point for all SDK examples. Each phase's
// examples live in their own file under example/phaseN/, one file
// per sub-version released within that phase.
//
// Technical decisions behind every example (why a library was chosen,
// how it was verified against official sources) are documented at:
// https://github.com/nemorixgroup/VeChain-Knowledge-Base/tree/main/docs-sdk
//
// Running this example:
// ```sh
// dart run example/vechain_flutter_sdk_example.dart
// ```
// GitHub:
// https://github.com/nemorixgroup/vechain-flutter-sdk/blob/main/example/vechain_flutter_sdk_example.dart
//
// Planned phases:
// Phase 1 - Foundations (networks, keys, mnemonics, HD wallet, keystore) - CURRENT
// Phase 2 - Thor REST Client (accounts, blocks, receipts, fees)
// Phase 3 - Transactions (clauses, intrinsic gas, legacy and dynamic fee)
// Phase 4 - Fee Delegation (VIP-191, local and remote gas payer)
// Phase 5 - Contracts and Tokens (ABI, ERC-20, events)
// Phase 6 - VeBetter Integration (B3TR, VOT3, X2Earn rewards)
// Phase 7 - Certificates (VIP-192) and demo app
import 'phase1/hash_example.dart';
import 'phase1/keypair_example.dart';
import 'phase1/network_example.dart';
import 'phase1/signature_example.dart';
Future<void> main() async {
// Phase 1 - Foundations
// https://github.com/nemorixgroup/VeChain-Knowledge-Base/tree/main/docs-sdk/phase-1
print('--- 0.0.2-dev: Network configuration ---');
networkConfigurationExample();
print('');
print('--- 0.0.3-dev: Hashing and hex encoding ---');
hashingExample();
print('');
print('--- 0.0.4-dev: Keypair, address and checksum ---');
keypairAndAddressExample();
print('');
print('--- 0.0.5-dev: Signatures and public key recovery ---');
signatureExample();
}