Skip to main content

api/addresses

fetchAddress()โ€‹

fetchAddress(path: number | WalletPath): Promise<string>

Fetches a single address from the device.

Parametersโ€‹

ParameterTypeDefault valueDescription
pathnumber | WalletPath0either 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โ€‹

src/api/addresses.ts:68


fetchBtcXpub()โ€‹

fetchBtcXpub(): Promise<string>

Fetches Bitcoin legacy extended public key (xpub) for BIP44 (m/44'/0'/0').

Returnsโ€‹

Promise<string>

xpub string

Sourceโ€‹

src/api/addresses.ts:247


fetchBtcYpub()โ€‹

fetchBtcYpub(): Promise<string>

Fetches Bitcoin wrapped segwit extended public key (ypub) for BIP49 (m/49'/0'/0').

Returnsโ€‹

Promise<string>

ypub string

Sourceโ€‹

src/api/addresses.ts:258


fetchBtcZpub()โ€‹

fetchBtcZpub(): Promise<string>

Fetches Bitcoin native segwit extended public key (zpub) for BIP84 (m/84'/0'/0').

Returnsโ€‹

Promise<string>

zpub string

Sourceโ€‹

src/api/addresses.ts:272