changeAddress
Change the payout address of an exchange. Available only when needChangeAddress in getInfo is true.
POST
/trades/changeAddress
Headers
Body
Name
Type
Description
uniq_id
string
Unique id of trade
get_creds
string
New payout address in the get_network of the trade
Response
{
"send_name": "USDT",
"send_network": "TRC20",
"get_network": "ERC20",
"get_name": "USDT",
"uniq_id": "0sv0c0c02da105aa6b7fbzf1zv05444d8a0ccd4c",
"status": 2,
"payment_wallet": "WalletForPay",
"userPaidHash": "someHash",
"ourHash": null,
"get_creds": "NewWalletForRecive",
"network_commission": 0,
"date": 1720120863,
"time_expire": 1720142463,
"send_value": "112",
"get_value": "100",
"sbpBank": null,
"exch_type": "yellow",
"recalculation": 1,
"percent_commission": 0.5,
"paid_amount": 112,
"paid_time": 1738777524,
"send_memo": "SomeMemo",
"network_fee": 0,
"needChangeAddress": false
}
Example
const options = {
method: "POST",
headers: {
"Content-Type": "application/json",
Y_API_KEY: "Your API Key",
Signature: "e4ae46c268b77ad7fb7d12da1eeb8ad3218779c52c926c63407971da7537848e",
},
body: '{"uniq_id":"0sv0c0c02da105aa6b7fbzf1zv05444d8a0ccd4c", "get_creds":"0x1234567890abcdef1234567890abcdef12345678"}',
};
fetch("https://api.yellowchanger.com/trades/changeAddress", options)
.then((e) => e.json())
.then((e) => console.log(e))
.catch((e) => console.error(e));