Class Airdrop
Identifies a pending airdrop by its sender, receiver, and token.
Implements
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed record Airdrop : IEquatable<Airdrop>
Remarks
A pending airdrop is created when an airdrop transaction targets an account that cannot immediately receive the token (e.g., no auto-association slots available, or receiver signature required). It must be either claimed by the receiver or cancelled by the sender.
Constructors
| Edit this page View SourceAirdrop(EntityId, EntityId, EntityId)
Creates a pending airdrop identifier for a fungible token.
Declaration
public Airdrop(EntityId token, EntityId sender, EntityId receiver)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | token | The fungible token type being airdropped. |
| EntityId | sender | The account sending the airdrop. |
| EntityId | receiver | The account receiving the airdrop. |
Airdrop(Nft, EntityId, EntityId)
Creates a pending airdrop identifier for a non-fungible token.
Declaration
public Airdrop(Nft nft, EntityId sender, EntityId receiver)
Parameters
| Type | Name | Description |
|---|---|---|
| Nft | nft | The specific NFT instance being airdropped. |
| EntityId | sender | The account sending the airdrop. |
| EntityId | receiver | The account receiving the airdrop. |
Properties
| Edit this page View SourceNft
The specific NFT instance being airdropped, or null if this is a fungible token airdrop.
Declaration
public Nft? Nft { get; init; }
Property Value
| Type | Description |
|---|---|
| Nft |
Receiver
The account that will receive the tokens if the airdrop is claimed.
Declaration
public EntityId Receiver { get; init; }
Property Value
| Type | Description |
|---|---|
| EntityId |
Sender
The account that initiated and will fund this pending airdrop (the account whose tokens are airdropped, which may differ from the fee payer of the airdrop transaction).
Declaration
public EntityId Sender { get; init; }
Property Value
| Type | Description |
|---|---|
| EntityId |
Token
The fungible token type being airdropped, or null if this is an NFT airdrop.
Declaration
public EntityId? Token { get; init; }
Property Value
| Type | Description |
|---|---|
| EntityId |