nimiqclient.models.account.StakingContract¶
- class nimiqclient.models.account.StakingContract(address, balance, type)[source]¶
Bases:
AccountStaking Contract object returned by the server.
- Parameters:
address (str) – User friendly address (NQ-address).
balance (int) – Balance of the account (in smallest unit).
type (AccountType) – The account type associated with the account.
Methods
Get the specific account type from the dictionary data.
- static get_account(data)¶
Get the specific account type from the dictionary data.
- Parameters:
data (dict) – The dictionary containing the data.
- Returns:
Account object.
- Return type:
Account or VestingContract or HTLC