Docs

tokenURI

Retrieves the URI associated with a specific ERC721 token.

Example

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

Parameters

Returns

A Promise that resolves to the token URI.