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
...
function setTokenURI(
| { asyncParams: () => Promise<SetTokenURIParams> }
>,

Parameters

The options for the "setTokenURI" function.

Type

| { asyncParams: () => Promise<SetTokenURIParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.