You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--max-amount <baseUnits>`| Reject challenges charging more than this (token base units). Pass `unlimited` to disable |
173
173
|`--no-report-usage`| Disable the caller-side usage report sent to OpenSea after a successful payment |
174
174
|`--api-key <key>`| API key for usage reporting (falls back to `OPENSEA_API_KEY`, then an auto-provisioned instant key) |
175
-
|`--tool-ref <ref>`| Tool coordinates as `chainId,registryAddress,onchainId` (e.g. `8453,0x265b...2cf1,65`, or `8453,x402:bazaar,123` for x402 registries). Disambiguates usage reporting when multiple tools share one endpoint |
175
+
|`--tool-ref <ref>`| Tool coordinates as `chainId,registryAddress,onchainId` (e.g. `8453,0x265b...2cf1,65`, or `8453,x402_bazaar,123` for x402 registries). The legacy `x402:bazaar` / `x402:bankr` forms are also accepted and normalized. Disambiguates usage reporting when multiple tools share one endpoint |
176
176
177
-
When an endpoint URL maps to more than one registered tool, an endpoint-only usage report is rejected with `400 Multiple tools registered for endpoint`. Pass `--tool-ref` so the report identifies the exact tool by its composite key. The fields are comma-separated so a registry identifier that contains a colon (such as the `x402:bazaar` / `x402:bankr` registries used for tools that are not registered onchain) stays unambiguous:
177
+
When an endpoint URL maps to more than one registered tool, an endpoint-only usage report is rejected with `400 Multiple tools registered for endpoint`. Pass `--tool-ref` so the report identifies the exact tool by its composite key. The canonical public source tokens are `x402_bazaar` and `x402_bankr`; the legacy colon forms are accepted and normalized. The fields are comma-separated so the registry identifier stays unambiguous:
@@ -116,7 +118,7 @@ export const payCommand = new Command("pay")
116
118
)
117
119
.option(
118
120
"--tool-ref <ref>",
119
-
"Tool coordinates as chainId,registryAddress,onchainId (e.g. 8453,0x265b...2cf1,65 or 8453,x402:bazaar,123). Disambiguates usage reporting when multiple tools share one endpoint.",
121
+
"Tool coordinates as chainId,registryAddress,onchainId (e.g. 8453,0x265b...2cf1,65 or 8453,x402_bazaar,123). x402:bazaar and x402:bankr are also accepted and normalized. Disambiguates usage reporting when multiple tools share one endpoint.",
120
122
)
121
123
.action(async(url: string,options: PayOptions)=>{
122
124
// The x402 X-Payment signature is a gasless EIP-3009 authorization — it is
0 commit comments