Show / Hide Table of Contents

Class ClaimAirdropParams

Transaction Parameters for claiming one or more pending airdrops.

Inheritance
object
TransactionParams
TransactionParams<TransactionReceipt>
ClaimAirdropParams
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed class ClaimAirdropParams : TransactionParams<TransactionReceipt>
Remarks

This transaction must be signed by the receiver account for each pending airdrop to be claimed. If the sender has insufficient balance at claim time, the claim fails. Successfully claimed airdrops are removed from state and tokens are transferred to the receiver's balance.

Examples

Claim several pending airdrops (mixing fungible and NFT is allowed) in one transaction:

// Claim several pending airdrops in a single transaction. Mixing
// fungible and NFT pendings in one call is fine.
var receipt = await client.ClaimAirdropsAsync(new ClaimAirdropParams
{
    Airdrops = new[]
    {
        new Airdrop(sender, receiver, token1),
        new Airdrop(sender, receiver, nft1)
    }
});
Console.WriteLine($"Claim status: {receipt.Status}");

Properties

| Edit this page View Source

Airdrops

The pending airdrops to claim. Must contain between 1 and 10 entries with no duplicates.

Declaration
public IReadOnlyList<Airdrop> Airdrops { get; set; }
Property Value
Type Description
IReadOnlyList<Airdrop>
| Edit this page View Source

CancellationToken

Optional cancellation token to interrupt the submission process.

Declaration
public CancellationToken? CancellationToken { get; set; }
Property Value
Type Description
CancellationToken?
| Edit this page View Source

Signatory

Additional private key, keys or signing callback method required to authorize the claim. Must match the endorsement assigned to the receiver account for each pending airdrop.

Declaration
public Signatory? Signatory { get; set; }
Property Value
Type Description
Signatory
Remarks

Keys/callbacks added here will be combined with those already identified in the client object's context when signing this transaction.

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