Skip to content

Commit 4f76219

Browse files
committed
Add Farcaster manifest and meta tag
1 parent b3ccd4c commit 4f76219

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

public/.well-known/farcaster.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"accountAssociation": {
3+
"header": "eyJmaWQiOjEwMjU5LCJ0eXBlIjoiY3VzdG9keSIsImtleSI6IjB4NzI1NkEwN0ZhODU5N2JDMUU2M2I3ZEFlMGNFYkIxMERhRDczNzBiQSJ9",
4+
"payload": "eyJkb21haW4iOiJyZ2IuZnVuIn0",
5+
"signature": "MHhjN2RjMTVjMmUyNzAzMzVhNjA1OTg2OWEzOGFiZWMzNGMwZWZjNjVlODY1ZDMxMDdjYzA3MTZiOTJhMjIyNzQ5MDM0MzVjZDEwOWFlZGM4ZDZhZTMyZTYyOGQ5NDFkOTJlNDg2YmU1OTk1YTQ4Mzc2ZDQxYzdjMTJhZWQ1ZTExNzFj"
6+
},
7+
"frame": {
8+
"version": "1",
9+
"name": "RGB",
10+
"iconUrl": "https://rgb.fun/icon.svg",
11+
"homeUrl": "https://rgb.fun",
12+
"imageUrl": "https://rgb.fun/opengraph-image.png",
13+
"buttonTitle": "Mint",
14+
"splashBackgroundColor": "#ffffff"
15+
}
16+
}

src/app/layout.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@ import './global.css'
1111
export const metadata: Metadata = {
1212
title: 'RGB',
1313
description: '16,777,216 onchain rgb values',
14+
other: {
15+
'fc:frame': JSON.stringify({
16+
version: 'next',
17+
imageUrl: 'https://rgb.fun/opengraph-image.png',
18+
button: {
19+
title: 'Mint',
20+
action: {
21+
type: 'launch_frame',
22+
name: 'RGB',
23+
url: 'https://rgb.fun',
24+
splashBackgroundColor: '#ffffff',
25+
},
26+
},
27+
}),
28+
},
1429
}
1530

1631
export default function RootLayout({ children }: PropsWithChildren) {

0 commit comments

Comments
 (0)