Add “like” and “recast” reactions on Farcaster casts
If you want to integrate Farcaster auth for your users, easiest way to start is Sign in with Neynar (Neynar pays all onchain fee)
If you want dedicated signers for your user or bot, simplest to clone this example app for quickstart
This guide demonstrates how to like or recast a cast with the Neynar SDK.Check out this Getting Started Guide to learn how to set up your environment and get an API key.First, initialize the client:
Copy
Ask AI
// npm i @neynar/nodejs-sdkimport { NeynarAPIClient, Configuration } from "@neynar/nodejs-sdk";// make sure to set your NEYNAR_API_KEY .env// don't have an API key yet? get one at neynar.comconst config = new Configuration({ apiKey:process.env.NEYNAR_API_KEY,});const client = new NeynarAPIClient(config);const signer = process.env.NEYNAR_SIGNER;