wallet_core_bindings_native 4.2.21 copy "wallet_core_bindings_native: ^4.2.21" to clipboard
wallet_core_bindings_native: ^4.2.21 copied to clipboard

Dart native bindings for trust wallet core, used in Flutter and Dart.

wallet_core_bindings_native #

License

Native implementation of wallet_core_bindings.

Packages #

Package Pub
wallet_core_bindings Pub
wallet_core_bindings_native Pub
wallet_core_bindings_wasm Pub
wallet_core_bindings_libs Pub
wallet_core_bindings_wasm_assets Pub

Getting Started #

Usually, it needs to be used with wallet_core_bindings_libs.

dependencies:
  wallet_core_bindings: version
  wallet_core_bindings_native: version
  wallet_core_bindings_libs: version
copied to clipboard
import 'package:wallet_core_bindings/wallet_core_bindings.dart';
import 'package:wallet_core_bindings_native/wallet_core_bindings_native.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await WalletCoreBindingsNativeImpl().initialize();
  runApp(const MyApp());
}
copied to clipboard

wallet_core_bindings_libs currently only supports Android, iOS, Linux and macOS. If you want to support other platforms, you need to import the dynamic library of wallet core into the project. See wallet_core_bindings_libs.

dependencies:
  wallet_core_bindings: version
  wallet_core_bindings_native: version
copied to clipboard
import 'package:wallet_core_bindings/wallet_core_bindings.dart';
import 'package:wallet_core_bindings_native/wallet_core_bindings_native.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  final bindings = TrustWalletCoreBindings(DynamicLibrary.open('libTrustWalletCore.dylib'));
  await WalletCoreBindingsNativeImpl(bindings).initialize();
  runApp(const MyApp());
}
copied to clipboard

Usage #

For comprehensive documentation, see package repository.

Generate #

C Bindings #

Extract header files in include/TrustWalletCore and generate Dart bindings code.

dart run ffigen
copied to clipboard

License #

Commercial license #

If you want to use wallet_core_bindings in your commercial app, website or plugin, you need to obtain a commercial license from the author. Please contact xuelongqy@qq.com for more information.Once you obtain the license, your authorization information will appear in the AUTHORIZED.md.

Open-source license #

GNU AGPLv3

0
likes
130
points
568
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.26 - 2025.04.10

Dart native bindings for trust wallet core, used in Flutter and Dart.

Repository (GitHub)

Documentation

API reference

License

AGPL-3.0 (license)

Dependencies

ffi, wallet_core_bindings

More

Packages that depend on wallet_core_bindings_native