analyze_transaction
curl --request POST \
--url https://pro-api.nikiwa.com/api/tools/analyze_transaction \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tx_hash": "<string>",
"network": "<string>"
}
'import requests
url = "https://pro-api.nikiwa.com/api/tools/analyze_transaction"
payload = {
"tx_hash": "<string>",
"network": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({tx_hash: '<string>', network: '<string>'})
};
fetch('https://pro-api.nikiwa.com/api/tools/analyze_transaction', 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://pro-api.nikiwa.com/api/tools/analyze_transaction",
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([
'tx_hash' => '<string>',
'network' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://pro-api.nikiwa.com/api/tools/analyze_transaction"
payload := strings.NewReader("{\n \"tx_hash\": \"<string>\",\n \"network\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://pro-api.nikiwa.com/api/tools/analyze_transaction")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tx_hash\": \"<string>\",\n \"network\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pro-api.nikiwa.com/api/tools/analyze_transaction")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tx_hash\": \"<string>\",\n \"network\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"network": "ethereum",
"tx_hash": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"timestamp": "1769860800",
"block_number": 24000000,
"sender_info": {
"address": "0x1111111111111111111111111111111111111111",
"risk_flags": null
},
"receiver_info": {
"address": "0x2222222222222222222222222222222222222222",
"risk_flags": null
},
"logs_info": [],
"gas_info": {
"gas_price": 1000000000,
"gas_used": 21000,
"gas_limit": 21000
},
"amount": 0,
"successful": true
}
}Tools
analyze_transaction
Decode and classify a single transaction (participants, value flow, risk flags).
POST
/
api
/
tools
/
analyze_transaction
analyze_transaction
curl --request POST \
--url https://pro-api.nikiwa.com/api/tools/analyze_transaction \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tx_hash": "<string>",
"network": "<string>"
}
'import requests
url = "https://pro-api.nikiwa.com/api/tools/analyze_transaction"
payload = {
"tx_hash": "<string>",
"network": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({tx_hash: '<string>', network: '<string>'})
};
fetch('https://pro-api.nikiwa.com/api/tools/analyze_transaction', 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://pro-api.nikiwa.com/api/tools/analyze_transaction",
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([
'tx_hash' => '<string>',
'network' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://pro-api.nikiwa.com/api/tools/analyze_transaction"
payload := strings.NewReader("{\n \"tx_hash\": \"<string>\",\n \"network\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://pro-api.nikiwa.com/api/tools/analyze_transaction")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tx_hash\": \"<string>\",\n \"network\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pro-api.nikiwa.com/api/tools/analyze_transaction")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tx_hash\": \"<string>\",\n \"network\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"network": "ethereum",
"tx_hash": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"timestamp": "1769860800",
"block_number": 24000000,
"sender_info": {
"address": "0x1111111111111111111111111111111111111111",
"risk_flags": null
},
"receiver_info": {
"address": "0x2222222222222222222222222222222222222222",
"risk_flags": null
},
"logs_info": [],
"gas_info": {
"gas_price": 1000000000,
"gas_used": 21000,
"gas_limit": 21000
},
"amount": 0,
"successful": true
}
}Reading the result
The response example uses made-up values and shows selected fields. Fields vary by network and available data.-
datacontains a network-specific transaction analysis. In the EVM example,sender_infoandreceiver_infoidentify the addresses and any available risk findings. -
logs_infocontains decoded log details.gas_infoincludes gas price in wei and gas used and gas limit in gas units. - Solana, Tron, and Bitcoin return different fields for transfers, fees, or transaction inputs and outputs. Do not treat missing risk data as a clean assessment.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Decode and classify a single transaction (participants, value flow, risk flags). Fields vary by network and available data. Check for status: no_data, status: error, or an error field even when HTTP status is 200. See Errors & status.
Response fields depend on the network and available data. The example shows selected fields; see Reading the result for details.
Was this page helpful?