wallet_core_bindings_wasm 4.3.1 copy "wallet_core_bindings_wasm: ^4.3.1" to clipboard
wallet_core_bindings_wasm: ^4.3.1 copied to clipboard

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

wallet_core_bindings_wasm #

License

WebAssembly System Interface 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_wasm_assets.

dependencies:
  wasm_run_flutter: version
  wallet_core_bindings: version
  wallet_core_bindings_wasm: version
  wallet_core_bindings_wasm_assets: version
copied to clipboard
import 'package:wallet_core_bindings/wallet_core_bindings.dart';
import 'package:wallet_core_bindings_wasm/wallet_core_bindings_wasm.dart';
import 'package:wasm_run_flutter/wasm_run_flutter.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await WasmRunLibrary.setUp(override: false);
  await WalletCoreBindingsWasmImpl().initialize();
  runApp(const MyApp());
}
copied to clipboard

If you want to modify wallet_core, see wallet_core_bindings_wasm_assets.

dependencies:
  wasm_run_flutter: version
  wallet_core_bindings: version
  wallet_core_bindings_wasm: version
copied to clipboard
import 'package:flutter/services.dart';
import 'package:wallet_core_bindings/wallet_core_bindings.dart';
import 'package:wallet_core_bindings_wasm/wallet_core_bindings_wasm.dart';
import 'package:wasm_run_flutter/wasm_run_flutter.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await WasmRunLibrary.setUp(override: false);
  final wasmBytes = (await rootBundle.load('.../wallet-core.wasm')).buffer.asUint8List();
  await WalletCoreBindingsWasmImpl(wasmBytes).initialize();
  runApp(const MyApp());
}
copied to clipboard

Usage #

For comprehensive documentation, see package repository.

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
140
points
403
downloads

Publisher

unverified uploader

Weekly Downloads

2024.10.06 - 2025.04.20

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

AGPL-3.0 (license)

Dependencies

flutter, wallet_core_bindings, wasm_run, wasm_run_flutter

More

Packages that depend on wallet_core_bindings_wasm