This guide demonstrates how to get a list of signers for an account if the developer has the user’s mnemonic/account private key (If not check: Frontend (Wallet Integration))
Node.js Installed
API Key and Mnemonic
Dependencies Installed
Import Required Libraries
Define Your Mnemonic
"YOUR_MNEMONIC_HERE"
with your Ethereum mnemonic phrase:Convert Mnemonic to Account
mnemonicToAccount
function converts your mnemonic into an account object:Configure Neynar API Client
"YOUR_API_KEY_HERE"
with your API key and set the correct base path for the Neynar API:Create the SIWE Message
createSiweMessage
function generates a SIWE message with details such as domain, address, and nonce:Sign and Verify the Message
fetchSigners
function handles the signing process and fetches signers:Note: The address
should be the custody_address
of the farcaster account (Check custody_address in User API)Execute the Function
fetchSigners
function and handle success or errors: