setContractURI

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

Example

import { setContractURI } from "thirdweb/extensions/common";
const transaction = setContractURI({
contract,
uri: ...,
overrides: {
...
}
});
// Send the transaction
...
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.