setContractURI

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

Example

import { sendTransaction } from "thirdweb";
import { setContractURI } from "thirdweb/extensions/common";
const transaction = setContractURI({
contract,
uri: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function setContractURI(
| { asyncParams: () => Promise<SetContractURIParams> }
>,

Parameters

The options for the "setContractURI" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.