GridPlus / gridplus-sdk

SDK for communicating with the GridPlus Lattice1 hardware wallet
MIT License
50 stars 24 forks source link

adds `fetchAddress` #544

Closed netbonus closed 9 months ago

netbonus commented 9 months ago

example:

const address = await fetchAddress()
// returns the m/44'/60'/0'/0/0 address from the active wallet

const address = await fetchAddress(10)
// returns the m/44'/60'/0'/0/10 address from the wallet

const address = await fetchAddress([HARDENED_OFFSET + 84, HARDENED_OFFSET, HARDENED_OFFSET, 0, 0])
// returns the m/84'/0'/0'/0'/0/0 address (the first btc addr)