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 typebip32: BIP-32 HD wallet accountmultisig: Multi-signature accountkeypair: Simple keypair accountbip32watch: Watch-only BIP-32 account
__new__
¶
__new__(kind: str) -> AccountKind
Create a new AccountKind from a string.
| PARAMETER | DESCRIPTION |
|---|---|
kind
|
The account kind string.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
AccountKind
|
A new AccountKind instance.
TYPE:
|
| RAISES | DESCRIPTION |
|---|---|
Exception
|
If the kind string is invalid. |
__str__
¶
The string representation.
| RETURNS | DESCRIPTION |
|---|---|
str
|
The account kind as a string.
TYPE:
|
to_string
¶
Get the string representation.
| RETURNS | DESCRIPTION |
|---|---|
str
|
The account kind as a string.
TYPE:
|