add

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

Example

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

Parameters

Returns

A prepared transaction object.