TypeScript SDK
The T402 TypeScript SDK provides comprehensive support for HTTP-native stablecoin payments.
Packages
Quick Install
# Core + EVM (most common)
pnpm add @t402/core @t402/evm
# All packages
pnpm add @t402/core @t402/evm @t402/ton @t402/tron @t402/wdk @t402/wdk-gasless @t402/wdk-bridge @t402/mcpArchitecture
@t402/core Base types, HTTP utilities
│
├── @t402/evm EVM mechanism (EIP-3009, ERC-4337, LayerZero)
│
├── @t402/ton TON mechanism (Jettons)
│
├── @t402/tron TRON mechanism (TRC-20)
│
└── @t402/wdk Tether WDK integration
│
├── @t402/wdk-gasless ERC-4337 gasless
│
└── @t402/wdk-bridge LayerZero bridgeHTTP Framework Integrations
| Framework | Package | Install |
|---|---|---|
| Express.js | @t402/express | pnpm add @t402/express |
| Next.js | @t402/next | pnpm add @t402/next |
| Hono | @t402/hono | pnpm add @t402/hono |
Client Wrappers
| Client | Package | Install |
|---|---|---|
| Fetch | @t402/fetch | pnpm add @t402/fetch |
| Axios | @t402/axios | pnpm add @t402/axios |
Requirements
- Node.js 18+ or Bun 1.0+
- TypeScript 5.0+ (recommended)
- ESM or CommonJS supported