Class NftInfoExtensions
Extension methods for querying NFT instance information from the network.
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public static class NftInfoExtensions
Methods
| Edit this page View SourceGetNftInfoAsync(ConsensusClient, Nft, CancellationToken, Action<IConsensusContext>?)
Retrieves detailed information regarding a particular Non-Fungible Token (NFT) instance.
Declaration
public static Task<NftInfo> GetNftInfoAsync(this ConsensusClient client, Nft nft, CancellationToken cancellationToken = default, Action<IConsensusContext>? configure = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ConsensusClient | client | The Consensus Node Client to query. |
| Nft | nft | The identifier (Token and Serial Number) of the nft. |
| CancellationToken | cancellationToken | Optional cancellation token. |
| Action<IConsensusContext> | configure | Optional callback method providing an opportunity to modify the execution configuration for just this method call. It is executed prior to submitting the request to the network. |
Returns
| Type | Description |
|---|---|
| Task<NftInfo> | A description of the nft instance, including metadata, created date and current owning account. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | If required arguments are missing. |
| InvalidOperationException | If required context configuration is missing. |
| PrecheckException | If the gateway node rejected the request upon submission. |