Show / Hide Table of Contents

Class Airdrop

Identifies a pending airdrop by its sender, receiver, and token.

Inheritance
object
Airdrop
Implements
IEquatable<Airdrop>
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 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 Source

Airdrop(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.

| Edit this page View Source

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 Source

Nft

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
| Edit this page View Source

Receiver

The account that will receive the tokens if the airdrop is claimed.

Declaration
public EntityId Receiver { get; init; }
Property Value
Type Description
EntityId
| Edit this page View Source

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
| Edit this page View Source

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

Implements

IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph