Show / Hide Table of Contents

Class NftMintReceipt

A transaction receipt containing information regarding the newly minted NFTs, typically returned from methods that can affect a change on the total NFT circulation supply.

Inheritance
object
TransactionReceipt
NftMintReceipt
Implements
IEquatable<TransactionReceipt>
IEquatable<NftMintReceipt>
Inherited Members
TransactionReceipt.TransactionId
TransactionReceipt.Status
TransactionReceipt.CurrentExchangeRate
TransactionReceipt.NextExchangeRate
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 NftMintReceipt : TransactionReceipt, IEquatable<TransactionReceipt>, IEquatable<NftMintReceipt>
Remarks

Best-effort when inferred. Methods that derive a receipt's type from the network's response — GetReceiptAsync(ConsensusClient, TransactionId, CancellationToken, Action<IConsensusContext>?) and GetAllReceiptsAsync(ConsensusClient, TransactionId, CancellationToken, Action<IConsensusContext>?) — select this type when the response carries serial numbers, falling back to a circulation count. A response carrying neither (no serial numbers and a zero supply) is indistinguishable from a transaction that minted nothing, and arrives as a plain TransactionReceipt instead.

No value is lost to this: the substitution happens only when there are no serial numbers to report and the circulation is zero. Test rather than cast:

var serials = receipt is NftMintReceipt mint ? mint.SerialNumbers : [];

Receipts returned directly by the operation that produced them — such as MintNftAsync — are typed explicitly and are always correct.

Properties

| Edit this page View Source

Circulation

The current (new) total number of NFTs.

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

SerialNumbers

The serial numbers of the newly created NFTs, related in order to the list of metadata sent to the mint method.

Declaration
public IReadOnlyList<long> SerialNumbers { get; }
Property Value
Type Description
IReadOnlyList<long>
Remarks

The value will be empty if the mint was scheduled as a pending transaction.

Implements

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