Docs

useOwnedNFTs

Hook for accessing a list of NFTs owned by a single wallet address.

Available to use on smart contracts that implement either ERC721Enumerable, ERC1155Enumerable, or ERC721Supply extensions.

Example

import { useOwnedNFTs, useContract, useAddress } from "@thirdweb-dev/react";
function App() {
const address = useAddress();
const { contract } = useContract(contractAddress);
const { data, isLoading, error } = useOwnedNFTs(contract, address);
}

Parameters

Returns

Query result object that includes the list of owned NFT objects