Installation
Install T402 packages for your preferred language.
TypeScript / JavaScript
npm / pnpm / yarn
# Core packages
pnpm add @t402/core @t402/evm
# All mechanism packages
pnpm add @t402/core @t402/evm @t402/svm @t402/ton @t402/tron @t402/near @t402/aptos @t402/tezos @t402/polkadot @t402/stacks @t402/cosmos @t402/stellar
# Full stack with WDK
pnpm add @t402/core @t402/evm @t402/wdk @t402/wdk-gasless @t402/wdk-bridge @t402/mcpIndividual Packages
Core & Mechanisms
| Package | Description | Install |
|---|---|---|
@t402/core | Protocol types, HTTP utilities | pnpm add @t402/core |
@t402/evm | EVM chains (Ethereum, Base, etc.) | pnpm add @t402/evm |
@t402/svm | Solana | pnpm add @t402/svm |
@t402/ton | TON | pnpm add @t402/ton |
@t402/tron | TRON | pnpm add @t402/tron |
@t402/near | NEAR Protocol | pnpm add @t402/near |
@t402/aptos | Aptos | pnpm add @t402/aptos |
@t402/tezos | Tezos | pnpm add @t402/tezos |
@t402/polkadot | Polkadot Asset Hub | pnpm add @t402/polkadot |
@t402/stacks | Stacks (Bitcoin L2) | pnpm add @t402/stacks |
@t402/cosmos | Cosmos (Noble) | pnpm add @t402/cosmos |
@t402/stellar | Stellar | pnpm add @t402/stellar |
WDK Integration
| Package | Description | Install |
|---|---|---|
@t402/wdk | Tether WDK (EVM, TON, Solana, TRON) | pnpm add @t402/wdk |
@t402/wdk-gasless | Gasless payments (ERC-4337) | pnpm add @t402/wdk-gasless |
@t402/wdk-bridge | Cross-chain bridge (LayerZero) | pnpm add @t402/wdk-bridge |
@t402/wdk-multisig | Safe multi-sig wallets | pnpm add @t402/wdk-multisig |
@t402/mcp | MCP server for AI agents | pnpm add @t402/mcp |
HTTP Framework Integrations
# Express.js
pnpm add @t402/express
# Next.js
pnpm add @t402/next
# Hono
pnpm add @t402/honoClient Wrappers
# Fetch wrapper
pnpm add @t402/fetch
# Axios interceptor
pnpm add @t402/axiosPython
# pip
pip install t402
# uv
uv add t402
# poetry
poetry add t402The Python package includes:
- Core protocol types
- Multi-chain mechanisms (EVM, Solana, TON, TRON, NEAR, Aptos, Tezos, Polkadot, Stacks, Cosmos, Stellar)
- FastAPI, Flask, Django, and Starlette integrations
- HTTPX client wrapper
Go
# Install
go get github.com/t402-io/t402/sdks/go@v1.12.1The Go module includes:
- Core protocol types
- All 13 blockchain mechanisms (EVM, SVM, TON, TRON, NEAR, Aptos, Tezos, Polkadot, Stacks, Cosmos, Stellar, BTC, Upto)
- HTTP middleware (net/http, Gin, Echo, Chi)
- MCP server for AI agents
Java
<dependency>
<groupId>io.t402</groupId>
<artifactId>t402</artifactId>
<version>1.12.1</version>
</dependency>The Java SDK includes:
- Multi-chain support (EVM, SVM, TON, TRON, NEAR, Aptos, Tezos, Polkadot, Stacks, Cosmos, Stellar)
- Spring Boot 3.x auto-configuration
- HTTP frameworks (Servlet, Spring, WebFlux, Micronaut, JAX-RS)
- ERC-4337 Account Abstraction
- USDT0 cross-chain bridge (LayerZero)
- CLI tool
MCP Server (AI Agents)
For AI agent integration with Claude Desktop:
# Install globally
npm install -g @t402/mcp
# Or run directly
npx @t402/mcpSee MCP Integration for configuration details.
Requirements
TypeScript
- Node.js 18+ or Bun 1.0+
- TypeScript 5.0+ (recommended)
Python
- Python 3.10+
- pip or uv package manager
Go
- Go 1.24+
Java
- Java 17+
- Maven or Gradle
Project Structure
After installation, a typical T402 project looks like:
- server.ts
- client.ts
- routes.ts
- package.json
- .env
Verify Installation
npx t402 --version