Class GetValidatorReward
Inherited Members
Namespace: Casper.Network.SDK.JsonRpc
Assembly: Casper.Network.SDK.dll
Syntax
public class GetValidatorReward : RpcMethod
Constructors
| Edit this page View SourceGetValidatorReward(PublicKey, IBlockIdentifier)
Returns the reward for a given era and a validator
Declaration
public GetValidatorReward(PublicKey validator, IBlockIdentifier blockIdentifier = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PublicKey | validator | The public key of the validator. |
| IBlockIdentifier | blockIdentifier | The identifier for the state used for the query, if none is passed, the latest block will be used. |
GetValidatorReward(PublicKey, ulong)
Returns the reward for a given era and a validator
Declaration
public GetValidatorReward(PublicKey validator, ulong eraId)
Parameters
| Type | Name | Description |
|---|---|---|
| PublicKey | validator | The public key of the validator. |
| ulong | eraId | Id of the Era to retrieve the rewards from. |