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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# @opensea/tool-sdk
2
2
3
+
## 0.23.0
4
+
5
+
### Minor Changes
6
+
7
+
- a39766d: Caller-side usage reporting can now identify a tool by its ERC-8257 composite key instead of only its endpoint URL. `reportCallerX402Usage` accepts optional `toolChainId`, `toolRegistryAddress`, and `toolOnchainId` fields, and the `pay` CLI gains a `--tool-ref <chainId:registryAddress:onchainId>` flag (e.g. `--tool-ref 8453:0x265b...2cf1:65`). When supplied, these are sent in place of `tool_endpoint`, matching the server-side reporter's payload. This fixes the `400 Multiple tools registered for endpoint` error that occurred when reporting usage for a tool whose endpoint maps to more than one registry entry.
|`--body <json>`| JSON body (inline string or `@path/to/file.json`) |
170
+
|`--method <verb>`| HTTP method (defaults to POST; falls back to GET if a POST probe 404/405s) |
170
171
|`--wallet-provider <provider>`| Wallet provider to use for signing |
172
+
|`--max-amount <baseUnits>`| Reject challenges charging more than this (token base units). Pass `unlimited` to disable |
173
+
|`--no-report-usage`| Disable the caller-side usage report sent to OpenSea after a successful payment |
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>`| ERC-8257 tool coordinates as `chainId:registryAddress:onchainId` (e.g. `8453:0x265b...2cf1:65`). Disambiguates usage reporting when multiple tools share one endpoint |
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 onchain composite key:
0 commit comments