Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
owner_address— the address that will own and control the exchange pair (base58 withvisible: true, or hex withvisible: false).first_token_id— TRC10 token ID of the first token in the trading pair.first_token_balance— initial amount for the first token as an integer (token base units).second_token_id— TRC10 token ID of the second token; use_to denote TRX.second_token_balance— initial amount for the second token as an integer (if TRX, specify in sun).permission_id— optional permission ID for multi‑signature accounts.
Response
Returns a transaction object containing:txID— unique transaction identifierraw_data— raw transaction data including contract detailsraw_data_hex— hexadecimal representation of raw transaction data
Use case
Thewallet/exchangecreate method is used for:
- Creating new trading pairs on the TRON decentralized exchange
- Establishing initial liquidity pools for token pairs
- Launching new markets for custom tokens
- Setting up automated market maker (AMM) pools with initial pricing
curl example
Shell
- balances must be integers (do not quote numbers). When the second token is TRX (denoted by
_), providesecond_token_balancein sun (1 TRX = 1,000,000 sun). - use
_for TRX or a TRC10 token ID string for both sides to create TRC10–TRC10 pairs. - the call builds an unsigned transaction; you must sign and broadcast it. On mainnet, additional on‑chain validations apply (token existence, ownership, pair uniqueness, sufficient balances).
Body
application/json
The address that will own and control the exchange pair
Token ID of the first token in the trading pair
Initial balance to provide for the first token (integer amount in the token's base units)
Token ID of the second token in the trading pair. Use '_' to denote TRX.
Initial balance to provide for the second token (integer amount; if TRX, specify in sun)
Optional permission ID for multi-signature accounts
Whether to return human-readable addresses