x402-client - x402 Payment Client SDK
Add automatic x402 payment handling to Node.js and browser applications with USDC payments.
Tags
Updated: 2026-03-11Capabilities
Typical Inputs
Typical Outputs
What this skill does
- wrap fetch function
- create Solana wallet
- create EVM wallet
- sign USDC payment
- detect 402 responses
- retry failed requests
- fetch data with auto-pay
- handle access passes
- validate payment errors
Inputs
- Solana private key
- EVM private key
- fetch function
- facilitator URL
- RPC URLs
- network preferences
- max amount limit
Outputs
- HTTP responses
- signed transactions
- JWT access pass
- error messages
Requirements
- Node.js or browser environment
- @dexterai/x402 package
- USDC wallet balance
