getOwnedTokenIds

Retrieves the token IDs owned by a specific address.

Example

import { getOwnedTokenIds } from "thirdweb/extensions/erc721";
const ownedTokenIds = await getOwnedTokenIds({
contract,
owner: "0x1234...",
});
function getOwnedTokenIds(
): Promise<Array<bigint>>;

Parameters

The options for retrieving the owned token IDs.

Type

Returns

let returnType: Promise<Array<bigint>>;

A promise that resolves to an array of bigint representing the owned token IDs.