A single wallet account can expose multiple addresses, each with a different purpose. For example, a Bitcoin wallet may have a payment address and an ordinals address, or a Midnight wallet may have midnight_unshielded and midnight_dust addresses.
Use getWalletAccountAddressByType to pick the address that matches the type you need.
Usage
getWalletAccountAddressByType is a synchronous lookup, so there is no dedicated hook. Read the reactive useGetWalletAccounts and re-derive the address whenever accounts change:
Parameters
Common address types
Returns
The matching address as a string, or undefined if the wallet account does not have an address of the requested type.
Last modified on October 23, 2026