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 sender, EntityId receiver, EntityId fungibleToken)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | sender | The account sending the airdrop. |
| EntityId | receiver | The account receiving the airdrop. |
| EntityId | fungibleToken | The fungible token type being airdropped. |
Airdrop(EntityId, EntityId, Nft)
Creates a pending airdrop identifier for a non-fungible token.
Declaration
public Airdrop(EntityId sender, EntityId receiver, Nft nft)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityId | sender | The account sending the airdrop. |
| EntityId | receiver | The account receiving the airdrop. |
| Nft | nft | The specific NFT instance being airdropped. |
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 payer of the airdrop transfer 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 |