Class TopicInfoExtensions
Extension methods for querying consensus topic information.
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public static class TopicInfoExtensions
Methods
| Edit this page View SourceGetTopicInfoAsync(ConsensusClient, EntityId, CancellationToken, Action<IConsensusContext>?)
Retrieves detailed information regarding a Topic Instance.
Declaration
public static Task<TopicInfo> GetTopicInfoAsync(this ConsensusClient client, EntityId topic, CancellationToken cancellationToken = default, Action<IConsensusContext>? configure = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ConsensusClient | client | The Consensus Node Client to query. |
| EntityId | topic | The address of the Topic instance to retrieve. |
| 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<TopicInfo> | A detailed description of the topic instance. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | If required arguments are missing. |
| InvalidOperationException | If required context configuration is missing. |
| PrecheckException | If the gateway node rejected the request upon submission. |