Class FeeScheduleExtension
Extends the client functionality to include retrieving the Exchange Rate directly from the network.
Inherited Members
Namespace: Hashgraph.Extensions
Assembly: Hashgraph.dll
Syntax
public static class FeeScheduleExtension
Fields
| Improve this Doc View SourceFEE_SCHEDULE_FILE_ADDRESS
Well known address of the fee schedule file.
Declaration
public static readonly Address FEE_SCHEDULE_FILE_ADDRESS
Field Value
Type | Description |
---|---|
Address |
Methods
| Improve this Doc View SourceGetFeeScheduleAsync(Client, Action<IContext>)
Retrieves the metrics for calculating fees from the network. network.
Declaration
public static async Task<FeeSchedules> GetFeeScheduleAsync(this Client client, Action<IContext> configure = null)
Parameters
Type | Name | Description |
---|---|---|
Client | client | Client Object |
Action<IContext> | 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 incours a charge to retrieve the file from the network.