Class NftInfo
The information returned from the GetNftInfo ConsensusClient method call. It represents the details concerning a Hedera Non-Fungible Token (NFT).
Implements
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed record NftInfo : IEquatable<NftInfo>
Properties
| Edit this page View SourceCreated
The Consensus Timestamp for when this NFT was created (minted).
Declaration
public ConsensusTimeStamp Created { get; }
Property Value
| Type | Description |
|---|---|
| ConsensusTimeStamp |
Ledger
Identification of the Ledger (Network) this asset information was retrieved from.
Declaration
public BigInteger Ledger { get; }
Property Value
| Type | Description |
|---|---|
| BigInteger |
Metadata
The metadata associated with this NFT, limited to 100 bytes.
Declaration
public ReadOnlyMemory<byte> Metadata { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyMemory<byte> |
Nft
The identifier of the NFT Instance.
Declaration
public Nft Nft { get; }
Property Value
| Type | Description |
|---|---|
| Nft |
Owner
The account currently owning the NFT.
Declaration
public EntityId Owner { get; }
Property Value
| Type | Description |
|---|---|
| EntityId |
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 SourceEquals(NftInfo?)
Equality implementation
Declaration
public bool Equals(NftInfo? other)
Parameters
| Type | Name | Description |
|---|---|---|
| NftInfo | other |
object to compare. |
Returns
| Type | Description |
|---|---|
| bool | True if all properties (nft, owner, spender, created, metadata, and ledger) are the same. |
GetHashCode()
Equality implementation.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
|