ClaimReward
A ClaimReward transaction allows an account to claim the rewards it has accumulated. The rewards can be claimed by the account owner or by a specified issuer. The account can also opt-out of rewards.
[Source]
(Added by the [BalanceRewards amendment][].)
Opt-in + Claim
Opt-out
Fields
Field | JSON Type | [Internal Type][] | Description |
---|---|---|---|
| String | AccountID | The address of the account that is claiming the reward. |
| Number | UInt32 | (Optional) Can have flag 1 set to opt-out of rewards. |
| String | AccountID | (Optional) The genesis account. |
ClaimReward Flags
Transactions of the ClaimReward type support additional values in the Flags
field, as follows:
Flag Name | Hex Value | Decimal Value | Description |
---|---|---|---|
|
| 1 | The |
Special Transaction Cost
The ClaimReward transaction has a standard transaction cost, which is the minimum transaction cost required for all transactions.
Error Cases
Besides errors that can occur for all transactions, ClaimReward transactions can result in the following transaction result codes:
Error Code | Description |
---|---|
| Occurs if the feature is not enabled. |
| Occurs if the flag is set to a value other than 1. |
| Occurs if the issuer is the same as the source account or if the flag and issuer are not correctly set. |
| Occurs if the issuer does not exist. |
| Occurs if the sending account does not exist. |
Last updated