bark_bitcoin 0.1.2-beta.32+bark.0.1.0-beta.8 copy "bark_bitcoin: ^0.1.2-beta.32+bark.0.1.0-beta.8" to clipboard
bark_bitcoin: ^0.1.2-beta.32+bark.0.1.0-beta.8 copied to clipboard

An implementation of the Ark protocol on Bitcoin.

example/main.dart

import 'basic_example.dart';
import 'default_onchain_example.dart';
import 'custom_onchain_example.dart';

void main() async {
  try {
    // basic example - offchain only
    await basicExample();
    // default onchain example - uses an internal bdk-based wallet with default configuration
    // The default onchain example showcases the boarding process.
    await defaultOnchainExample();
    // custom onchain example - uses a user-provided wallet implementation
    // The custom onchain example showcases the unilateral exit functionality.
    await customOnchainExample();
  } catch (e, stackTrace) {
    print('\n=== ERROR ===');
    print('Error: $e');
    print('Type: ${e.runtimeType}');
    print('Stack trace: $stackTrace');
  }
}
1
likes
120
points
5
downloads

Publisher

verified publishersecond.tech

Weekly Downloads

An implementation of the Ark protocol on Bitcoin.

Homepage
Repository

Documentation

API reference

License

MIT (license)

Dependencies

ffi, hooks, native_toolchain_rust

More

Packages that depend on bark_bitcoin