Skip to content

AccountKind (Class)

Account kind is a string signature that represents an account type. Account kind is used to identify the account type during serialization, deserialization and various API calls.

Note

Supported values:

  • legacy: Legacy account type
  • bip32: BIP-32 HD wallet account
  • multisig: Multi-signature account
  • keypair: Simple keypair account
  • bip32watch: Watch-only BIP-32 account

__eq__

__eq__(other: object) -> bool

__new__

__new__(kind: str) -> AccountKind

Create a new AccountKind from a string.

PARAMETER DESCRIPTION
kind

The account kind string.

TYPE: str

RETURNS DESCRIPTION
AccountKind

A new AccountKind instance.

TYPE: AccountKind

RAISES DESCRIPTION
Exception

If the kind string is invalid.

__str__

__str__() -> str

The string representation.

RETURNS DESCRIPTION
str

The account kind as a string.

TYPE: str

to_string

to_string() -> str

Get the string representation.

RETURNS DESCRIPTION
str

The account kind as a string.

TYPE: str