curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/exchangewithdraw \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "<string>",
"exchange_id": 123,
"token_id": "<string>",
"quant": 123,
"permission_id": 123,
"visible": false
}
'{
"txID": "<string>",
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"owner_address": "<string>",
"exchange_id": 123,
"token_id": "<string>",
"quant": "<string>"
},
"type_url": "<string>"
},
"type": "<string>"
}
],
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}Removes liquidity from an existing exchange trading pair on the TRON decentralized exchange
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/exchangewithdraw \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "<string>",
"exchange_id": 123,
"token_id": "<string>",
"quant": 123,
"permission_id": 123,
"visible": false
}
'{
"txID": "<string>",
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"owner_address": "<string>",
"exchange_id": 123,
"token_id": "<string>",
"quant": "<string>"
},
"type_url": "<string>"
},
"type": "<string>"
}
],
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}owner_address — the address withdrawing liquidity (base58 with visible: true, or hex with visible: 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.txID — unique transaction identifierraw_data — raw transaction data including contract detailsraw_data_hex — hexadecimal representation of raw transaction datawallet/exchangewithdraw method is used for:
curl --request POST \
--url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/exchangewithdraw' \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
"exchange_id": 1,
"token_id": "1000001",
"quant": 250000000000,
"visible": true
}'
token_id: "_"), provide quant in sun (1 TRX = 1,000,000 sun).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
Successful response with transaction details
Unique transaction identifier
Raw transaction data including contract details
Show child attributes
Show child attributes
Show child attributes
Hexadecimal representation of raw transaction data
Was this page helpful?