Getting StartedInstallation

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/mcp

Individual Packages

Core & Mechanisms

PackageDescriptionInstall
@t402/coreProtocol types, HTTP utilitiespnpm add @t402/core
@t402/evmEVM chains (Ethereum, Base, etc.)pnpm add @t402/evm
@t402/svmSolanapnpm add @t402/svm
@t402/tonTONpnpm add @t402/ton
@t402/tronTRONpnpm add @t402/tron
@t402/nearNEAR Protocolpnpm add @t402/near
@t402/aptosAptospnpm add @t402/aptos
@t402/tezosTezospnpm add @t402/tezos
@t402/polkadotPolkadot Asset Hubpnpm add @t402/polkadot
@t402/stacksStacks (Bitcoin L2)pnpm add @t402/stacks
@t402/cosmosCosmos (Noble)pnpm add @t402/cosmos
@t402/stellarStellarpnpm add @t402/stellar

WDK Integration

PackageDescriptionInstall
@t402/wdkTether WDK (EVM, TON, Solana, TRON)pnpm add @t402/wdk
@t402/wdk-gaslessGasless payments (ERC-4337)pnpm add @t402/wdk-gasless
@t402/wdk-bridgeCross-chain bridge (LayerZero)pnpm add @t402/wdk-bridge
@t402/wdk-multisigSafe multi-sig walletspnpm add @t402/wdk-multisig
@t402/mcpMCP server for AI agentspnpm add @t402/mcp

HTTP Framework Integrations

# Express.js
pnpm add @t402/express
 
# Next.js
pnpm add @t402/next
 
# Hono
pnpm add @t402/hono

Client Wrappers

# Fetch wrapper
pnpm add @t402/fetch
 
# Axios interceptor
pnpm add @t402/axios

Python

# pip
pip install t402
 
# uv
uv add t402
 
# poetry
poetry add t402

The 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.1

The 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/mcp

See 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