Skip to content

Latest commit

 

History

History
 
 

typescript

README.md

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
@bankofai/x402-core Transport-agnostic client, server, and facilitator components. npm version
@x402/extensions Official Bazaar, Sign-in-with-x, and EVM gas sponsorship extensions; depend on this package directly. npm version
@bankofai/x402-mcp MCP server integration for x402. npm version

HTTP integrations

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

Chains implementations

Package Description Latest version
EVM - @x402/evm Official EVM implementation; install directly from upstream. npm version
TRON - @bankofai/x402-tron TRON implementation of x402 (exact, permit, GasFree, batch-settlement). npm version

TRON resource sponsorship: @bankofai/x402-tron-extensions uses official Core 2.32.0 in this workspace. Use official @x402/extensions@2.32.0 for generic extensions.