Skip to main content

getAddresses

Function Signature

Description

Returns the addresses for the client’s wallet. Addresses come from the client’s wallet metadata (provided by the Portal API), not from the signing shares on the device — so this returns addresses whenever the client has a wallet, regardless of whether its signing shares are on the current device.
A returned address does not mean the wallet can sign on this device — it only tells you the client has a wallet. To check whether the signing shares are on the current device, use isWalletOnDevice.

Parameters

This method takes no parameters.

Returns

PortalGetAddressesResult - An object containing:

PortalAddresses

Example


getAddress

Function Signature

Description

Get the wallet address for a specific chain. Like getAddresses, it comes from the client’s Portal-provided wallet metadata, not from the on-device signing shares, so a non-null address only indicates the client has a wallet — it does not mean the signing shares are on this device. Use isWalletOnDevice to determine on-device signing availability.

Parameters

Returns

String? - The wallet address for the specified chain, or null if the client has no wallet.

Example

Errors