Skip to content

AccountDescriptor (Class)

account_id property

account_id: AccountId

The account id.

account_index property

account_index: Optional[int]

The BIP44 account index. None for account kinds that are not derived from an account index (e.g. keypair accounts).

account_name property

account_name: Optional[str]

The user-assigned account name, or None if unset.

balance property

balance: Optional[Balance]

The current balance of the account, or None if not yet known.

change_address property

change_address: Optional[Address]

The current change address as a string, or None if not available.

change_address_index property

change_address_index: Optional[int]

Number of change addresses derived so far for this account. The next change address generated by accounts_create_new_address will be at this index. None for account kinds without HD derivation.

ecdsa property

ecdsa: Optional[bool]

Whether the account uses ECDSA signatures (vs Schnorr). None if not applicable.

kind property

The account kind (e.g. Bip32, Keypair, MultiSig).

prv_key_data_ids property

prv_key_data_ids: Optional[list[PrvKeyDataId]]

The associated prv key data ids

receive_address property

receive_address: Optional[Address]

The current receive address as a string, or None if not available.

receive_address_index property

receive_address_index: Optional[int]

Number of receive addresses derived so far for this account. The next receive address generated by accounts_create_new_address will be at this index. None for account kinds without HD derivation.

xpub_keys property

xpub_keys: Optional[list[str]]

Extended public keys associated with the account, formatted as strings. None for account kinds that don't expose xpubs (e.g. keypair accounts).

__repr__

__repr__() -> str

The string representation.

RETURNS DESCRIPTION
str

The AccountDescriptor as a string.

TYPE: str

get_addresses

get_addresses() -> Optional[list[Address]]

All addresses of the account