Class TokenAirdropDataExtensions
Extension methods for querying the token-airdrop endpoints on the mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class TokenAirdropDataExtensions
Methods
| Edit this page View SourceGetAccountOutstandingAirdropsAsync(MirrorRestClient, EntityId, params IMirrorQueryParameter[])
Enumerates airdrops this account has sent that the
intended receivers have not yet claimed. From the caller's
perspective the given account is the
sender of each returned record.
Declaration
public static IAsyncEnumerable<TokenAirdropData> GetAccountOutstandingAirdropsAsync(this MirrorRestClient client, EntityId account, params IMirrorQueryParameter[] filters)
Parameters
| Type | Name | Description |
|---|---|---|
| MirrorRestClient | client | Mirror Rest Client to use for the request. |
| EntityId | account | The account whose outstanding (sent-but-unclaimed) airdrops are requested. |
| IMirrorQueryParameter[] | filters | Additional query filters. The endpoint supports ReceiverFilter, TokenFilter, SerialNumberFilter, PageLimit, and OrderBy. |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<TokenAirdropData> | An async enumerable of outstanding airdrop records. |
GetAccountPendingAirdropsAsync(MirrorRestClient, EntityId, params IMirrorQueryParameter[])
Enumerates airdrops this account has received but
not yet claimed (token not yet associated, or recipient
has not accepted). From the caller's perspective the
given account is the receiver of each
returned record.
Declaration
public static IAsyncEnumerable<TokenAirdropData> GetAccountPendingAirdropsAsync(this MirrorRestClient client, EntityId account, params IMirrorQueryParameter[] filters)
Parameters
| Type | Name | Description |
|---|---|---|
| MirrorRestClient | client | Mirror Rest Client to use for the request. |
| EntityId | account | The account whose pending (received-but-unclaimed) airdrops are requested. |
| IMirrorQueryParameter[] | filters | Additional query filters. The endpoint supports SenderFilter, TokenFilter, SerialNumberFilter, PageLimit, and OrderBy. |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<TokenAirdropData> | An async enumerable of pending airdrop records. |