Package Exports
- @gotabit/wallet-local
- @gotabit/wallet-local/dist/cjs/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gotabit/wallet-local) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Gotabit-wallet-local
Gotabit Local Wallet with Direct and Amino signing
Install
npm install
npm i @gotabit/wallet-localyarn install
yarn add @gotabit/wallet-localInit Local wallet
import { LocalWallet } from '@gotabit/wallet-local';
// with mnemonic
const wallet = await LocalWallet.init({
mnemonic: 'your mnemonic',
});
// with privateKey
const wallet = await LocalWallet.init({
privateKey: 'your privateKey',
});
// with password
const wallet = await LocalWallet.init({
password: 'your password',
serialization: 'your encrypted serialization',
});
// generate a wallet account
const wallet = await LocalWallet.init({
walletGenerateLength: 12,
});Credits
Code built with the help of these related projects:
- cosmos/cosmjs CosmJS is the Swiss Army knife to power JavaScript based client solutions ranging from Web apps/explorers over browser extensions to server-side clients like faucets/scrapers in the Cosmos ecosystem.