Skip to content

Commit f718330

Browse files
[Docs] Add metadata to x402 documentation pages
1 parent fbed4be commit f718330

File tree

4 files changed

+41
-5
lines changed

4 files changed

+41
-5
lines changed

apps/portal/src/app/payments/x402/agents/page.mdx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs";
2-
import { OpenApiEndpoint } from "@doc";
2+
import { OpenApiEndpoint, createMetadata } from "@doc";
3+
4+
export const metadata = createMetadata({
5+
image: {
6+
title: "x402 Agents",
7+
icon: "payments",
8+
},
9+
title: "x402 Agents",
10+
description: "Easily create AI agents that can pay for any x402-compatible API calls.",
11+
});
312

4-
# Agents
13+
# x402 Agents
514

615
Easily create AI agents that can pay for any x402-compatible API calls.
716

apps/portal/src/app/payments/x402/client/page.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
import { Tabs, TabsList, TabsTrigger, TabsContent, OpenApiEndpoint } from "@doc";
1+
import { Tabs, TabsList, TabsTrigger, TabsContent, OpenApiEndpoint, createMetadata } from "@doc";
22
import { TypeScriptIcon, EngineIcon } from "@/icons";
33

4+
export const metadata = createMetadata({
5+
image: {
6+
title: "x402 Client",
7+
icon: "payments",
8+
},
9+
title: "x402 Client",
10+
description: "Make requests to any x402-compatible backend and automatically handle payment flows when APIs return a `402 Payment Required` response.",
11+
});
12+
413
# Client Side
514

615
Make requests to any x402-compatible backend by automatically handling payment flows when APIs return a `402 Payment Required` response.

apps/portal/src/app/payments/x402/facilitator/page.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
import { Tabs, TabsList, TabsTrigger, TabsContent, OpenApiEndpoint, Callout } from "@doc";
1+
import { Tabs, TabsList, TabsTrigger, TabsContent, OpenApiEndpoint, Callout, createMetadata } from "@doc";
22
import { TypeScriptIcon, EngineIcon } from "@/icons";
33

4+
export const metadata = createMetadata({
5+
image: {
6+
title: "x402 Facilitator",
7+
icon: "payments",
8+
},
9+
title: "x402 Facilitator",
10+
description: "Verify and submit x402 payments using your own server wallet.",
11+
});
12+
413
# Facilitator
514

615
The facilitator is a service that handles verifying and submitting x402 payments. It uses your own [server wallet](/wallets/server) and leverages EIP-7702 to submit transactions gaslessly.

apps/portal/src/app/payments/x402/server/page.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
import { Tabs, TabsList, TabsTrigger, TabsContent, DocImage } from "@doc";
1+
import { Tabs, TabsList, TabsTrigger, TabsContent, DocImage, createMetadata } from "@doc";
22
import { Steps, Step } from "@doc";
33
import PaymentFlow from "./x402-protocol-flow.png";
44

5+
export const metadata = createMetadata({
6+
image: {
7+
title: "x402 Server",
8+
icon: "payments",
9+
},
10+
title: "x402 Server",
11+
description: "Accept x402 payments in your APIs from any x402-compatible client.",
12+
});
13+
514
# Server Side
615

716
Accept x402 payments in your APIs using any x402-compatible client. Your server can verify and settle payments using thirdweb's facilitator service or any custom facilitator.

0 commit comments

Comments
 (0)