public class WithdrawVestingOperation extends Operation
| Constructor and Description |
|---|
WithdrawVestingOperation(AccountName account,
Asset vestingShares,
Asset fee)
Create a new withdraw vesting operation.
|
| Modifier and Type | Method and Description |
|---|---|
AccountName |
getAccount()
Get the account name of the account that the withdraw vesting operation
has been executed for.
|
Asset |
getFee() |
Map<SignatureObject,PrivateKeyType> |
getRequiredAuthorities(Map<SignatureObject,PrivateKeyType> requiredAuthoritiesBase)
Add the authorities which are required to sign this operation to an
existing map.
|
Asset |
getVestingShares()
Get the amount that has been requested for withdrawing.
|
void |
setAccount(AccountName account)
Set the account name of the account that the withdraw vesting operation
should be executed for.
|
void |
setFee(Asset fee) |
void |
setVestingShares(Asset vestingShares)
Set the amount that should be requested for withdrawing.
|
byte[] |
toByteArray()
Covert the operation into a byte array.
|
String |
toString() |
void |
validate(ValidationType validationType)
Use this method to verify that this object is valid.
|
isVirtual, mergeRequiredAuthorities, mergeRequiredAuthoritiespublic WithdrawVestingOperation(AccountName account, Asset vestingShares, Asset fee)
At any given point in time an account can be withdrawing from their vesting shares. A user may change the number of shares they wish to cash out at any time between 0 and their total vesting stake.
After applying this operation, vestingShares
will be withdrawn at a rate of vestingShares/104 per week for two years starting one week after this
operation is included in the blockchain.
This operation is not valid if the user has no vesting shares.
account - Set the account that wants to start powering down (see
setAccount(AccountName)).vestingShares - Set the amount of M to power down (see
setVestingShares(Asset)).fee - The fee of transaction.public AccountName getAccount()
public void setAccount(AccountName account)
account - The account name for which the withdraw vesting operation
should be executed for.InvalidParameterException - If no account name has been provided.public Asset getVestingShares()
public void setVestingShares(Asset vestingShares)
vestingShares - The amount that should be requested for withdrawing.InvalidParameterException - If the asset type is null.public Asset getFee()
public void setFee(Asset fee)
public byte[] toByteArray()
throws BeowulfInvalidTransactionException
ByteTransformableBeowulfInvalidTransactionException - If there was a problem while transforming the transaction
into a byte array.public Map<SignatureObject,PrivateKeyType> getRequiredAuthorities(Map<SignatureObject,PrivateKeyType> requiredAuthoritiesBase)
OperationgetRequiredAuthorities in class OperationrequiredAuthoritiesBase - A map to which the required authorities of this operation
should be added to.public void validate(ValidationType validationType)
ValidatablevalidationType - An indicator telling the method what should be validated.Copyright © 2019. All rights reserved.