For the complete documentation index, see llms.txt. This page is also available as Markdown.

TRON chain

TRON-specific Omniston SDK notes for cross-chain order settlement.

Use this page when your Omniston SDK integration needs to identify TRON assets or addresses.

TRON is supported as a separate Omniston chain, not as an EVM chain. Do not reuse EVM address validation, wallet detection, or allowance assumptions for TRON accounts.

Chain and Asset Shape

TRON uses the tron SDK chain discriminator.

For TRC-20 assets, use kind.$case: "trc20":

import type { AssetId, ChainAddress } from "@ston-fi/omniston-sdk";

const tronUsdt: AssetId = {
  chain: {
    $case: "tron",
    value: {
      kind: {
        $case: "trc20",
        value: "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
      },
    },
  },
};

const tronTraderAddress: ChainAddress = {
  chain: {
    $case: "tron",
    value: "T...",
  },
};

Keep the same chain on each side of the trade:

  • the source-side AssetId and source-side ChainAddress must both use tron when the trader sends funds from TRON

  • the destination-side AssetId and destination-side ChainAddress must both use tron when the trader receives funds on TRON

  • cross-chain swaps use different source and destination chains

For the maintained chain and asset matrix, see Overview (Omniston).

Settlement Notes

For TRON cross-chain routes, use order settlement. TRON swap settlement is not currently the expected integration path.

Follow the same high-level order lifecycle used by other cross-chain routes:

  1. request quotes with order settlement enabled

  2. select an order quote

  3. build and sign the required order payload

  4. register the signed order with Omniston

  5. track the order with orderTrack()

The exact wallet connection, signing, allowance, and transaction broadcast steps are integration-specific. If the selected route uses a TRC-20 input asset, check token allowance for the source-side protocol contract before registering the signed order.

Payload Builder

Current SDK examples for order settlement use the EVM order payload builder:

This reflects the current SDK API surface for signed order payloads. Treat the wallet-specific signing and broadcast logic as application code, and validate it against the wallet stack used by your product.

Reference Implementation

The public React demo app includes chain-family, wallet, and TRON transaction helpers that can be used as implementation references:

Area
Demo app file

TRON transaction flow

TRON wallet connection

Chain family mapping

Chain and address helpers

Last updated