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

1.1.28 • Public • Published

Gotabit-wallet

Gotabit Wallet with Direct and Amino signing

Install

npm install

npm i @gotabit/wallet

yarn install

yarn add @gotabit/wallet

Connect wallet

import { KeplrWallet, Walletconnect, LocalWallet } from '@gotabit/wallet';

const keplrWallet = await KeplrWallet.init('test');

const walletconnect = await Walletconnect.init('test', {
  logger: 'debug',
  relayUrl: 'wss://relay.gotabit.dev',
  projectId: '2c921904d8ebc91517cd11c1cc4a267f',
  metadata: {
    name: 'Gotabit SDK WalletConnect test',
    description: 'Gotabit SDK WalletConnect test',
    url: 'https://sdk.gotabit.dev',
    icons: [`https:\/\/res.gotabit.io\/svg\/icon.svg`],
  },
});

// local wallet with mnemonic
const localWallet = await LocalWallet.init({
  mnemonic: 'your mnemonic',
});

// local wallet with privateKey
const localWallet = await LocalWallet.init({
  privateKey: 'your privateKey',
});

// local wallet with password
const localWallet = await LocalWallet.init({
  password: 'your password',
  serialization: 'your encrypted serialization',
});

Credits

Code built with the help of these related projects:

Package Sidebar

Install

npm i @gotabit/wallet

Weekly Downloads

3

Version

1.1.28

License

MIT

Unpacked Size

2.54 MB

Total Files

10

Last publish

Collaborators

  • new_sunflower
  • wuchendi
  • roy_gotabit