getContractNFTs
Get all NFTs from a contract
import { Insight } from "thirdweb"; const nfts = await Insight.getContractNFTs({ client, chains: [sepolia], contractAddress: "0x1234567890123456789012345678901234567890",});
function getContractNFTs(args: { contractAddress: string; includeMetadata?: boolean; includeOwners?: boolean; queryOptions?: Omit< | undefined | { chain?: unknown; include_owners?: "false" | "true"; limit?: number; page?: null | number; }, "chain" >;
let args: { contractAddress: string; includeMetadata?: boolean; includeOwners?: boolean; queryOptions?: Omit< | undefined | { chain?: unknown; include_owners?: "false" | "true"; limit?: number; page?: null | number; }, "chain" >;};
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"; };