@x402api/agent-wallet-cli 0.2.3 → 0.2.4
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
CHANGED
|
@@ -13,7 +13,7 @@ The CLI runs on the buyer or agent host; merchant integrations do not host it
|
|
|
13
13
|
or receive its keys. A wallet's funded token balance is spend authority, and
|
|
14
14
|
`wallet create --maximum-payment-atomic N` can add a per-payment ceiling. The
|
|
15
15
|
ceiling is not a daily, cumulative, or merchant-specific permission and cannot
|
|
16
|
-
be updated in place in version 0.2.
|
|
16
|
+
be updated in place in version 0.2.4.
|
|
17
17
|
|
|
18
18
|
Run `x402api help --json` for the machine-readable command summary. Unlock
|
|
19
19
|
material is accepted only from standard input or an owner-only file named by
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x402api/agent-wallet-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Command-line wallet for autonomous x402 purchases.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,6 +38,6 @@
|
|
|
38
38
|
"lint": "tsc --noEmit -p tsconfig.json"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@x402api/agent-wallet-core": "0.2.
|
|
41
|
+
"@x402api/agent-wallet-core": "0.2.4"
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -34,7 +34,7 @@ x402api wallet sweep --wallet NAME --to ADDRESS --json
|
|
|
34
34
|
`--maximum-payment-atomic` is an optional canonical decimal in atomic units for
|
|
35
35
|
the wallet's supported payment asset. It is enforced on each authorization and
|
|
36
36
|
returns `payment_limit_exceeded` when the exact amount is larger. It is not a
|
|
37
|
-
daily or cumulative budget. Version 0.2.
|
|
37
|
+
daily or cumulative budget. Version 0.2.4 sets it only at wallet creation and
|
|
38
38
|
does not provide a policy-update command.
|
|
39
39
|
|
|
40
40
|
Unlocking commands additionally require `X402API_WALLET_PASSWORD_FILE` or an
|
|
@@ -32,6 +32,28 @@ authorization, and must not be added to this exact V1 envelope. The wallet
|
|
|
32
32
|
creates its own `buyerPaymentIdentifier` when it authorizes a selected payment
|
|
33
33
|
requirement.
|
|
34
34
|
|
|
35
|
+
## Programmatic charge handoff
|
|
36
|
+
|
|
37
|
+
A merchant may create a variable-price challenge with the tenant-authenticated
|
|
38
|
+
x402api `POST /v1/charges` endpoint before writing the wallet request envelope.
|
|
39
|
+
That operation belongs to trusted merchant server code—not this wallet.
|
|
40
|
+
|
|
41
|
+
- The merchant uses the current template `active_version.id` as
|
|
42
|
+
`resource_version_id`; a resource UUID or `pay_...` public payment ID is not a
|
|
43
|
+
substitute.
|
|
44
|
+
- One active template may allow multiple rails. The merchant charge supplies
|
|
45
|
+
exact runtime amounts for a non-empty subset; the wallet independently
|
|
46
|
+
validates and selects one returned `PAYMENT-REQUIRED.accepts` alternative.
|
|
47
|
+
- The request envelope receives only the exact credential-free protected
|
|
48
|
+
request and canonical `PAYMENT-REQUIRED` challenge. It never contains the
|
|
49
|
+
tenant API credential, `resource_version_id`, or a tenant-side API request.
|
|
50
|
+
- Retiring or replacing a template is a merchant concern. The wallet validates
|
|
51
|
+
the exact issued challenge and must not discover, guess, or rewrite a
|
|
52
|
+
template UUID.
|
|
53
|
+
|
|
54
|
+
See the tenant integration guide at
|
|
55
|
+
https://x402api.com/docs/payments/x402/programmatic-charges.
|
|
56
|
+
|
|
35
57
|
## Payment submission or artifact handoff
|
|
36
58
|
|
|
37
59
|
`payment authorize` writes an owner-only artifact once and records its digest
|
|
@@ -9,7 +9,7 @@ Base, Solana, and TRON.
|
|
|
9
9
|
|
|
10
10
|
An optional `maximumPaymentAtomic` value adds a local ceiling to each payment.
|
|
11
11
|
It does not limit aggregate or daily spend, restrict merchants, revoke existing
|
|
12
|
-
artifacts, or protect a wallet on a compromised same-user host. Version 0.2.
|
|
12
|
+
artifacts, or protect a wallet on a compromised same-user host. Version 0.2.4
|
|
13
13
|
sets this value only when creating a wallet and has no policy-update command.
|
|
14
14
|
|
|
15
15
|
Show the exact network, token contract or mint, public address, and requested
|