Show / Hide Table of Contents

Class CancelAirdropParams

Transaction Parameters for cancelling one or more pending airdrops.

Inheritance
object
TransactionParams
TransactionParams<TransactionReceipt>
CancelAirdropParams
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 CancelAirdropParams : TransactionParams<TransactionReceipt>
Remarks

This transaction must be signed by the sender account for each pending airdrop to be cancelled. Cancelled pending airdrops are permanently removed from state.

Examples

Cancel multiple pending airdrops in one transaction. The sender signs. Cancelled airdrops return tokens to the sender:

// Cancel several pending airdrops in one transaction.
var receipt = await client.CancelAirdropsAsync(new CancelAirdropParams
{
    Airdrops = new[]
    {
        new Airdrop(sender, receiver1, token),
        new Airdrop(sender, receiver2, token)
    }
});
Console.WriteLine($"Cancel status: {receipt.Status}");

Properties

| Edit this page View Source

Airdrops

The pending airdrops to cancel. 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 cancellation. Must match the endorsement assigned to the sender 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