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