tokenURI

Calls the "tokenURI" function on the contract.

Example

import { tokenURI } from "thirdweb/extensions/erc721";
const result = await tokenURI({
contract,
tokenId: ...,
});
function tokenURI(
): Promise<string>;

Parameters

The options for the tokenURI function.

Type

Returns

let returnType: Promise<string>;

The parsed result of the function call.