Show / Hide Table of Contents

Class NftTransfer

Represents a NFT transfer.

Inheritance
object
NftTransfer
Implements
IEquatable<NftTransfer>
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 NftTransfer : IEquatable<NftTransfer>

Constructors

| Edit this page View Source

NftTransfer(Nft, EntityId, EntityId, bool, HookCall?, HookCall?)

Public Constructor, an 
NftTransfer

is immutable after creation.

Declaration
public NftTransfer(Nft nft, EntityId fromAddress, EntityId toAddress, bool delegated = false, HookCall? senderAllowanceHook = null, HookCall? receiverAllowanceHook = null)
Parameters
Type Name Description
Nft nft

The address and serial number of the nft to transfer.

EntityId fromAddress

The address of the crypto account having the NFT.

EntityId toAddress

The address of the crypto account receiving the NFT.

bool delegated

Indicates the parties involved in the transaction are acting as delegates through a granted allowance.

HookCall senderAllowanceHook

Optional allowance hook call for the sender.

HookCall receiverAllowanceHook

Optional allowance hook call for the receiver.

Properties

| Edit this page View Source

Delegated

Indicates the transfer was authorized through the allowance mechanism and the sending account may not have signed this transaction.

Declaration
public bool Delegated { get; }
Property Value
Type Description
bool
| Edit this page View Source

From

The account sending the NFT.

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

Nft

The Token ID and Serial Number of the nft to transfer.

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

ReceiverAllowanceHook

Optional allowance hook call for the receiver of this NFT transfer. The hook's CallMode determines whether it is invoked before the transfer only, or both before and after.

Declaration
public HookCall? ReceiverAllowanceHook { get; }
Property Value
Type Description
HookCall
| Edit this page View Source

SenderAllowanceHook

Optional allowance hook call for the sender of this NFT transfer. The hook's CallMode determines whether it is invoked before the transfer only, or both before and after.

Declaration
public HookCall? SenderAllowanceHook { get; }
Property Value
Type Description
HookCall
| Edit this page View Source

To

The account receiving the NFT.

Declaration
public EntityId To { get; }
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