Skip to main content
Socket supports swapping assets from any EVM chain to Tron and from Tron to any EVM chain. This guide walks you through swapping assets between EVM chains and Tron using Socket. It covers transaction options and current limitations.

Quick Start

Key differences

Here’s what’s different when integrating Tron compared to standard EVM chains: Transaction Flow
  • User sends funds to a Deposit contract with the quote ID
  • Socket indexes the transaction and delivers the funds on the destination chain
API Behavior
  • Both userAddress and receiverAddress required for quotes
  • The only asset supported from/to Tron is Tron USDT
  • There is no Fee collection at the moment

Integration Steps

  1. Select Chains: Users choose the source and destination chains, which determine the tokens available for bridging.
  2. Fetch Routes: Retrieve the deposit route if available using the /quote endpoint.
  3. Submit via Deposit contract: Obtain the transaction data from the /quote endpoint. Use this data to execute the deposit transaction on the source chain.
  4. Track Transaction Status: Monitor the transaction’s progress by polling the /status endpoint until the bridging process is complete.
For Tron quotes, please ensure both userAddress and receiverAddress are defined.This is a separate route from autoRoute since it is under depositRoute.

Examples

Queries

Scripts