Class StakingRewardDataExtensions
Extension methods for querying staking-reward data from the mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class StakingRewardDataExtensions
Methods
| Edit this page View SourceGetAccountStakingRewardsAsync(MirrorRestClient, EntityId, params IMirrorQueryParameter[])
Enumerates the staking reward payouts received by a specific
account from /api/v1/accounts/{id}/rewards. Use
TimestampFilter to bracket a time range.
Newest-first by default; pass Ascending
to reverse.
Declaration
public static IAsyncEnumerable<StakingRewardData> GetAccountStakingRewardsAsync(this MirrorRestClient client, EntityId account, params IMirrorQueryParameter[] filters)
Parameters
| Type | Name | Description |
|---|---|---|
| MirrorRestClient | client | Mirror Rest Client to use for the request. |
| EntityId | account | The account whose staking-reward history is requested. |
| IMirrorQueryParameter[] | filters | Additional query parameters. The endpoint supports TimestampFilter, PageLimit, and OrderBy. |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<StakingRewardData> | An async enumerable of staking-reward records. |