Skip to main content

/wallet/exchangewithdraw REST API Endpoint

Withdraws the transaction pair.

Updated on
Oct 4, 2023

/wallet/exchangewithdraw REST API Endpoint

Body Parameters

owner_address
string
REQUIRED
The Trader wallet address, in hex string format
exchange_id
string
REQUIRED
The Transaction Pair ID
token_id
integer
REQUIRED
The ID of the sold token, in hexString format
permission_id
integer
The ID of the permission that is required to execute the transaction
visible
boolean
A boolean value indicating whether the address is in base58 format
quant
integer
REQUIRED
The quantity of the token being sold. If TRX being sold, need to express in units of SUN

Returns

result
A boolean value indicating whether the withdrawal transaction was successful
message
The description of the result of the withdrawal transaction. If the transaction was successful, this field will contain a message indicating that the withdrawal was successful. If there was an error, this field will contain an error message describing the nature of the error
txID
The transaction ID of the withdrawal transaction
Request
1
curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangewithdraw \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '
5
{
6
"owner_address": "OWNER_ADDRESS",
7
"exchange_id": 12,
8
"token_id": "TOKEN_ID",
9
"quant": 100,
10
"visible": true
11
}
12
'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free