setTokenURI

Prepares a transaction to call the "setTokenURI" function on the contract.

Example

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

Parameters

Returns

A prepared transaction object.