Get transaction details by its hash ID [Private]
Returns deposit or withdrawal information by its hash ID.
To call any private endpoint, headers should include authorization key(s).
You may use a single API key or a public-private key pair based on your current tasks. Here you may find typical Header configurations for both options.
Method name: | /v4/transaction/private/{hash} |
Request type: | GET |
Data dictionary
Name | Type | Parameter type | Required | Range | Description |
---|---|---|---|---|---|
hash | string | QUERY | YES | - | Hash ID of the transaction. |
Exemplary request
const apiKey = "YOUR_API_KEY"; // put here your Api key
const url = "https://api.kuna.io";
const path = "/v4/transaction/private/5ecc4e559b528c57be6723ac960a38211fbd3101ef4b59008452b3bd88c84621";
const options = {
method: "GET",
headers: {
accept: "application/json",
"Content-Type": "application/json",
"api-key": apiKey,
},
};
fetch(url + path, options)
.then((response) => response.json())
.then((showResponse) => console.log(showResponse.data));
import requests
api_key = "YOUR_API_KEY" # put here your Api key
url = "https://api.kuna.io"
path = "/v4/transaction/private/bf1e6d1857c94b6a2bfe63cfb732a10795473ad61326637da2c089ca9f8072bc"
headers = {
"accept": "application/json",
"Content-Type": "application/json",
"api-key": api_key,
}
request = requests.get(url + path, headers=headers)
print(request.json()))
How to call private endpoints here
Response
{
"id": "e9aa15b8-9c19-42eb-800a-026a7a153990", // Unique identifier of withdrawal
"amount": "10.75", // Amount deducted from your account
"asset": "USDT", // Withdrawal currency
"merchantId": "16214228-5c0c-5abc-be6a-c90259b21d4e", // Internal ID (not for use)
"paymentCode": "TRX", // Blockchain name
"status": "Processed", // Withdrawal status
"type": "Withdraw", // Transaction type
"reason": [], // Reason for manual transaction processing
"address": "TL3CWAwviQQYSnzHT4RotCWYnarnunQM46", // Withdrawal address
"memo": "", // Withdrawal memo
"txId": "5ecc4e559b528c57be6723ac960a38211fbd3101ef4b59008452b3bd88c84621", // Withdrawal transaction hash
"fee": "0.75", // Withdrawal fee
"processedAmount": "10", // Withdrawal amount
"createdAt": "2023-06-09T11:33:02.383Z", // Withdrawal creation date
"updatedAt": "2023-06-09T11:34:25.317Z" // Date of final withdrawal status
}
Updated over 1 year ago