TRP Protocol Overview
TRP (TON Ramp Protocol) is a payload format for payments on the TON blockchain, inspired by the Brazilian EMV/PIX format.
Quick Start
Section titled “Quick Start”- Required prefix:
trp01 - Structure:
FIELD(2) + LENGTH(2) + VALUE - Validation: CRC16-CCITT in field 99
- Deep Link:
https://t.me/TonRmpBot/tonramp?startapp=\{payload\} - Universal Link:
https://trp.tonramp.io/\{payload\}
How It Works
Section titled “How It Works”- The merchant generates a TRP payload with the payment details
- The payload is encoded into a universal link or QR code
- The buyer scans the QR code or clicks the link
- The system detects the platform and redirects:
- Telegram: opens the TonRmpBot
- Web: opens the miniapp in the browser
- The buyer confirms and completes the payment on the TON blockchain
Supported Currencies
Section titled “Supported Currencies”| Currency | Code | Description |
|---|---|---|
| Brazilian Real | BRL | Value converted to TON at the time of payment |
| US Dollar | USD | Value converted to TON at the time of payment |
| Euro | EUR | Value converted to TON at the time of payment |
| Toncoin | TON | Direct value in TON (no conversion) |
Security
Section titled “Security”- CRC16-CCITT: validates payload integrity, preventing tampering
- Server-side validation: fields are validated on the server before processing
- Maximum size: 512 characters per payload
- Wallet: format validation (10-48 characters)
- Amount: positive numeric value