register

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

Example

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

Parameters

The options for the "register" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.