Docs

setTokenURI

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

Example

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

Parameters

Returns

A prepared transaction object.