curl --request GET \
--url https://app.blockgence.com/v1/guard/watches/{wid}/hops \
--header 'X-API-Key: <api-key>'import requests
url = "https://app.blockgence.com/v1/guard/watches/{wid}/hops"
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://app.blockgence.com/v1/guard/watches/{wid}/hops', 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/guard/watches/{wid}/hops",
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://app.blockgence.com/v1/guard/watches/{wid}/hops"
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://app.blockgence.com/v1/guard/watches/{wid}/hops")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/guard/watches/{wid}/hops")
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{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>",
"error": "<string>"
}Árbol de vigilancias derivadas
Devuelve el árbol de vigilancias derivadas al que pertenece la vigilancia, con cada salto seguido o cortado y su motivo.
Una vigilancia adversary con la regla follow_hops activa sigue los fondos que salen hacia otras cuentas.
Guard acumula por destino lo que la dirección envía, en moneda nativa y tokens con precio y sin contar el ruido.
Cuando un destino alcanza min_usd (por defecto, US$1,000) y es una cuenta común sin etiqueta, Guard crea una
vigilancia derivada sobre él. La derivada pertenece al mismo dueño, hereda las reglas y la forma de compartir, y
vigila desde la transacción del salto. La profundidad (max_depth, por defecto 2) y la cantidad de derivadas
(max_derived, por defecto 10) las fija la vigilancia raíz. Cada derivada cuenta contra el límite de
vigilancias del plan.
La respuesta incluye:
root_watch_id: la vigilancia raíz;watches[]:id,address,name,status,depth,derived_from,armed_block,armed_after_tx,open_alertsylast_event_ts, con la raíz primero;hops[]: cada decisión, conwatch_id(la vigilancia que envió los fondos),address,tx,block,usd,outcome(derivedocut),reason,detail,derived_watch_id,retractedynote;reasons: el texto de cada motivo.
Motivos de corte: labeled (etiqueta pública: exchange, puente, router, mezclador o atacante conocido),
contract, delegated_eoa (cuenta delegada por EIP-7702), block_builder, reserved, unpriced,
already_watched, own_watched (una billetera propia vigilada en la organización), max_depth, max_derived,
plan_limit, code_unreadable y code_budget (no se pudo leer el código del destino) y removed (la derivada
se eliminó y no se vuelve a crear). Los destinos cortados por unpriced, max_derived, plan_limit,
code_unreadable o code_budget se vuelven a evaluar en la próxima salida hacia ellos.
Si una reorganización de la cadena saca la transacción del salto, el salto queda retracted y la derivada se
pausa hasta que la transacción vuelva a entrar.
Solo incluye lo que quien consulta puede ver: una derivada que no ve no aparece, ni su id. Responde 404 si la
vigilancia no existe o quien consulta no la ve. Requiere una clave de API asignada a una persona (403).
Costo: sin cargo.
curl --request GET \
--url https://app.blockgence.com/v1/guard/watches/{wid}/hops \
--header 'X-API-Key: <api-key>'import requests
url = "https://app.blockgence.com/v1/guard/watches/{wid}/hops"
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://app.blockgence.com/v1/guard/watches/{wid}/hops', 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/guard/watches/{wid}/hops",
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://app.blockgence.com/v1/guard/watches/{wid}/hops"
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://app.blockgence.com/v1/guard/watches/{wid}/hops")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/guard/watches/{wid}/hops")
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{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>",
"error": "<string>"
}Autorizaciones
Encabezados
Parámetros de ruta
Respuesta
Respuesta correcta.