Documentation Index
Fetch the complete documentation index at: https://docs.neynar.com/llms.txt
Use this file to discover all available pages before exploring further.
Refers to this set of APIs: Create frame
Creating a new node app
Create a new app by entering the following commands in your terminal:@neynar/nodejs-sdk, so let’s install that as well:
Creating the frame
Once the project is created and the packages are installed, you can open it in your favorite editor and create a newscript.js file and add the following:
publishNeynarFrame function accepts an object with a bunch of parameters. Let’s take a look at what they are:
name: This will be the name of your frame, and it will be visible only to you on your dashboardpages: This will be an array of the pages to display on the frame; the parameters here are just what you would typically pass in a frame, like image, title, buttons, input, version, etc.next_page: This is where you define what happens when you click the button. Since we are creating an NFT minting frame, it contains themint_url. But you can pass inredirect_urlto redirect to a new page oruuidof a new page, to change the current frame page.- mint_url: This is a string I created using data from a collection on zora. The string should be of the form “eip155:chainId:contractAddress:tokenID”. The contract address and token ID can be found from the Zora share URL, which looks somewhat like this https://zora.co/collect/base:0x23687d295fd48db3e85248b734ea9e8fb3fced27/1; you can check out the corresponding
chainIdof your chain on ChainList. For example,chainIdfor the base mainnet chain is 8453.

Mint button won’t work in the validator, to test out the mint button you’ll need to create a new cast
