NullState Team commited on
Commit
6b0c4d5
·
1 Parent(s): 495e8d7

Initial x402 spec dataset

Browse files
Files changed (2) hide show
  1. README.md +45 -0
  2. x402_spec.json +11 -0
README.md CHANGED
@@ -1,3 +1,48 @@
1
  ---
 
 
 
 
 
 
 
 
2
  license: mit
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: x402 Protocol Specification
3
+ emoji: 💳
4
+ colorFrom: green
5
+ colorTo: gray
6
+ sdk: static
7
+ sdk_version: ""
8
+ app_file: README.md
9
+ pinned: false
10
  license: mit
11
  ---
12
+
13
+ # x402 Protocol Specification
14
+
15
+ HTTP 402 Payment Required for AI agent micropayments.
16
+
17
+ ## Overview
18
+
19
+ x402 is the production implementation of HTTP 402 (reserved since 1998) for the autonomous agent economy. It enables machine-to-machine micropayments over USDC on Solana.
20
+
21
+ ## How It Works
22
+
23
+ 1. Agent requests a protected resource → HTTP 402 with payment challenge
24
+ 2. Agent parses challenge, submits USDC payment on Solana
25
+ 3. Gateway confirms settlement (~2-3 Solana slots)
26
+ 4. Protected resource is returned
27
+
28
+ Total round trip: < 3 seconds. No humans. No redirects. No API keys.
29
+
30
+ ## Specification
31
+
32
+ **Status**: v0.2.0 (active)
33
+
34
+ - [Full docs](https://greensol.me/nullstate/docs/protocols/x402)
35
+ - [Source code](https://github.com/nullstate/nullstate)
36
+ - [Live gateway](https://greensol.me/nullstate)
37
+
38
+ ## Implementations
39
+
40
+ | Implementation | Language | Status |
41
+ |--------------|----------|--------|
42
+ | NullState Gateway | Python | Production |
43
+ | Coinbase AgentKit | TypeScript | Beta |
44
+ | AEON Protocol | Rust | Beta |
45
+
46
+ ## License
47
+
48
+ MIT — do whatever you want.
x402_spec.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "x402",
3
+ "version": "0.2.0",
4
+ "description": "HTTP 402 Payment Required for AI agent micropayments",
5
+ "network": "solana",
6
+ "currency": "USDC",
7
+ "round_trip": "~3s",
8
+ "authentication": "KYA (Know-Your-Agent)",
9
+ "signing": "RSA-2048 PKCS1v15-SHA256",
10
+ "status": "active"
11
+ }