Class ScheduleInfoExtensions
Extension methods for querying scheduled transaction information from the network.
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public static class ScheduleInfoExtensions
Methods
| Edit this page View SourceGetScheduleInfoAsync(ConsensusClient, EntityId, CancellationToken, Action<IConsensusContext>?)
Retrieves detailed information regarding a scheduled transaction by ID.
Declaration
public static Task<ScheduleInfo> GetScheduleInfoAsync(this ConsensusClient client, EntityId schedule, CancellationToken cancellationToken = default, Action<IConsensusContext>? configure = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ConsensusClient | client | The Consensus Node Client to query. |
| EntityId | schedule | The address of the schedule entity 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<ScheduleInfo> | A detailed description of the schedule transaction, including the serialized schedule transaction body itself. |
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. |