moltspay 0.5.2 → 0.5.3
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 +32 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -461,6 +461,38 @@ moltspay transfer --to 0x... --amount 10 --secure
|
|
|
461
461
|
moltspay chains
|
|
462
462
|
```
|
|
463
463
|
|
|
464
|
+
### x402 CLI Examples (Cross-Platform)
|
|
465
|
+
|
|
466
|
+
The x402 command sends JSON payloads. Quote handling differs by shell:
|
|
467
|
+
|
|
468
|
+
**Linux / Mac (bash/zsh):**
|
|
469
|
+
```bash
|
|
470
|
+
npx moltspay x402 https://example.com/api \
|
|
471
|
+
-X POST \
|
|
472
|
+
-d '{"prompt": "your text here"}' \
|
|
473
|
+
-v
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
**Windows PowerShell:**
|
|
477
|
+
```powershell
|
|
478
|
+
# Option 1: Use a JSON file (recommended)
|
|
479
|
+
echo '{"prompt": "your text here"}' > request.json
|
|
480
|
+
npx moltspay x402 https://example.com/api -X POST -d "@request.json" -v
|
|
481
|
+
|
|
482
|
+
# Option 2: Escape with backtick
|
|
483
|
+
npx moltspay x402 https://example.com/api -X POST -d "{`"prompt`": `"your text`"}" -v
|
|
484
|
+
|
|
485
|
+
# Option 3: Use cmd /c wrapper
|
|
486
|
+
cmd /c "npx moltspay x402 https://example.com/api -X POST -d ""{\""prompt\"": \""your text\""}"" -v"
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
**Windows CMD:**
|
|
490
|
+
```cmd
|
|
491
|
+
npx moltspay x402 https://example.com/api -X POST -d "{\"prompt\": \"your text\"}" -v
|
|
492
|
+
```
|
|
493
|
+
|
|
494
|
+
**Cross-platform tip:** For complex JSON, save to a file and use `-d @filename.json` - works on all systems!
|
|
495
|
+
|
|
464
496
|
## Environment Variables
|
|
465
497
|
|
|
466
498
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moltspay",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Blockchain payment infrastructure for AI Agents on Moltbook",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"moltbook",
|
|
@@ -50,7 +50,9 @@
|
|
|
50
50
|
"@coinbase/cdp-sdk": "^1.0.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
|
-
"@coinbase/cdp-sdk": {
|
|
53
|
+
"@coinbase/cdp-sdk": {
|
|
54
|
+
"optional": true
|
|
55
|
+
}
|
|
54
56
|
},
|
|
55
57
|
"devDependencies": {
|
|
56
58
|
"@coinbase/cdp-sdk": "^1.0.0",
|