x402/typescript
Ryan R. Fox e35becffdc
refactor(paywall): tighten faucet refactor per forensic review + SVM-dev framing (#2160)
Address forensic review-quorum findings and conform SVM paywall to upstream pattern:

- Drop dead solana:TESTNET FAUCET_URLS entry (Circle faucet does not
  dispense USDC on Solana Testnet; Option B renders "No faucet configured."
  for any unmapped chain).
- Revert all Solana Testnet recognition added by prior refactor pass
  (SOLANA_NETWORK_REFS.TESTNET constant, getNetworkDisplayName branch,
  isTestnetNetwork OR-branch). The paywall now recognizes one non-mainnet
  SVM network — Devnet — matching upstream/main. No SVM dev expects
  paywall Testnet support; upstream doesn't provide it.
- Unify "Need {tokenName} on {chainName}?" copy in SolanaPaywall and
  AvmPaywall payment-required headers (were hardcoded "USDC"; matches
  EvmPaywall).

Closes #2159
2026-05-16 18:15:13 +02:00
..
2025-04-25 12:05:40 -04:00
2026-05-13 17:33:05 +02:00
2026-05-15 20:01:11 +02:00
2026-05-13 17:33:05 +02:00
2025-12-11 07:41:57 -08:00

x402 Typescript SDK

This folder contains Typescript packages to help developers implement the x402 protocol in their front-end and back-end applications.

Package Description Latest version
@x402/core Transport-agnostic client, server, and facilitator components. npm version
@x402/extensions Additional functionality built on top of x402 (Bazaar, Sign-in-with-x). npm version
@x402/mcp MCP server integration for x402. npm version

HTTP integrations

Package Description Latest version
@x402/axios Axios interceptor for x402 payment flows. npm version
@x402/express Express middleware for x402-protected routes. npm version
@x402/fastify Fastify middleware for x402-protected routes. npm version
@x402/fetch Fetch wrapper for x402 payment handling. npm version
@x402/hono Hono middleware for x402 integrations. npm version
@x402/next Next.js integration for x402. npm version
@x402/paywall Browser paywall UI for x402-enabled apps. npm version

Chains implementations

Package Description Latest version
EVM - @x402/evm EVM implementation of x402 using the Exact payment scheme. npm version
Algorand - @x402/avm AVM implementation of x402 using ASA transfers. npm version
Aptos - @x402/aptos Aptos implementation of the x402 payment protocol. npm version
Stellar - @x402/stellar Stellar implementation of x402 using Soroban token transfers. npm version
Solana - @x402/svm SVM implementation of x402 using SPL token transfers. npm version