Neynar Documentation

Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

Prompts the user to add the app.A user discovers an app from their social feed, adds it, and then sees it _from their apps screen

Usage

import { sdk } from '@farcaster/miniapp-sdk'

await sdk.actions.addMiniApp()

The addMiniApp() action requires your app’s domain to exactly match the domain in your manifest file. This means:

Return Value

void

Errors

RejectedByUser

Thrown if a user rejects the request to add the Mini App.

InvalidDomainManifestJson

Thrown when an app does not have a valid farcaster.json or when the domain doesn’t match. Common causes: