Show / Hide Table of Contents

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.

Inheritance
object
TransactionReceipt
TransactionRecord
NftMintRecord
Implements
IEquatable<TransactionReceipt>
IEquatable<TransactionRecord>
IEquatable<NftMintRecord>
Inherited Members
TransactionRecord.Hash
TransactionRecord.Consensus
TransactionRecord.Memo
TransactionRecord.Fee
TransactionRecord.Transfers
TransactionRecord.TokenTransfers
TransactionRecord.NftTransfers
TransactionRecord.TreasuryTransfer
TransactionRecord.Royalties
TransactionRecord.Associations
TransactionRecord.ParentTransactionConsensus
TransactionRecord.StakingRewards
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 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 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 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>

Implements

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