0.3.0 • Published 5 years ago

easy-eth-wallets v0.3.0

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

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)