Closed lf94 closed 3 years ago
In the meantime using https://www.npmjs.com/package/bip32 seems sufficient.
This function does in fact also return the address.
const address = await device.api.btcDisplayAddressSimple(...)
.
@benma ah, then the documentation is outdated. Thank you for clarifying!
The documentation says
btcDisplayAddressSimple
will display the address on the device, but why not also return it to the caller? Otherwise I have to include extra code to derive the address after obtaining the xpub from callingbtcXPub
.I imagine there is probably some explanation for this design, but I think it should be reconsidered!