Retrieves an array of NFTs ("ERC721") based on the provided options.
import { getNFTs } from "thirdweb/extensions/erc721";const nfts = await getNFTs({ contract, start: 0, count: 10,});
function getNFTs( options: BaseTransactionOptions<GetNFTsParams>,): Promise<Array<NFT>>;
The options for retrieving the NFTs.
let options: BaseTransactionOptions<GetNFTsParams>;
let returnType: | { id: bigint; metadata: NFTMetadata; owner: string | null; tokenURI: string; type: "ERC721"; } | { id: bigint; metadata: NFTMetadata; owner: string | null; supply: bigint; tokenURI: string; type: "ERC1155"; };
A promise that resolves to an array of NFTs.