Retrieves the owners of all ERC721 tokens within a specified range.
import { getAllOwners } from "thirdweb/extensions/erc721";const owners = await getAllOwners({ contract, start: 0, count: 10,});
function getAllOwners( options: BaseTransactionOptions<GetAllOwnersParams>,): Promise<Array<{ owner: string; tokenId: bigint }>>;
The options for retrieving the owners.
let options: BaseTransactionOptions<GetAllOwnersParams>;
let returnType: Promise<Array<{ owner: string; tokenId: bigint }>>;
A promise that resolves to an array of objects containing the token ID and owner address.