New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@gotabit/wallet-local

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gotabit/wallet-local

Cosmos local Wallet with Direct and Amino signing

Source
npmnpm
Version
1.1.21
Version published
Weekly downloads
8
60%
Maintainers
3
Weekly downloads
 
Created
Source

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.

Keywords

cosmos

FAQs

Package last updated on 25 Nov 2022

Related posts