x402 0.3.0
x402: ^0.3.0 copied to clipboard
Unified package for the x402 protocol with support for multiple blockchains.
0.3.0 #
- Breaking Change: Transitioned from
String-based network identifiers to a dedicated, CAIP-2 compliantNetworkclass hierarchy across all packages. - Breaking Change: Introduced
EvmNetworkandSolanaNetworkfor chain-specific identifier handling. - Breaking Change: Introduced
SolanaClusterfor easy configuration of Solana environments (Mainnet, Devnet, Testnet). - New Feature: Added
X402ResourceServertox402_coreas a framework-agnostic component for protecting resources and verifying payments. - New Feature: Added
ExactEvmSchemeServerandExactSvmSchemeServerfor verifying EIP-3009 (USDC) and SPL Token payments. - New Feature: Added
SettleResponseandVerifyResponsemodels for reporting payment results back to clients via thex402-payment-responseheader. - Enhancement: Added
PaymentRequiredResponse.fromHeaderandfindFirstSupportedByto simplify client-side requirement parsing. - Enhancement: Improved
X402Exceptionwith better error reporting andoriginalErrorcontext. - Internal: Major directory restructuring in
x402_coreto better organize protocol logic. - Testing: Completely revamped end-to-end testing suite using npm-based facilitator and server packages.
- Testing: Significantly expanded unit test coverage for models, schemes, and server-side logic.
0.2.0 #
- Version bump to synchronize with core and blockchain-specific packages.
- Updated internal dependencies to version 0.2.0.
0.1.0 #
- Initial release of the main
x402client-side package. - Provides a unified entry point for both EVM and SVM implementations.
- Features
X402Clientfor automated 402 Payment Required handshake and retry logic. - Exports core protocol logic and multi-chain signers (EVM and SVM).