v0.22.0
What's Changed
- Migrate
paidFetch,paidAuthenticatedFetch, and thepayCLI to the@x402/coreclient infrastructure (x402Client,x402HTTPClient,SchemeNetworkClient) for payment payload creation and header encoding. Adds anExactEip3009Schemeadapter wrapping tool-sdk's existing EIP-3009 signing into the standard x402 scheme interface. No public API changes. (#447)
This also resolves a payment-blocking bug in the previous home-rolled encoder: btoa(JSON.stringify(...)) threw InvalidCharacterError whenever a server's 402 challenge echoed a non-Latin1 character (e.g. an em-dash in resource.description). The @x402/core encoder is UTF-8-safe, and the v2 payload no longer embeds resource/accepted.
Full Changelog: ProjectOpenSea/opensea-devtools@tool-sdk-v0.21.0...tool-sdk-v0.22.0