@moneytools-dev/x402-guard 0.2.1 → 0.2.2

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 +20 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -16,7 +16,13 @@ Fallback (download):
16
16
  curl -fsSL -o x402-guard.ts https://moneytools.dev/products/payment-safety/examples/x402-guard.ts
17
17
  ```
18
18
 
19
- Python (download; PyPI is not published yet):
19
+ Python:
20
+
21
+ ```bash
22
+ pip install moneytools-x402-guard
23
+ ```
24
+
25
+ Fallback (download):
20
26
 
21
27
  ```bash
22
28
  curl -fsSL -o moneytools_x402_guard.py https://moneytools.dev/products/payment-safety/examples/x402-guard.py
@@ -84,3 +90,16 @@ python3 -m unittest python.test_moneytools_x402_guard
84
90
  ```
85
91
 
86
92
  MIT © 2026 MoneyTools
93
+
94
+ ## One line, no code: call MoneyTools with AgentCash
95
+
96
+ [AgentCash](https://github.com/Merit-Systems/agentcash) (`npx agentcash`) pays from your own AgentCash wallet (USDC on Base, `~/.agentcash/wallet.json`). No MoneyTools account. Failed calls are not charged.
97
+
98
+ ```bash
99
+ # Wallet Risk Card, 0.02 USDC
100
+ npx agentcash fetch "https://tools.moneytools.dev/v1/wallet-risk?address=vitalik.eth&chain=base"
101
+ # Pay precheck before paying any x402 seller, 0.005 USDC (free daily tier first)
102
+ npx agentcash fetch "https://api.moneytools.dev/v1/precheck?url=https://example.com/paid&method=GET"
103
+ # See the price and input schema first, without paying
104
+ npx agentcash check "https://tools.moneytools.dev/v1/wallet-risk"
105
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneytools-dev/x402-guard",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Use this when an agent is about to pay an x402 seller: Pay Precheck, spend caps, daily budget, Approval Relay and a payment log, before anything is signed. Never loads a key or sends a payment.",
5
5
  "type": "module",
6
6
  "main": "./dist/moneytools-x402-guard.js",