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