0.8.0 • Published 6 years ago
trust-wallet-core v0.8.0
Trust Wallet Core
trust-wallet-core is a JavaScript wrapper around the wallet-core library that is a standalone npm package.
Type definitions for TypeScript are included.
Install
$ npm install trust-wallet-coreUsage
const WalletCore = require("trust-wallet-core");
WalletCore.HDWallet.create(128);
//=> "army cook device assault vendor case coast rose dismiss lady dust point!"from { HDWallet } from 'trust-wallet-core';
HDWallet.create(128);
//=> "army cook device assault vendor case coast rose dismiss lady dust point!"Documentation
Platforms
trust-wallet-core only supports macOS/OSX at the moment. Linux and Windows support is forthcoming.
Bindings
- This project uses
node-addon-apito interface withwallet-coreC headers. - The
node-addon-apifunctions are wrapped in TypeScript that is then used to generate a JavaScript module with type definitions.
Memory management
- Please note that memory allocated with C/C++ is released once there are no references to the JavaScript object, then Node.js garbage collector will try to release it from memory.
Other Resources
For general
TrustWallet/wallet-coredocumentation, please refer to GitBooks.For documentation on specific modules that are available, please refer to
TrustWallet/wallet-coreexposed C headers.