useNFT
Hook for fetching information about an NFT from a smart contract.
Available to use on smart contracts that implement the ERC721
or ERC1155
standard.
NFT metadata is automatically fetched from where the tokenUri
is hosted (e.g. IPFS), and makes the image
property available as a URL through our IPFS gateway (if the image is hosted on IPFS).
Example
Provide your NFT collection contract object and the token ID of the NFT you want to fetch as arguments.
Parameters
Returns
Query result object that includes the metadata for the given tokenId in data
property