easy-eth-wallets
v0.3.0
Published
Interact with TomoChain wallets easily
Downloads
7
Maintainers
Readme
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)