Class ConsensusNodeInfoExtensions
Extension methods for retrieving consensus node address book information from the network.
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public static class ConsensusNodeInfoExtensions
Methods
| Edit this page View SourceGetAddressBookAsync(ConsensusClient, CancellationToken, Action<IConsensusContext>?)
Retrieves the consensus node address book information from the network.
Declaration
public static Task<ConsensusNodeInfo[]> GetAddressBookAsync(this ConsensusClient client, CancellationToken cancellationToken = default, Action<IConsensusContext>? configure = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ConsensusClient | client | ConsensusClient Object |
| 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<ConsensusNodeInfo[]> | An array of consensus node information entries from the network's address book. |
Remarks
NOTE: this method incurs a charge to retrieve the file from the network.