Show / Hide Table of Contents

Class NetworkFeeExtensions

Extension methods for querying network fee data from the mirror node.

Inheritance
object
NetworkFeeExtensions
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 NetworkFeeExtensions

Methods

| Edit this page View Source

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

| Edit this page View Source

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.

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