Prepares a transaction to call the "addFor" function on the contract.
import { sendTransaction } from "thirdweb";import { addFor } from "thirdweb/extensions/farcaster"; const transaction = addFor({ contract, fidOwner: ..., keyType: ..., key: ..., metadataType: ..., metadata: ..., deadline: ..., sig: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function addFor( options: BaseTransactionOptions< AddForParams | { asyncParams: () => Promise<AddForParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "addFor" function.
let options: BaseTransactionOptions< AddForParams | { asyncParams: () => Promise<AddForParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.