Example: smart contract payment (TRON)

Working example for the Volet.com TRON integration guide: connect TronLink → check the network → preview → pay with TRX or USDT TRC-20 → save the txid with an order ID → wait for blockchain confirmation.

1. Wallet and network

not connected

Select the network in TronLink itself (network name at the top → Mainnet). The page checks it when you connect.

📱 Mobile wallets connect through WalletConnect using the official npm package @tronweb3/walletconnect-tron. This example does not implement that flow; see “WalletConnect on TRON” in the Volet.com TRON integration guide.

2. Payment

—

3. Orders (demo database in localStorage)

Order IDAmountTxidStatus

In a real integration, the txid is stored on your server, and the server verifies the payment itself through TronGrid with an API key, using solidified data (see “Payment verification and order tracking” in the Volet.com docs).