Skip to main content

Function Signature

Description

Retrieves client information from the Portal backend, including the client ID, list of wallets, and environment configuration.

Parameters

This method takes no parameters.

Returns

PortalClientInfo - An object containing:

PortalClientCustodian

PortalClientMetadata

PortalClientMetadataNamespaces

Each property is a PortalNamespaceMetadataItem?, and is null when the client has no wallet for that namespace.

PortalNamespaceMetadataItem

PortalBitcoinAddressInfo

PortalP2wpkhAddressInfo

getClient() is the only way to reach a Bitcoin address from Dart. getAddress('bip122:...') returns null, and getAddresses() carries only ethereum and solana.

PortalWallet

PortalBackupSharePair

PortalSigningSharePair

PortalClientEnvironment

Example

Use Cases

Check Eject Availability

Read the Bitcoin Address

Detect Portal-Managed vs Self-Managed Backups

Errors