Docs

ownerOf

Retrieves the owner of a specific ERC721 token.

Example

import { ownerOf } from "thirdweb/extensions/erc721";
const owner = await ownerOf({ contract, tokenId: 1n });

Parameters

Returns

A promise that resolves to the address of the token owner.