Show / Hide Table of Contents

Class StakingRewardDataExtensions

Extension methods for querying staking-reward data from the mirror node.

Inheritance
object
StakingRewardDataExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class StakingRewardDataExtensions

Methods

| Edit this page View Source

GetAccountStakingRewardsAsync(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.

  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph