Package com.casper.sdk.model.reward
Class GetRewardResult
- java.lang.Object
-
- com.casper.sdk.model.common.RpcResult
-
- com.casper.sdk.model.reward.GetRewardResult
-
public class GetRewardResult extends RpcResult
Result for "info_get_reward" RPC request.
-
-
Constructor Summary
Constructors Constructor Description GetRewardResult()GetRewardResult(java.math.BigInteger rewardAmount, long eraId, long delegation_rate, BlockHashIdentifier switch_block_hash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDelegation_rate()The delegation rate of the validator.longgetEraId()The era for which the reward was calculated.java.math.BigIntegergetRewardAmount()The total reward amount in the requested era.BlockHashIdentifiergetSwitch_block_hash()The switch block hash at which the reward was distributed.-
Methods inherited from class com.casper.sdk.model.common.RpcResult
getApiVersion, getProtocolVersion
-
-
-
-
Constructor Detail
-
GetRewardResult
public GetRewardResult(java.math.BigInteger rewardAmount, long eraId, long delegation_rate, BlockHashIdentifier switch_block_hash)
-
GetRewardResult
public GetRewardResult()
-
-
Method Detail
-
getRewardAmount
public java.math.BigInteger getRewardAmount()
The total reward amount in the requested era.
-
getEraId
public long getEraId()
The era for which the reward was calculated.
-
getDelegation_rate
public long getDelegation_rate()
The delegation rate of the validator.
-
getSwitch_block_hash
public BlockHashIdentifier getSwitch_block_hash()
The switch block hash at which the reward was distributed.
-
-