farcaster.json file on the Mini App hosted domain for information about the Mini App.
Hosting the farcaster.json file
The farcaster.json has to be placed in /.well-known/farcaster.json endpoint.
If you are using the Monad Mini App template you can edit the farcaster.json file with your app details before publishing the app!
If you are not using the template then you have to make sure you have a farcaster.json file hosted on your domain at [domain]/.well-known/farcaster.json endpoint.
app/.well-known/farcaster.json/route.ts
farcaster.json file. The full reference for the farcaster.json file can be found here.
Generating accountAssociation using the Farcaster Mobile App.
The accountAssociation object in the farcaster.json file is used to associate the Mini App with the publisher’s Farcaster account.
To generate the accountAssociation object you can use the Farcaster Mobile App.
Go to Settings (under Developer) > Domains, enter the domain where the Mini App is hosted and click Generate Domain Manifest.
Can't see Developer options?
Can't see Developer options?
For the
Developer options to be visible you will need to have Developer mode enabled in Farcaster.You can enable it by going to Settings (under Profile and Account) > Advanced > scroll down and enable Developer mode.accountAssociation object will be generated it will be available in your clipboard you can then paste the values in the farcaster.json file.
app/.well-known/farcaster.json/route.ts
You can find the
farcaster.json file for Monad Mini App Template app here.
Once the farcaster.json file is hosted, your Mini App is now discoverable in the Farcaster app, you can test it by searching for the Mini App in the Farcaster app!
