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 performing the token swap transactionexchange_id— unique identifier of the exchange pair to trade ontoken_id— token ID being sold in the swap transactionquant— amount of tokens being soldexpected— minimum expected amount of tokens to receivepermission_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/exchangetransaction method is used for:
- Swapping tokens directly on the TRON decentralized exchange
- Converting between TRX and TRC20 tokens at current market rates
- Building arbitrage bots and automated trading strategies
- Implementing token exchange functionality in decentralized applications