recover

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

Example

import { recover } from "thirdweb/extensions/farcaster";
const transaction = recover({
contract,
from: ...,
to: ...,
deadline: ...,
sig: ...,
overrides: {
...
}
});
// Send the transaction
...
function recover(
RecoverParams | { asyncParams: () => Promise<RecoverParams> }
>,

Parameters

The options for the "recover" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.