recoverFor

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

Example

import { recoverFor } from "thirdweb/extensions/farcaster";
const transaction = recoverFor({
contract,
from: ...,
to: ...,
recoveryDeadline: ...,
recoverySig: ...,
toDeadline: ...,
toSig: ...,
overrides: {
...
}
});
// Send the transaction
...
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.