Show / Hide Table of Contents

Class TokenAirdropDataExtensions

Extension methods for querying the token-airdrop endpoints on the mirror node.

Inheritance
object
TokenAirdropDataExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public static class TokenAirdropDataExtensions

Methods

| Edit this page View Source

GetAccountOutstandingAirdropsAsync(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.

| Edit this page View Source

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.

  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph