v1.0.0
1.0.0 is a ground-up rewrite to a TypeScript-only pnpm/turbo monorepo. The previous Python + TypeScript SDK moved to legacy/ for reference.
Supported schemes: exact, upto, batch-settlement, auth-capture (EVM), and exact_gasfree (TRON).
📦 Published Packages
@bankofai/x402-core, x402-evm, x402-tron, x402-fetch, x402-express, x402-mcp, x402-extensions — all at 1.0.0.
npm install @bankofai/x402-fetch @bankofai/x402-evm @bankofai/x402-tron
✨ Highlights
- Network-driven signer factories keyed by CAIP-2 IDs, with @bankofai/agent-wallet integration.
- New schemes: upto, batch-settlement, auth-capture.
- BSC support — testnet + mainnet (eip155:56) USDT.
- MCP transport for the Agentic Web.
- Injectable global Logger with structured verify/settle logging.
🐛 Key Fixes
- TRON settle receipt polling switched to gettransactioninfobyid — no more false REVERT on mainnet.
- Hardened TRON settle confirmation with packed-speed polling.
- GasFree returns [] on 404 (network unsupported).
✅ Verification
- BSC testnet USDT exact settle: 0x477f00…a9edd (SUCCESS).
- TRON mainnet USDT exact: 604f51c8…0acc (contractRet: SUCCESS).
Compatibility: Node.js ≥ 20, pnpm ≥ 11.