curl --request POST \
--url https://app.blockgence.com/v1/compromise \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"victim": "<string>",
"chains": [
"<string>"
],
"from_ts": 0,
"to_ts": 0,
"loss_txs": [
{
"chain": "<string>",
"tx": "<string>"
}
]
}
'import requests
url = "https://app.blockgence.com/v1/compromise"
payload = {
"victim": "<string>",
"chains": ["<string>"],
"from_ts": 0,
"to_ts": 0,
"loss_txs": [
{
"chain": "<string>",
"tx": "<string>"
}
]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
victim: '<string>',
chains: ['<string>'],
from_ts: 0,
to_ts: 0,
loss_txs: [{chain: '<string>', tx: '<string>'}]
})
};
fetch('https://app.blockgence.com/v1/compromise', 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://app.blockgence.com/v1/compromise",
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([
'victim' => '<string>',
'chains' => [
'<string>'
],
'from_ts' => 0,
'to_ts' => 0,
'loss_txs' => [
[
'chain' => '<string>',
'tx' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.blockgence.com/v1/compromise"
payload := strings.NewReader("{\n \"victim\": \"<string>\",\n \"chains\": [\n \"<string>\"\n ],\n \"from_ts\": 0,\n \"to_ts\": 0,\n \"loss_txs\": [\n {\n \"chain\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-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://app.blockgence.com/v1/compromise")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"victim\": \"<string>\",\n \"chains\": [\n \"<string>\"\n ],\n \"from_ts\": 0,\n \"to_ts\": 0,\n \"loss_txs\": [\n {\n \"chain\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/compromise")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"victim\": \"<string>\",\n \"chains\": [\n \"<string>\"\n ],\n \"from_ts\": 0,\n \"to_ts\": 0,\n \"loss_txs\": [\n {\n \"chain\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>",
"error": "<string>"
}{
"error": "source_unavailable",
"detail": "<string>",
"source": "<string>",
"reason": "<string>",
"retryable": true,
"chain": "<string>",
"primitive": "<string>",
"operation": "<string>",
"target": "<string>",
"http_status": 123,
"retry_after": 123,
"upstream_message": "<string>",
"source_fault": true,
"failure_cause": "<string>"
}Compromise vector
Determines, for each transaction in which the victim lost funds, who authorized the outflow, with the evidence and the discarded alternatives. It describes the observed technical mechanism, never a responsibility.
Body (JSON):
victim: the EVM address that lost the funds.loss_txs: the loss transactions,[{chain, tx}], up to 25. If present, only those are classified.chains,from_tsandto_ts: withoutloss_txs, where and when to search for losses (up to 6 networks; dates in Unix seconds;to_tsequal to0means up to today). Withoutloss_txs,from_tsis required.
Main response fields:
primary_vector,primary_labelandprimary_determinism(deterministic,heuristicornone): the vector that explains the most losses. The possible vectors areeip7702_delegation,authority_change,ownership_transfer,deceptive_signature_offchain,onchain_approval,key_compromise,deceptive_contract_call,address_poisoningandundetermined.per_tx: each transaction with who signed it, the outflows, the counterpart, the rules that apply (rule_hits) and its evidence.excludedstates why an outflow does not count as a loss.vectors: each vector with its transactions and its rules.alternatives: each other vector,discarded(with the fact that discards it),not_excludedornot_evaluated.signals: the sweep signals that suggest a compromised key. It is a heuristic without a measured error rate.delegation_7702,authority,limits,not_coveredanddegraded_sources. An empty list from a source means “no data”, never “it did not happen”.
A compromised key is never discarded if there is an EIP-7702 delegation: the authorization is signed by whoever holds the key.
Not covered: Tron, a numeric confidence, NFT orders signed outside the registered marketplaces, a Safe call that emits no events and compromised wallet software.
Errors: an invalid address or hash, more than 25 transactions, more than 6 networks or an invalid window return
400.
Cost: 30 credits base. Some operations charge less when they reuse a saved result; never more.
curl --request POST \
--url https://app.blockgence.com/v1/compromise \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"victim": "<string>",
"chains": [
"<string>"
],
"from_ts": 0,
"to_ts": 0,
"loss_txs": [
{
"chain": "<string>",
"tx": "<string>"
}
]
}
'import requests
url = "https://app.blockgence.com/v1/compromise"
payload = {
"victim": "<string>",
"chains": ["<string>"],
"from_ts": 0,
"to_ts": 0,
"loss_txs": [
{
"chain": "<string>",
"tx": "<string>"
}
]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
victim: '<string>',
chains: ['<string>'],
from_ts: 0,
to_ts: 0,
loss_txs: [{chain: '<string>', tx: '<string>'}]
})
};
fetch('https://app.blockgence.com/v1/compromise', 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://app.blockgence.com/v1/compromise",
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([
'victim' => '<string>',
'chains' => [
'<string>'
],
'from_ts' => 0,
'to_ts' => 0,
'loss_txs' => [
[
'chain' => '<string>',
'tx' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.blockgence.com/v1/compromise"
payload := strings.NewReader("{\n \"victim\": \"<string>\",\n \"chains\": [\n \"<string>\"\n ],\n \"from_ts\": 0,\n \"to_ts\": 0,\n \"loss_txs\": [\n {\n \"chain\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-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://app.blockgence.com/v1/compromise")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"victim\": \"<string>\",\n \"chains\": [\n \"<string>\"\n ],\n \"from_ts\": 0,\n \"to_ts\": 0,\n \"loss_txs\": [\n {\n \"chain\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/compromise")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"victim\": \"<string>\",\n \"chains\": [\n \"<string>\"\n ],\n \"from_ts\": 0,\n \"to_ts\": 0,\n \"loss_txs\": [\n {\n \"chain\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>",
"error": "<string>"
}{
"error": "source_unavailable",
"detail": "<string>",
"source": "<string>",
"reason": "<string>",
"retryable": true,
"chain": "<string>",
"primitive": "<string>",
"operation": "<string>",
"target": "<string>",
"http_status": 123,
"retry_after": 123,
"upstream_message": "<string>",
"source_fault": true,
"failure_cause": "<string>"
}Authorizations
Headers
Body
Response
The compromise vector, with the evidence per transaction and the alternatives.