api/addresses
fetchAddress()โ
fetchAddress(
path:number|WalletPath):Promise<string>
Fetches a single address from the device.
Parametersโ
| Parameter | Type | Default value | Description |
|---|---|---|---|
path | number | WalletPath | 0 | either the index of ETH signing path or the derivation path to fetch |
Returnsโ
Promise<string>
Noteโ
By default, this function fetches m/44'/60'/0'/0/0
Sourceโ
fetchBtcXpub()โ
fetchBtcXpub():
Promise<string>
Fetches Bitcoin legacy extended public key (xpub) for BIP44 (m/44'/0'/0').
Returnsโ
Promise<string>
xpub string
Sourceโ
fetchBtcYpub()โ
fetchBtcYpub():
Promise<string>
Fetches Bitcoin wrapped segwit extended public key (ypub) for BIP49 (m/49'/0'/0').
Returnsโ
Promise<string>
ypub string
Sourceโ
fetchBtcZpub()โ
fetchBtcZpub():
Promise<string>
Fetches Bitcoin native segwit extended public key (zpub) for BIP84 (m/84'/0'/0').
Returnsโ
Promise<string>
zpub string