easy-eth-wallets

0.3.0 • Public • Published

Interact with TomoChain wallets easily

Ledger Wallet

import { LedgerWallet } from  'easy-eth-wallets'
 
const wallet = LedgerWallet.init(hdPath, offset, numberWallets)

Trezor Wallet

import { TrezorWallet } from  'easy-eth-wallets'
 
const wallet = TrezorWallet.init(hdPath, email, appUrl, offset, numberWallets)

email and appUrl are required that you as a Trezor Connect integrator. Read more at https://github.com/trezor/connect/blob/develop/docs/index.md

Functions

const signMessageSig = await wallet.signMessage('This is message')
 
const signTransactionSig = await wallet.signTransaction(txParams, stringified)

stringified variable(Boolean) is using for returning result (string(signature) or object tx)

Package Sidebar

Install

npm i easy-eth-wallets

Weekly Downloads

4

Version

0.3.0

License

MIT

Unpacked Size

502 kB

Total Files

10

Last publish

Collaborators

  • vupq