Retrieve Transaction Risks
curl --request POST \
--url https://api.bitrace.io/api/v1/tracker/kyt/transfers/risk-screening \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '
{
"hash": "<string>",
"outputAddress": "<string>",
"tokenContractAddress": "<string>",
"index": 123,
"depth": 123
}
'import requests
url = "https://api.bitrace.io/api/v1/tracker/kyt/transfers/risk-screening"
payload = {
"hash": "<string>",
"outputAddress": "<string>",
"tokenContractAddress": "<string>",
"index": 123,
"depth": 123
}
headers = {
"X-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Access-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
hash: '<string>',
outputAddress: '<string>',
tokenContractAddress: '<string>',
index: 123,
depth: 123
})
};
fetch('https://api.bitrace.io/api/v1/tracker/kyt/transfers/risk-screening', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bitrace.io/api/v1/tracker/kyt/transfers/risk-screening",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'hash' => '<string>',
'outputAddress' => '<string>',
'tokenContractAddress' => '<string>',
'index' => 123,
'depth' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Access-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bitrace.io/api/v1/tracker/kyt/transfers/risk-screening"
payload := strings.NewReader("{\n \"hash\": \"<string>\",\n \"outputAddress\": \"<string>\",\n \"tokenContractAddress\": \"<string>\",\n \"index\": 123,\n \"depth\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Access-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.bitrace.io/api/v1/tracker/kyt/transfers/risk-screening")
.header("X-Access-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"hash\": \"<string>\",\n \"outputAddress\": \"<string>\",\n \"tokenContractAddress\": \"<string>\",\n \"index\": 123,\n \"depth\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bitrace.io/api/v1/tracker/kyt/transfers/risk-screening")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Access-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"hash\": \"<string>\",\n \"outputAddress\": \"<string>\",\n \"tokenContractAddress\": \"<string>\",\n \"index\": 123,\n \"depth\": 123\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"code": 1,
"status": "SUCCESS",
"data": {
"risks": [
{
"riskLevel": "high",
"riskType": "launder-money"
},
{
"riskLevel": "high",
"riskType": "online-gambling"
}
],
"externalId": "53557224252615249342456087557349",
"resultTime": 1771059455295,
"analyseStatus": true,
"hash": "0xddeb5d1e29a88ac9e0a304f415628ff45f53c7278127de7f47c75b43bebcce8f",
"value": "1902.31608",
"blockTime": 1718669807000,
"address": "0x974caa59e49682cda0ad2bbe82983419a2ecc400"
},
"msg": "SUCCESS"
}KYT API
Retrieve Transaction Risks
getTransactionRisks - This endpoint retrieves risk informations for the specific transaction.
POST
/
api
/
v1
/
tracker
/
kyt
/
transfers
/
risk-screening
Retrieve Transaction Risks
curl --request POST \
--url https://api.bitrace.io/api/v1/tracker/kyt/transfers/risk-screening \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '
{
"hash": "<string>",
"outputAddress": "<string>",
"tokenContractAddress": "<string>",
"index": 123,
"depth": 123
}
'import requests
url = "https://api.bitrace.io/api/v1/tracker/kyt/transfers/risk-screening"
payload = {
"hash": "<string>",
"outputAddress": "<string>",
"tokenContractAddress": "<string>",
"index": 123,
"depth": 123
}
headers = {
"X-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Access-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
hash: '<string>',
outputAddress: '<string>',
tokenContractAddress: '<string>',
index: 123,
depth: 123
})
};
fetch('https://api.bitrace.io/api/v1/tracker/kyt/transfers/risk-screening', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bitrace.io/api/v1/tracker/kyt/transfers/risk-screening",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'hash' => '<string>',
'outputAddress' => '<string>',
'tokenContractAddress' => '<string>',
'index' => 123,
'depth' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Access-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bitrace.io/api/v1/tracker/kyt/transfers/risk-screening"
payload := strings.NewReader("{\n \"hash\": \"<string>\",\n \"outputAddress\": \"<string>\",\n \"tokenContractAddress\": \"<string>\",\n \"index\": 123,\n \"depth\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Access-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.bitrace.io/api/v1/tracker/kyt/transfers/risk-screening")
.header("X-Access-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"hash\": \"<string>\",\n \"outputAddress\": \"<string>\",\n \"tokenContractAddress\": \"<string>\",\n \"index\": 123,\n \"depth\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bitrace.io/api/v1/tracker/kyt/transfers/risk-screening")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Access-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"hash\": \"<string>\",\n \"outputAddress\": \"<string>\",\n \"tokenContractAddress\": \"<string>\",\n \"index\": 123,\n \"depth\": 123\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"code": 1,
"status": "SUCCESS",
"data": {
"risks": [
{
"riskLevel": "high",
"riskType": "launder-money"
},
{
"riskLevel": "high",
"riskType": "online-gambling"
}
],
"externalId": "53557224252615249342456087557349",
"resultTime": 1771059455295,
"analyseStatus": true,
"hash": "0xddeb5d1e29a88ac9e0a304f415628ff45f53c7278127de7f47c75b43bebcce8f",
"value": "1902.31608",
"blockTime": 1718669807000,
"address": "0x974caa59e49682cda0ad2bbe82983419a2ecc400"
},
"msg": "SUCCESS"
}Request cases
Supports below transactions on risk screening
- ETH USDT (ERC-20) transfer
- TRON USDT (TRC-20) transfer
- ETH transfer
- TRX transfer
- BTC transfer
Authorizations
API key authentication
Body
application/json
- Option 1
- Option 2
The supported chainns short name. Values can be, eth tron btc
Available options:
ethereum, eth, tron, btc The transaction for detect the risks
The destination address in the transaction
This value defines whether the transfer is sent or received.
- sent: retrieve the risks for
toAddress - received: retrieve the risks for
fromAddress
Available options:
sent, received The token contract address, for USDT,
- eth:
0xdac17f958d2ee523a2206206994597c13d831ec7 - tron:
TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t
The position of the output address in the transaction.
Note: it is only available in the UTXO model
default is 0, and also you can also set the depth between 1-5 to the risks of screening within the transaction propagation path