@dexterai/x402 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -2
- package/package.json +10 -4
package/README.md
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="
|
|
2
|
+
<img src="https://raw.githubusercontent.com/Dexter-DAO/dexter-x402-sdk/main/assets/dexter-wordmark.svg" alt="Dexter" width="360">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<h1 align="center">@dexterai/x402</h1>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
-
<strong>x402
|
|
8
|
+
<strong>Full-stack x402 SDK. Add paid API monetization to any endpoint. Solana, Base, and 4 more chains.</strong>
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
12
|
<a href="https://www.npmjs.com/package/@dexterai/x402"><img src="https://img.shields.io/npm/v/@dexterai/x402.svg" alt="npm"></a>
|
|
13
13
|
<a href="https://nodejs.org"><img src="https://img.shields.io/badge/node-%3E=18-brightgreen.svg" alt="Node"></a>
|
|
14
14
|
<a href="https://dexter.cash/sdk"><img src="https://img.shields.io/badge/Live_Demo-dexter.cash%2Fsdk-blueviolet" alt="Live Demo"></a>
|
|
15
|
+
<a href="https://dexter.cash/opendexter"><img src="https://img.shields.io/badge/Marketplace-5%2C000%2B_APIs-success" alt="Marketplace"></a>
|
|
15
16
|
</p>
|
|
16
17
|
|
|
17
18
|
<p align="center">
|
|
@@ -46,6 +47,21 @@ This SDK handles the entire flow automatically—you just call `fetch()` and pay
|
|
|
46
47
|
|
|
47
48
|
---
|
|
48
49
|
|
|
50
|
+
## Automatic Marketplace Discovery
|
|
51
|
+
|
|
52
|
+
When someone pays for your API through the Dexter facilitator, your endpoint is **automatically discovered and listed** in the [OpenDexter Marketplace](https://dexter.cash/opendexter) — a searchable directory of 5,000+ paid APIs used by AI agents.
|
|
53
|
+
|
|
54
|
+
No registration step needed. The flow:
|
|
55
|
+
|
|
56
|
+
1. You add `x402Middleware` to your endpoint (see Quick Start below)
|
|
57
|
+
2. An agent pays for your API → the facilitator processes the settlement
|
|
58
|
+
3. Your endpoint is auto-discovered, AI-named, and quality-verified
|
|
59
|
+
4. Agents find it via `x402_search` in any MCP client (ChatGPT, Claude, Cursor, etc.)
|
|
60
|
+
|
|
61
|
+
Quality-verified endpoints (score 75+) get promoted in search results. The verification bot tests your endpoint automatically — no action required on your part.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
49
65
|
## Quick Start
|
|
50
66
|
|
|
51
67
|
### Install
|
|
@@ -596,6 +612,7 @@ MIT — see [LICENSE](./LICENSE)
|
|
|
596
612
|
|
|
597
613
|
<p align="center">
|
|
598
614
|
<a href="https://x402.dexter.cash">Dexter Facilitator</a> ·
|
|
615
|
+
<a href="https://dexter.cash/opendexter">OpenDexter Marketplace</a> ·
|
|
599
616
|
<a href="https://dexter.cash/sdk">Live Demo</a> ·
|
|
600
617
|
<a href="https://dexter.cash/access-pass">Access Pass Demo</a> ·
|
|
601
618
|
<a href="https://dexter.cash/onboard">Become a Seller</a>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexterai/x402",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.7.1",
|
|
4
|
+
"description": "Full-stack x402 SDK - add paid API monetization to any endpoint. Express middleware, React hooks, Access Pass, dynamic pricing. Solana, Base, Polygon, Arbitrum, Optimism, Avalanche.",
|
|
5
5
|
"author": "Dexter",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"tiktoken": "^1.0.22"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
+
"@types/aws-lambda": "^8.10.161",
|
|
58
59
|
"@types/express": "^5.0.6",
|
|
59
60
|
"@types/node": "^22.10.0",
|
|
60
61
|
"@types/react": "^18.0.0",
|
|
@@ -101,13 +102,18 @@
|
|
|
101
102
|
"crypto",
|
|
102
103
|
"stripe",
|
|
103
104
|
"machine-payments",
|
|
104
|
-
"agent-payments"
|
|
105
|
+
"agent-payments",
|
|
106
|
+
"opendexter",
|
|
107
|
+
"marketplace",
|
|
108
|
+
"ai-agents",
|
|
109
|
+
"monetize",
|
|
110
|
+
"api-payments"
|
|
105
111
|
],
|
|
106
112
|
"repository": {
|
|
107
113
|
"type": "git",
|
|
108
114
|
"url": "https://github.com/Dexter-DAO/dexter-x402-sdk"
|
|
109
115
|
},
|
|
110
|
-
"homepage": "https://dexter.cash/
|
|
116
|
+
"homepage": "https://dexter.cash/opendexter",
|
|
111
117
|
"bugs": {
|
|
112
118
|
"url": "https://github.com/Dexter-DAO/dexter-x402-sdk/issues"
|
|
113
119
|
}
|