Get risk analysis result
curl --request GET \
--url https://api.wavynode.com/v1/risk/{jobId} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.wavynode.com/v1/risk/{jobId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.wavynode.com/v1/risk/{jobId}', 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.wavynode.com/v1/risk/{jobId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-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"
"net/http"
"io"
)
func main() {
url := "https://api.wavynode.com/v1/risk/{jobId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wavynode.com/v1/risk/{jobId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wavynode.com/v1/risk/{jobId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"address": "<string>",
"result": {
"risk": 123,
"reason": "<string>",
"patterns": [
{
"name": "<string>",
"severity": "<string>",
"involvedWallets": [
"<string>"
],
"involvedTxs": [
"<string>"
],
"usdAmount": 123
}
]
},
"error": "<string>",
"createdAt": 123,
"updatedAt": 123
}
}{
"error": "<string>",
"message": "<string>"
}Risk Analysis
Get risk analysis result
Polls the status and result of an asynchronous risk analysis job.
GET
/
risk
/
{jobId}
Get risk analysis result
curl --request GET \
--url https://api.wavynode.com/v1/risk/{jobId} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.wavynode.com/v1/risk/{jobId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.wavynode.com/v1/risk/{jobId}', 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.wavynode.com/v1/risk/{jobId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-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"
"net/http"
"io"
)
func main() {
url := "https://api.wavynode.com/v1/risk/{jobId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wavynode.com/v1/risk/{jobId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wavynode.com/v1/risk/{jobId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"address": "<string>",
"result": {
"risk": 123,
"reason": "<string>",
"patterns": [
{
"name": "<string>",
"severity": "<string>",
"involvedWallets": [
"<string>"
],
"involvedTxs": [
"<string>"
],
"usdAmount": 123
}
]
},
"error": "<string>",
"createdAt": 123,
"updatedAt": 123
}
}{
"error": "<string>",
"message": "<string>"
}Poll this endpoint to check the status of an async risk analysis started with Start risk analysis.
Status values
| Status | Description |
|---|---|
pending | Job is queued and waiting to start |
running | Analysis is in progress |
completed | Analysis finished successfully. result contains the risk data |
failed | Analysis failed. error contains the failure reason |
Response fields
| Field | Type | Description |
|---|---|---|
address | string | Wallet address being analyzed |
status | string | Job status (pending, running, completed, failed) |
result | object | Risk analysis result when status is completed |
result.risk | number | Risk score from 0 to 100 |
result.reason | string | Explanation of the risk score |
result.patterns | array | Detected suspicious patterns with severity and involved wallets |
error | string | Error message when status is failed |
createdAt | number | Job creation timestamp (unix ms) |
updatedAt | number | Last update timestamp (unix ms) |
Related resources
Start risk analysis
Start a new async risk analysis job.
Quick risk
Synchronous risk check for fast single-address analysis.
Risk scores
Learn how risk scores are calculated and interpreted.
Authorizations
Enter the full value with the ApiKey prefix. Example: ApiKey wavy_your-api-key. The prefix is required for authentication.
Path Parameters
The job ID returned from POST /risk
⌘I