addFor

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

Example

import { sendTransaction } from "thirdweb";
import { addFor } from "thirdweb/extensions/farcaster";
const transaction = addFor({
contract,
fidOwner: ...,
keyType: ...,
key: ...,
metadataType: ...,
metadata: ...,
deadline: ...,
sig: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function addFor(
AddForParams | { asyncParams: () => Promise<AddForParams> }
>,

Parameters

The options for the "addFor" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.