Skip to content

Commit 777aed1

Browse files
[Docs] Add metadata to x402 documentation pages (#8190)
1 parent fbed4be commit 777aed1

File tree

5 files changed

+52
-7
lines changed

5 files changed

+52
-7
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: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
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

6-
Make requests to any x402-compatible backend by automatically handling payment flows when APIs return a `402 Payment Required` response.
15+
Make requests to any x402-compatible backend and automatically handle payment flows when APIs return a `402 Payment Required` response.
716

817
The client library wraps the native `fetch` API and handles:
918
1. Initial request to the API

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/page.mdx

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

4+
export const metadata = createMetadata({
5+
image: {
6+
title: "x402 Payments",
7+
icon: "payments",
8+
},
9+
title: "x402 Payments",
10+
description: "Instant payments for your APIs, websites, and autonomous agents.",
11+
});
12+
413
# x402 Payments
514

615
x402 is an open-source protocol that turns the dormant HTTP 402 Payment Required status code into a fully-featured, on-chain payment layer for APIs, websites, and autonomous agents.

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)