Docs

setTokenURI

Calls the "setTokenURI" function on the contract.

Example

import { setTokenURI } from "thirdweb/extensions/erc721";
const transaction = setTokenURI({
contract,
tokenId: ...,
uri: ...,
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.