Class CancelAirdropParams
Transaction Parameters for cancelling one or more pending airdrops.
Inherited Members
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 SourceAirdrops
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> |
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 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.