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 withdrawing liquidity (base58 withvisible: true, or hex withvisible: false).exchange_id— unique identifier of the exchange pair to remove liquidity from.token_id— TRC10 token ID being withdrawn; use_to denote TRX.quant— integer amount to withdraw (token base units; 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/exchangewithdraw method is used for:
- Removing liquidity from trading pairs to claim earned fees
- Withdrawing capital from underperforming or deprecated markets
- Rebalancing liquidity provider positions across different pairs
- Exiting liquidity positions before market volatility or impermanent loss
curl example
Shell
- balances must be integers (do not quote numbers). When withdrawing TRX (using
token_id: "_"), providequantin sun (1 TRX = 1,000,000 sun). - the call returns an unsigned transaction; sign and broadcast it. On mainnet, the exchange must exist, token must match the pair, and you must have sufficient LP position to withdraw.
Body
application/json
The address withdrawing liquidity from the exchange pair
Unique identifier of the exchange pair to remove liquidity from
Token ID being withdrawn from the liquidity pool. Use '_' to denote TRX.
Amount to withdraw as an integer (token base units; if TRX, specify in sun)
Optional permission ID for multi-signature accounts
Whether to return human-readable addresses