Skip to content
On this page

Function: accountAddress()

TypeScript
function accountAddress(account: OcAccount | null | undefined): string | null;

Defined in: components.tsx:571 (opens in a new tab)

The account's Bitcoin address: its primary one, else the Bitcoin address it shows. Consumer sites verify the session locally and have no primary address (primary_btc is null), but a wallet sign-in shows its address. Null for an account that shows an email, a did or a Nostr key and has no primary address.

ParametersLink to this section

ParameterType
accountOcAccount | null | undefined

ReturnsLink to this section

string | null