Prepares a transaction to call the "setContractURI" function on the contract.
import { sendTransaction } from "thirdweb";import { setContractURI } from "thirdweb/extensions/common"; const transaction = setContractURI({ contract, uri: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function setContractURI( options: BaseTransactionOptions< | SetContractURIParams | { asyncParams: () => Promise<SetContractURIParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "setContractURI" function.
let options: BaseTransactionOptions< | SetContractURIParams | { asyncParams: () => Promise<SetContractURIParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.