@gotabit/wallet-local
TypeScript icon, indicating that this package has built-in type declarations

1.1.28 • Public • Published

Gotabit-wallet-local

Gotabit Local Wallet with Direct and Amino signing

Install

npm install

npm i @gotabit/wallet-local

yarn install

yarn add @gotabit/wallet-local

Init 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.

/@gotabit/wallet-local/

    Package Sidebar

    Install

    npm i @gotabit/wallet-local

    Weekly Downloads

    1

    Version

    1.1.28

    License

    MIT

    Unpacked Size

    2.08 MB

    Total Files

    14

    Last publish

    Collaborators

    • new_sunflower
    • wuchendi
    • roy_gotabit