getInfo
Returns all information about transaction
Last updated
Returns all information about transaction
Last updated
GET
/trades/getInfo
Headers
Content-Type
application/json
Y_API_KEY
Public API Key
Signature
HMAC SHA256 of Body
Body
uniq_id
string
Unique ID of trade
Response
{
"send_name": "USDT",
"send_network": "TRC20",
"get_network": "ERC20",
"uniq_id": "0sv0c0c02da105aa6b7fbzf1zv05444d8a0ccd4c",
"status": 1,
"payment_wallet": "WalletForPay",
"userPaidHash": "someHash",
"ourHash": "someHash",
"get_creds": "WalletForRecive",
"network_commission": 0,
"date": 1720120863,
"time_expire": 1720142463,
"send_value": "112",
"get_value": "100",
"exch_type": "",
"": 0.5
}
{
"statusCode": 40X,
"message": "Some error message"
}
Example
const options = {
method: 'GET',
headers: {
'Content-Type': 'application/json',
Y_API_KEY: 'Your API Key',
Signature: 'e4ae46c268b77ad7fb7d12da1eeb8ad3218779c52c926c63407971da7537848e'
},
body: '{"uniq_id":"0sv0c0c02da105aa6b7fbzf1zv05444d8a0ccd4c"}'
};
fetch('https://api.yellowchanger.com/trades/getInfo', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import axios from "axios";
const options = {
method: 'GET',
url: 'https://api.yellowchanger.com/trades/getInfo',
headers: {
'Content-Type': 'application/json',
Y_API_KEY: 'Your API Key',
Signature: 'e4ae46c268b77ad7fb7d12da1eeb8ad3218779c52c926c63407971da7537848e'
},
data: {uniq_id: '0sv0c0c02da105aa6b7fbzf1zv05444d8a0ccd4c'}
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
import requests
url = "https://api.yellowchanger.com/trades/getInfo"
payload = {"uniq_id": "0sv0c0c02da105aa6b7fbzf1zv05444d8a0ccd4c"}
headers = {
"Content-Type": "application/json",
"Y_API_KEY": "Your API Key",
"Signature": "e4ae46c268b77ad7fb7d12da1eeb8ad3218779c52c926c63407971da7537848e"
}
response = requests.request("GET", url, json=payload, headers=headers)
print(response.text)
curl --request GET \
--url https://api.yellowchanger.com/trades/getInfo\
--header 'Content-Type: application/json' \
--header 'Signature: e4ae46c268b77ad7fb7d12da1eeb8ad3218779c52c926c63407971da7537848e' \
--header 'Y_API_KEY: Your API Key' \
--data '{"uniq_id":"0sv0c0c02da105aa6b7fbzf1zv05444d8a0ccd4c"}'