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 are removed and can no longer be claimed:

// Cancel several pending airdrops in one transaction.
var receipt = await client.CancelAirdropsAsync(new CancelAirdropParams
{
    Airdrops = new[]
    {
        new Airdrop(token, sender, receiver1),
        new Airdrop(token, sender, receiver2)
    }
});
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. Cancelling stops the client waiting; it cannot recall a transaction already sent. Cancelled after the send, the outcome is unknown: settle it by its transaction id on a mirror node rather than resubmitting it.

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