nimiqclient.models.account.VestingContract¶
- class nimiqclient.models.account.VestingContract(address, balance, type, owner, vestingStart, vestingStepBlocks, vestingStepAmount, vestingTotalAmount)[source]¶
Bases:
AccountVesting 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.
owner (str) – User friendly address (NQ-address) of the owner of the vesting contract.
vestingStart (int) – The block that the vesting contracted commenced.
vestingStepBlocks (int) – The number of blocks after which some part of the vested funds is released.
vestingStepAmount (int) – The amount (in smallest unit) released every vestingStepBlocks blocks.
vestingTotalAmount (int) – The total amount (in smallest unit) that was provided at the contract creation.
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