addFor

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

Example

import { addFor } from "thirdweb/extensions/farcaster";
const transaction = addFor({
contract,
fidOwner: ...,
keyType: ...,
key: ...,
metadataType: ...,
metadata: ...,
deadline: ...,
sig: ...,
overrides: {
...
}
});
// Send the transaction
...
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.