Class NetworkFeeExtensions
Extension methods for querying network fee data from the mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class NetworkFeeExtensions
Methods
| Edit this page View SourceGetLatestNetworkFeesAsync(MirrorRestClient)
Retrieves the latest network fee data from the ledger.
Declaration
public static Task<NetworkFeeData?> GetLatestNetworkFeesAsync(this MirrorRestClient client)
Parameters
| Type | Name | Description |
|---|---|---|
| MirrorRestClient | client | Mirror Rest Client to use for the request. |
Returns
| Type | Description |
|---|---|
| Task<NetworkFeeData> | The current Network fee data or null if not found. |
GetNetworkFees(MirrorRestClient, ConsensusTimeStamp)
Retrieves the network fee data for the given timestamp.
Declaration
public static Task<NetworkFeeData?> GetNetworkFees(this MirrorRestClient client, ConsensusTimeStamp consensus)
Parameters
| Type | Name | Description |
|---|---|---|
| MirrorRestClient | client | Mirror Rest Client to use for the request. |
| ConsensusTimeStamp | consensus | Timestamp to attempt to retrieve the network fee data. |
Returns
| Type | Description |
|---|---|
| Task<NetworkFeeData> | Network fee data for the timestamp, or null if not found. |