Skip to main content
A query that returns information about a non-fungible token (NFT). You request the info for an NFT by specifying the NFT ID. Token Allowances Only when a spender is set on an explicit NFT ID of a token, we return the spender ID in the TokenNftInfoQuery for the respective NFT. If approveTokenNftAllowanceAllSerials is used to approve all NFTs for a given token class and no NFT ID is specified, we will not return a spender ID for all the serial numbers of that token. Query Fees
  • Please see the transaction and query fees table for base transaction fee
  • Please use the Hedera fee estimator to estimate your query fee cost
Requesting NFT info by Token ID or Account ID is deprecated.
The request returns the following information:
ItemDescription
NFT IDThe unique ID of a non-fungible token composed of the token ID and serial number in the format: <shardNum>.<realmNum>.<tokenNum>/<serialNum> (e.g., 0.0.1234/1).
Account IDThe account ID of the current owner of the NFT
Creation TimeThe effective consensus timestamp at which the NFT was minted
MetadataRepresents the unique metadata of the NFT
Ledger IDThe ID of the network (mainnet, testnet, previewnet). Reference HIP-198.
Spender IDThe spender account ID for the NFT. This is only returned if the NFT ID was specifically approved.

Methods

MethodTypeDescriptionRequirement
setNftId(<nftId>)NftIdApplicable only to tokens of type NON_FUNGIBLE_UNIQUE. Gets info on a NFT for a given TokenID (of type NON_FUNGIBLE_UNIQUE) and serial number.Optional
//Returns the info for the specified NFT ID
List<TokenNftInfo> nftInfos = new TokenNftInfoQuery()
     .setNftId(nftId)
     .execute(client);

//v2.0.14