Class ScheduleDataExtensions
Extension methods for querying schedule data from the mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class ScheduleDataExtensions
Methods
| Edit this page View SourceGetScheduleAsync(MirrorRestClient, EntityId)
Retrieves a single schedule entity by id from
/api/v1/schedules/{id}.
Declaration
public static Task<ScheduleData?> GetScheduleAsync(this MirrorRestClient client, EntityId schedule)
Parameters
| Type | Name | Description |
|---|---|---|
| MirrorRestClient | client | Mirror Rest Client to use for the request. |
| EntityId | schedule | The schedule entity id to look up. |
Returns
| Type | Description |
|---|---|
| Task<ScheduleData> | The schedule record, or null if not found. |
GetSchedulesAsync(MirrorRestClient, params IMirrorQueryParameter[])
Enumerates schedule entities across the network. Use AccountFilter to narrow to a specific creator or payer, ScheduleFilter for a specific schedule id (or range), or PageLimit / OrderBy for paging.
Declaration
public static IAsyncEnumerable<ScheduleData> GetSchedulesAsync(this MirrorRestClient client, params IMirrorQueryParameter[] filters)
Parameters
| Type | Name | Description |
|---|---|---|
| MirrorRestClient | client | Mirror Rest Client to use for the request. |
| IMirrorQueryParameter[] | filters | Additional query filters. The endpoint supports AccountFilter, ScheduleFilter, PageLimit, and OrderBy. |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<ScheduleData> | An async enumerable of schedule records. |