Class NetworkSupplyDataExtensions
Extension methods for querying network supply data from the mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class NetworkSupplyDataExtensions
Methods
| Edit this page View SourceGetNetworkSupplyAsync(MirrorRestClient, ConsensusTimeStamp?)
Retrieves the network's HBAR supply totals at or before the
given consensus timestamp. When consensus
is null, returns the most recent values.
Declaration
public static Task<NetworkSupplyData?> GetNetworkSupplyAsync(this MirrorRestClient client, ConsensusTimeStamp? consensus = null)
Parameters
| Type | Name | Description |
|---|---|---|
| MirrorRestClient | client | Mirror Rest Client to use for the request. |
| ConsensusTimeStamp? | consensus | Optional consensus timestamp — returns the supply state as of
|
Returns
| Type | Description |
|---|---|
| Task<NetworkSupplyData> | The network supply data, or null if not found. |