Show / Hide Table of Contents

Class NftInfo

The information returned from the GetNftInfo ConsensusClient method call. It represents the details concerning a Hedera Non-Fungible Token (NFT).

Inheritance
object
NftInfo
Implements
IEquatable<NftInfo>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed record NftInfo : IEquatable<NftInfo>

Properties

| Edit this page View Source

Created

The Consensus Timestamp for when this NFT was created (minted).

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

Ledger

Identification of the Ledger (Network) this asset information was retrieved from.

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

Metadata

The metadata associated with this NFT, limited to 100 bytes.

Declaration
public ReadOnlyMemory<byte> Metadata { get; }
Property Value
Type Description
ReadOnlyMemory<byte>
| Edit this page View Source

Nft

The identifier of the NFT Instance.

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

Owner

The account currently owning the NFT.

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

Spender

The account that has the rights to spend this asset via an allowance grant.

Declaration
public EntityId Spender { get; }
Property Value
Type Description
EntityId

Methods

| Edit this page View Source

Equals(NftInfo?)

Equality implementation

Declaration
public bool Equals(NftInfo? other)
Parameters
Type Name Description
NftInfo other
The other 
NftInfo

object to compare.

Returns
Type Description
bool

True if all properties (nft, owner, spender, created, metadata, and ledger) are the same.

| Edit this page View Source

GetHashCode()

Equality implementation.

Declaration
public override int GetHashCode()
Returns
Type Description
int
A unique hash of the contents of this 
NftInfo
object.  Only consistent within the current instance of 
the application process.
Overrides
object.GetHashCode()

Implements

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