r402-tron
Tron chain support for the x402 payment protocol, part of the
r402 workspace.
Highlights
- Exact scheme — EIP-3009
transferWithAuthorization(TIP-712 signing) plus SUN.io Permit2 viax402ExactPermit2Proxyfor tokens without EIP-3009 (e.g. USDT). - CAIP-2 networks — mainnet / Nile / Shasta (
tron:0x2b6653dc, …). - Base58Check addresses — native
T…form with the0x41prefix handled at the type boundary. - On-chain facilitator — verify and settle through the TronGrid HTTP API (no JSON-RPC), with multi-signer support.
Cargo Features
| Feature | Surface |
|---|---|
client |
Buyer-side EIP-3009 / Permit2 signing. |
server |
Server-side PriceTag generation. |
facilitator |
On-chain verify and settle (TronGrid). |
telemetry |
tracing instrumentation. |
full |
All of the above. |
Quick Start (server price tag)
use ;
let tag = price_tag;
Documentation
- Crate docs: https://docs.rs/r402-tron
- Project README:
../../README.md
License
Dual-licensed under MIT and Apache-2.0.