Class NetworkStakeDataExtensions
Extension methods for querying network stake data from the mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class NetworkStakeDataExtensions
Methods
| Edit this page View SourceGetNetworkStakeAsync(MirrorRestClient)
Retrieves the network's current staking parameters and
balances via /api/v1/network/stake. Returns a single
snapshot covering the in-progress staking period.
Declaration
public static Task<NetworkStakeData?> GetNetworkStakeAsync(this MirrorRestClient client)
Parameters
| Type | Name | Description |
|---|---|---|
| MirrorRestClient | client | Mirror Rest Client to use for the request. |
Returns
| Type | Description |
|---|---|
| Task<NetworkStakeData> | The network stake data, or null if not found. |