ChainsComparison Matrix

Network Comparison Matrix

This page provides a comprehensive comparison of all supported blockchain mechanisms across T402 SDKs.

Mechanism Support

MechanismSchemeToken StandardTypeScriptGoPythonJava
EVM (25 chains)exactEIP-3009
EVM (legacy)exact-legacyERC-20 approve
EVMuptoEIP-2612 permit
SolanaexactSPL Token
SolanauptoSPL Token approve
TONexactJetton (TEP-74)
TONuptoJetton approve
TRONexactTRC-20
TRONuptoTRC-20 approve
NEARexact-directNEP-141
NEARuptoNEP-141 approve
Aptosexact-directFungible Asset
Tezosexact-directFA2 (TZIP-12)
Polkadotexact-directAsset Hub
Stacksexact-directSIP-010
Cosmosexact-directBank MsgSend
StellarexactSoroban SEP-41

Network Identifiers (CAIP-2)

EVM Chains

ChainMainnetTestnetUSDT0 Address
Ethereumeip155:1eip155:111551110x6C96dE32CEa08842dcc4058c14d3aaAD7Fa41dee
Arbitrumeip155:42161eip155:4216140xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9
Baseeip155:8453eip155:84532USDT0 via LayerZero
Optimismeip155:10eip155:11155420USDT0 via LayerZero
Inkeip155:570730x0200C29006150606B650577BBE7B6248F58470c1
Berachaineip155:80094eip155:800840x779Ded0c9e1022225f8E0630b35a9b54bE713736
Unichaineip155:1300x9151434b16b9763660705744891fA906F660EcC5
Polygoneip155:137USDT0 via LayerZero
Mantleeip155:5000USDT0 via LayerZero
Seieip155:1329USDT0 via LayerZero

Non-EVM Chains

ChainMainnetTestnetToken
Solanasolana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpsolana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1USDT SPL
TONton:mainnetton:testnetUSDT Jetton
TRONtron:mainnettron:nileUSDT TRC-20
NEARnear:mainnetnear:testnetUSDT NEP-141
Aptosaptos:1aptos:2USDT Fungible Asset
Tezostezos:NetXdQprcVkpaWUtezos:NetXnHfVqm9iespUSDt FA2
Polkadotpolkadot:68d56f15f85d3136970ec16946040bc1polkadot:e143f23803ac50e8f6f8e62695d1ce9eUSDT Asset Hub
Stacksstacks:1stacks:2147483648sUSDC SIP-010
Cosmos (Noble)cosmos:noble-1cosmos:grand-1USDC native
Stellarstellar:pubnetstellar:testnetUSDC Soroban

Choosing a Scheme

T402 supports three payment schemes. Choose based on your use case:

exact

Best for: Fixed-price resources, one-time payments

The client signs an off-chain authorization. The facilitator executes the transfer on-chain. Supported on EVM (via EIP-3009), Solana, TON, TRON, and Stellar.

Client signs → Facilitator settles on-chain

exact-direct

Best for: Chains without off-chain authorization standards

The client executes the transfer directly on-chain, then submits the transaction hash as proof. Used on NEAR, Aptos, Tezos, Polkadot, Stacks, and Cosmos.

Client transfers on-chain → Submits tx hash → Facilitator verifies

upto

Best for: Usage-based billing, metered APIs, streaming

The client pre-authorizes a maximum amount. The server charges only what is consumed. Currently supported on EVM (EIP-2612 permit), Solana, TON, TRON, and NEAR.

Client authorizes max → Server tracks usage → Facilitator settles actual amount

Choosing a Mechanism

Use this decision tree to pick the right mechanism:

  1. What blockchain does your user have funds on?

    • Ethereum, Arbitrum, Base, Optimism, or other EVM → Use @t402/evm
    • Solana → Use @t402/svm
    • TON → Use @t402/ton
    • TRON → Use @t402/tron
    • NEAR → Use @t402/near
    • Aptos → Use @t402/aptos
    • Tezos → Use @t402/tezos
    • Polkadot → Use @t402/polkadot
    • Stacks → Use @t402/stacks
    • Cosmos/Noble → Use @t402/cosmos
    • Stellar → Use @t402/stellar
  2. Do you need usage-based billing?

    • Yes → Use the upto scheme (available on EVM, Solana, TON, TRON, NEAR)
    • No → Use exact (EVM/Solana/TON/TRON) or exact-direct (all others)
  3. Do you need to accept payments from multiple chains?

    • Yes → Register multiple mechanisms with your server and use @t402/wdk-bridge for cross-chain bridging
    • No → Use a single mechanism package

HTTP Framework Support

FrameworkTypeScriptGoPythonJava
Express
Next.js
Hono
Fastify
Gin
Echo
Chi
net/http
FastAPI
Flask
Django
Starlette
Spring
Servlet
WebFlux
Micronaut
JAX-RS

SDK Versions

SDKVersionRegistry
TypeScript2.8.0npm
Go1.12.1pkg.go.dev
Python1.12.1PyPI
Java1.12.1Maven Central