Class FeeSchedulesExtensions
Extension methods for retrieving fee schedule information from the network.
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public static class FeeSchedulesExtensions
Methods
| Edit this page View SourceGetFeeScheduleAsync(ConsensusClient, CancellationToken, Action<IConsensusContext>?)
Retrieves the metrics for calculating fees from the network.
Declaration
public static Task<FeeSchedules> GetFeeScheduleAsync(this ConsensusClient client, CancellationToken cancellationToken = default, Action<IConsensusContext>? configure = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ConsensusClient | client | Consensus Client to query |
| CancellationToken | cancellationToken | Optional cancellation token. |
| Action<IConsensusContext> | configure | Optional callback method providing an opportunity to modify the execution configuration for just this method call. It is executed prior to submitting the request to the network. |
Returns
| Type | Description |
|---|---|
| Task<FeeSchedules> | The structure representing the metrics of the Network's Fee Schedule. |
Remarks
NOTE: this method incurs a charge to retrieve the file from the network.