Class ClaimAirdropParams
Transaction Parameters for claiming one or more pending airdrops.
Inherited Members
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 SourceAirdrops
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> |
CancellationToken
Optional cancellation token to interrupt the submission process.
Declaration
public CancellationToken? CancellationToken { get; set; }
Property Value
| Type | Description |
|---|---|
| CancellationToken? |
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.