registerFor

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

Example

import { sendTransaction } from "thirdweb";
import { registerFor } from "thirdweb/extensions/farcaster";
const transaction = registerFor({
contract,
to: ...,
recovery: ...,
deadline: ...,
sig: ...,
extraStorage: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function registerFor(
| { asyncParams: () => Promise<RegisterForParams> }
>,

Parameters

The options for the "registerFor" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.