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