aptos-x402 2.2.0 β†’ 2.2.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.
Files changed (2) hide show
  1. package/README.md +6 -19
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -23,10 +23,12 @@
23
23
  Built for **machine-to-machine micropayments**, this SDK provides zero-friction payment integration for Next.js applications with automatic payment handling, cryptographic verification, and **sub-second settlement times** (optimized from 2-3s to 200-500ms).
24
24
 
25
25
  ### What’s new in 2.2.0
26
- - πŸ›‘οΈ **ARC-8004 Agent Trust Layer** (Aptos-native, inspired by ERC-8004): agent identities, reputation, and task validation.
27
- - β›½ **Geomi Gas Sponsorship**: Native support for gasless transactions.
28
- - βœ… Frontend badges for Verified + Trust, with a verify API.
29
- - πŸ“š Docs and API routes for ARC-8004 (identity, reputation, validation).
26
+ - πŸ›‘οΈ **ARC-8004 Agent Trust Layer**: Agent identity, reputation, and task validation (Aptos-native).
27
+ - β›½ **Geomi Gas Sponsorship**: Native support for gasless transactions (facilitator pays gas).
28
+ - πŸ“‹ **Protocol Updates**: Standardized `PAYMENT-SIGNATURE` headers (removed "X-").
29
+ - πŸ’° **Fungible Assets**: Direct USDC/FA transfer support.
30
+ - 🚚 **Header-Based Spec**: Payment specs and proofs handling moved entirely to headers.
31
+ - ⚑ **Performance**: 5-10x faster settlement with bug fixes and optimizations.
30
32
 
31
33
  > ⚑ **Performance:** Latest optimizations deliver **5-10x faster** payments with verification caching, async confirmation, and smart deduplication. See [PERFORMANCE_OPTIMIZATIONS.md](./PERFORMANCE_OPTIMIZATIONS.md) for details.
32
34
 
@@ -128,21 +130,6 @@ await x402axios.patch('/resource/123', updates, { privateKey: '0x...' });
128
130
  await x402axios.delete('/resource/123', { privateKey: '0x...' });
129
131
  ```
130
132
 
131
- ### Instance Configuration
132
-
133
- ```typescript
134
- // Create configured instance
135
- const api = x402axios.create({
136
- baseURL: 'https://api.example.com',
137
- timeout: 10000,
138
- privateKey: process.env.APTOS_PRIVATE_KEY,
139
- headers: { 'Client-Version': '1.0.0' }
140
- });
141
-
142
- // Use instance for all requests
143
- const weather = await api.get('/premium/weather');
144
- const stocks = await api.get('/premium/stocks');
145
- ```
146
133
 
147
134
  ### How It Works
148
135
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aptos-x402",
3
- "version": "2.2.0",
4
- "description": "HTTP 402 Payment Protocol SDK for Aptos - Axios-compatible payment wrapper with automatic network detection and zero fallbacks",
3
+ "version": "2.2.1",
4
+ "description": "x402v2 compliant Payment Protocol SDK for Aptos - Axios-compatible payment wrapper with automatic network detection",
5
5
  "author": "Aditya Pundir",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -14,7 +14,8 @@
14
14
  "aptos",
15
15
  "payment",
16
16
  "micropayment",
17
- "http-402",
17
+ "http",
18
+ "x402v2",
18
19
  "blockchain",
19
20
  "cryptocurrency",
20
21
  "axios",
@@ -117,4 +118,4 @@
117
118
  "tw-animate-css": "^1.4.0",
118
119
  "typescript": "^5"
119
120
  }
120
- }
121
+ }