Retrieves the owned ERC1155 NFTs for a given wallet address.
import { getOwnedNFTs } from "thirdweb/extensions/erc1155";const nfts = await getOwnedNFTs({ contract, start: 0, count: 10, address: "0x123...",});
function getOwnedNFTs( options: BaseTransactionOptions<GetOwnedNFTsParams>,): Promise<Array<NFT & { quantityOwned: bigint }>>;
The transaction options and parameters.
let options: BaseTransactionOptions<GetOwnedNFTsParams>;
let returnType: | { chainId: number; id: bigint; metadata: NFTMetadata; owner: string | null; tokenAddress: string; tokenURI: string; type: "ERC721"; } | { chainId: number; id: bigint; metadata: NFTMetadata; owner: string | null; supply: bigint; tokenAddress: string; tokenURI: string; type: "ERC1155"; };
A promise that resolves to an array of ERC1155 NFTs owned by the wallet address, along with the quantity owned.