recoverFor

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

Example

import { sendTransaction } from "thirdweb";
import { recoverFor } from "thirdweb/extensions/farcaster";
const transaction = recoverFor({
contract,
from: ...,
to: ...,
recoveryDeadline: ...,
recoverySig: ...,
toDeadline: ...,
toSig: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function recoverFor(
| { asyncParams: () => Promise<RecoverForParams> }
>,

Parameters

The options for the "recoverFor" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.