Skip to content

ClaimReward

[Source]

(Added by the [BalanceRewards amendment][].)

{
"TransactionType": "ClaimReward",
"Account": "rWYkbWkCeg8dP6rXALnjgZSjjLyih5NXm",
"Issuer": "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
}
{
"TransactionType": "ClaimReward",
"Account": "rWYkbWkCeg8dP6rXALnjgZSjjLyih5NXm",
"Flags": 1
}
FieldJSON Type[Internal Type][]Description
AccountStringAccountIDThe address of the account that is claiming the reward.
FlagsNumberUInt32(Optional) Can have flag 1 set to opt-out of rewards.
IssuerStringAccountID(Optional) The genesis account.

Transactions of the ClaimReward type support additional values in the Flags field, as follows:

Flag NameHex ValueDecimal ValueDescription
tfOptOut0x000000011The isOptOut flag in the ClaimReward code is used to opt-out an account from rewards by removing reward-related fields from the account object in the ledger if the sfFlags field in the transaction is set to 1.

The ClaimReward transaction has a standard transaction cost, which is the minimum transaction cost required for all transactions.

Besides errors that can occur for all transactions, ClaimReward transactions can result in the following transaction result codes:

Error CodeDescription
temDISABLEDOccurs if the feature is not enabled.
temINVALID_FLAGOccurs if the flag is set to a value other than 1.
temMALFORMEDOccurs if the issuer is the same as the source account or if the flag and issuer are not correctly set.
tecNO_ISSUEROccurs if the issuer does not exist.
terNO_ACCOUNTOccurs if the sending account does not exist.