A high-performance AI agent ecosystem built on the Tron Network, integrated with the x402 protocol. This facilitator is engineered for ultra-low-cost transfers, stringent fund security governance, and highly reliable, real-time transaction processing.
TFx402 is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on tron, x402. It currently has 2 GitHub stars and 0 forks, and sits alongside related tools like x402-sdk-ts, x402-contracts, x402-sdk-go, powersun-tron-mcp, nofx, ClawRouter.
Gasless • Secure • Profitable
🏆 GWDC 2026 WEB3 DEV 第三名
![]() |
![]() |
相对 Tron 原生交易,手续费降低约 96.88%–98.54%
基于 Tron 的 AI Agent 智能 Facilitator,支持 x402 协议,聚焦低手续费支付、严格资金风控与可靠实时处理。
0.2 TRX,显著低于 Tron 原生典型成本。simulateValidate 预验证交易有效性。| 功能 | Tron 原生 | Coinbase x402 | TFx402 |
|---|---|---|---|
| 交易手续费 | 约 6.4–13.74 TRX(约 1.92–4.12 USD,按 TRX ≈ 0.3 USD) | 0.001 USD / 笔 | 约 0.2 TRX / 笔 |
| USDT 转账 | 支持 | 不支持 | 支持 |
| 处理速度 | 标准 | 快速 | 高频聚合实时处理 |
| 资金安全 | 基础保障 | 标准风控 | 严格多策略风控 |
| 协议支持 | - | x402 | x402 |
| 闲置资金收益 | 无 | 无 | 3%–5% 年化质押增益 |
| 交易验证 | 单笔验证 | 单笔验证 | 链上批量模拟验证 |
| 链上交易参考 | Tronscan 参考 | - | Tronscan 参考 |
cd front-end
npm install
npm run dev
cd back-end
npm install
npm run dev
cd contract
tronbox compile
tronbox migrate --network nile
import { server } from 'tron-x402';
const { x402Gate } = server;
const SELLER_ADDRESS = 'TUzz9HKrE5sgzn5RmGKG35caEyqvawoKga';
const RESOURCE_PRICE = 1;
app.get(
'/premium-data',
x402Gate({
recipient: SELLER_ADDRESS,
price: RESOURCE_PRICE,
asset: 'USDT',
network: 'tron:0x2b6653dc',
facilitator_url: 'xxxxxxx',
}),
(req, res) => {
console.log('【test info】', req.payment);
console.log(`[Success] Payment verified for Invoice: ${req.payment.invoiceId}`);
res.json({
status: 'success',
data: '这里是价值 1 USDT 的核心付费数据...',
receipt: {
txId: req.payment.txId,
from: req.payment.from,
invoiceId: req.payment.invoiceId,
amount: req.payment.value,
},
});
}
);
import { client } from 'tron-x402';
const { PaymentAgent } = client;
const agent = new PaymentAgent({
privateKey: BUYER_PRIVATE_KEY,
policyName: 'AutoGPT-shopping',
maxBudget: 5000000,
network: 'nile',
facilitatorUrl: 'xxxxxx',
});
const response = await agent.get(SERVER_URL);


基于标准 x402 协议,TFx402 新增两个关键环节:

高频交易系统借鉴 L2 思路,以乐观确认方式缩短用户等待时间,并在短时间窗口内完成验证与上链,降低异常开销风险。

通过利用用户闲置资金提升 Energy 供给,进一步降低上链成本,同时提升用户留存与平台收益拓展空间。
TypeScript SDK for the x402 payment protocol — client signing, server paywall, and facilitator integration for EVM and TRON
Permit402 smart contract for the x402 payment protocol — gasless ERC20 payment authorization on EVM and TRON
Go SDK for the x402 payment protocol — client signing, server paywall middleware, and facilitator
TRON Energy & Bandwidth MCP Server + DEX Swap Aggregator for AI agents. 27 tools: self-service onboarding, buy/sell TRON resources, swap tokens on SunSwap DEX via MCP, REST API, or HTTP 402. Only 10% commission.
Your AI trading terminal assistant for US stocks, commodities, forex, and crypto.
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
A payments protocol for the internet. Built on HTTP.
A local-first AI agent with persistent memory, emotional intelligence, and a peer-to-peer skills economy.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.
Self-healing infrastructure for AI agent payments. 90.3% auto-recovery.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.
Daydreams is a set of tools for building agents for commerce