Docs

addFor

Calls the "addFor" function on the contract.

Example

import { addFor } from "thirdweb/extensions/farcaster";
const transaction = addFor({
contract,
fidOwner: ...,
keyType: ...,
key: ...,
metadataType: ...,
metadata: ...,
deadline: ...,
sig: ...,
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.