getOwnedNFTs
Get NFTs owned by an address
import { Insight } from "thirdweb"; const nfts = await Insight.getOwnedNFTs({ client, chains: [sepolia], ownerAddress: "0x1234567890123456789012345678901234567890",});
function getOwnedNFTs(args: { includeMetadata?: boolean; ownerAddress: string; queryOptions?: Omit< { chain?: unknown; limit?: number; owner_address: string; page?: null | number; }, "chain" | "owner_address" >;
let args: { includeMetadata?: boolean; ownerAddress: string; queryOptions?: Omit< { chain?: unknown; limit?: number; owner_address: string; page?: null | number; }, "chain" | "owner_address" >;};
let returnType: | { chainId: number; id: bigint; owner: string | null; tokenAddress: string; tokenURI: string; type: "ERC721"; } | { chainId: number; id: bigint; owner: string | null; supply: bigint; tokenAddress: string; tokenURI: string; type: "ERC1155"; };