recover

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

Example

import { sendTransaction } from "thirdweb";
import { recover } from "thirdweb/extensions/farcaster";
const transaction = recover({
contract,
from: ...,
to: ...,
deadline: ...,
sig: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
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.