bark_bitcoin 0.5.5+bark.0.1.4 copy "bark_bitcoin: ^0.5.5+bark.0.1.4" to clipboard
bark_bitcoin: ^0.5.5+bark.0.1.4 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';
import 'notifications_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();
    // notifications example - demonstrates Stream-based notification API
    await notificationsExample();
  } catch (e, stackTrace) {
    print('\n=== ERROR ===');
    print('Error: $e');
    print('Type: ${e.runtimeType}');
    print('Stack trace: $stackTrace');
  }
}
1
likes
115
points
11
downloads

Documentation

API reference

Publisher

verified publishersecond.tech

Weekly Downloads

An implementation of the Ark protocol on Bitcoin.

Homepage
Repository

License

MIT (license)

Dependencies

ffi, hooks, native_toolchain_rust

More

Packages that depend on bark_bitcoin