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.
Inherited Members
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 SourceCirculation
The current (new) total number of NFTs.
Declaration
public ulong Circulation { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
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.