useNFT
Get a single NFT
function useNFT<TContract extends NFTContract>(
contract: RequiredParam<TContract>,
tokenId: RequiredParam<BigNumberish>,
): UseQueryResult<NFT, unknown>;
Parameters
Returns
a response object that includes the metadata for the given tokenId
type ReturnType = UseQueryResult<NFT, unknown>;
Example
const tokenId = 0; // the tokenId to look up
const { data: nft, isLoading, error } = useNFT(contract, tokenId);