Class NftMintRecord
A transaction record 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 NftMintRecord : TransactionRecord, IEquatable<TransactionReceipt>, IEquatable<TransactionRecord>, IEquatable<NftMintRecord>
Remarks
Best-effort when inferred, exactly as for NftMintReceipt: a response with no serial numbers and a zero supply cannot be recognised as a mint. Records obtained from GetTransactionRecordAsync(ConsensusClient, TransactionId, CancellationToken, Action<IConsensusContext>?), GetAllTransactionRecordsAsync(ConsensusClient, TransactionId, CancellationToken, Action<IConsensusContext>?) or GetAccountRecordsAsync(ConsensusClient, EntityId, CancellationToken, Action<IConsensusContext>?) therefore arrive as a plain TransactionRecord in that case. No value is lost — the substitution happens only when the value is zero. Test rather than cast:
var serials = record is NftMintRecord mint ? mint.SerialNumbers : [];
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 assets, 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> |