Docs

getOwnedTokenIds

Retrieves the token IDs owned by a specific address.

Example

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

Parameters

Returns

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