curl --request POST \
--url https://app.blockgence.com/v1/counterparties \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"address": "<string>",
"chain": "ethereum",
"direction": "both",
"since": 0,
"temporal": true,
"win_start": 0,
"win_end": 0,
"min_usd": 1,
"offset": 0,
"limit": 20,
"include_tokens": true,
"read_more": 0,
"until": 0
}
'import requests
url = "https://app.blockgence.com/v1/counterparties"
payload = {
"address": "<string>",
"chain": "ethereum",
"direction": "both",
"since": 0,
"temporal": True,
"win_start": 0,
"win_end": 0,
"min_usd": 1,
"offset": 0,
"limit": 20,
"include_tokens": True,
"read_more": 0,
"until": 0
}
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({
address: '<string>',
chain: 'ethereum',
direction: 'both',
since: 0,
temporal: true,
win_start: 0,
win_end: 0,
min_usd: 1,
offset: 0,
limit: 20,
include_tokens: true,
read_more: 0,
until: 0
})
};
fetch('https://app.blockgence.com/v1/counterparties', 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/counterparties",
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([
'address' => '<string>',
'chain' => 'ethereum',
'direction' => 'both',
'since' => 0,
'temporal' => true,
'win_start' => 0,
'win_end' => 0,
'min_usd' => 1,
'offset' => 0,
'limit' => 20,
'include_tokens' => true,
'read_more' => 0,
'until' => 0
]),
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/counterparties"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"chain\": \"ethereum\",\n \"direction\": \"both\",\n \"since\": 0,\n \"temporal\": true,\n \"win_start\": 0,\n \"win_end\": 0,\n \"min_usd\": 1,\n \"offset\": 0,\n \"limit\": 20,\n \"include_tokens\": true,\n \"read_more\": 0,\n \"until\": 0\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/counterparties")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"chain\": \"ethereum\",\n \"direction\": \"both\",\n \"since\": 0,\n \"temporal\": true,\n \"win_start\": 0,\n \"win_end\": 0,\n \"min_usd\": 1,\n \"offset\": 0,\n \"limit\": 20,\n \"include_tokens\": true,\n \"read_more\": 0,\n \"until\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/counterparties")
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 \"address\": \"<string>\",\n \"chain\": \"ethereum\",\n \"direction\": \"both\",\n \"since\": 0,\n \"temporal\": true,\n \"win_start\": 0,\n \"win_end\": 0,\n \"min_usd\": 1,\n \"offset\": 0,\n \"limit\": 20,\n \"include_tokens\": true,\n \"read_more\": 0,\n \"until\": 0\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>"
}All counterparties of an address
Returns every counterparty of an address, aggregated, labeled and paginated, ranked by USD value. Unlike
POST /v1/trace, which limits the branches per node, this includes the counterparties the trace left out (the
“+N” of a node).
Request body (JSON).
address(required) andchain(defaultethereum).direction:out(whom it sent to),in(who sent to it) orboth(default).sinceanduntil: lower and upper time bound, in Unix seconds; 0 means no limit.temporal(defaulttrue) applies temporal consistency.win_startandwin_end: date window.include_tokens(defaulttrue) andread_more(0 to 9): read the address the same way as its node in the trace. A graph node publishes these values inreveal.min_usd: discards counterparties worth less than that USD value (default 1.0). Relevant counterparties (exchange, mixer, bridge, sanctioned or scam) are kept even below that value.offset(default 0) andlimit(1 to 100, default 20): pagination.
Response. total, offset, returned, has_more, next_offset and counterparties (each with
address, label, category, direction, value, value_usd, asset, tx_count, first_ts and
last_ts). To go through all of them, request offset = next_offset until has_more is false. unpriced
summarizes the token transfers discarded for having no published price; a counterparty that moved only those
tokens is not in the list.
Limits. Of what was read, at most the 10,000 highest-value transfers on the requested side are aggregated.
Coverage. If the source cannot read the address, the response is 503 source_unavailable, with no charge:
never “0 counterparties”. What was left unread and the limits of the network are declared in
degraded_sources. On a network where inflows cannot be read, direction: "in" returns 503 with
reason: "unsupported".
Cost: 4 credits base. Some operations charge less when they reuse a saved result; never more.
curl --request POST \
--url https://app.blockgence.com/v1/counterparties \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"address": "<string>",
"chain": "ethereum",
"direction": "both",
"since": 0,
"temporal": true,
"win_start": 0,
"win_end": 0,
"min_usd": 1,
"offset": 0,
"limit": 20,
"include_tokens": true,
"read_more": 0,
"until": 0
}
'import requests
url = "https://app.blockgence.com/v1/counterparties"
payload = {
"address": "<string>",
"chain": "ethereum",
"direction": "both",
"since": 0,
"temporal": True,
"win_start": 0,
"win_end": 0,
"min_usd": 1,
"offset": 0,
"limit": 20,
"include_tokens": True,
"read_more": 0,
"until": 0
}
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({
address: '<string>',
chain: 'ethereum',
direction: 'both',
since: 0,
temporal: true,
win_start: 0,
win_end: 0,
min_usd: 1,
offset: 0,
limit: 20,
include_tokens: true,
read_more: 0,
until: 0
})
};
fetch('https://app.blockgence.com/v1/counterparties', 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/counterparties",
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([
'address' => '<string>',
'chain' => 'ethereum',
'direction' => 'both',
'since' => 0,
'temporal' => true,
'win_start' => 0,
'win_end' => 0,
'min_usd' => 1,
'offset' => 0,
'limit' => 20,
'include_tokens' => true,
'read_more' => 0,
'until' => 0
]),
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/counterparties"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"chain\": \"ethereum\",\n \"direction\": \"both\",\n \"since\": 0,\n \"temporal\": true,\n \"win_start\": 0,\n \"win_end\": 0,\n \"min_usd\": 1,\n \"offset\": 0,\n \"limit\": 20,\n \"include_tokens\": true,\n \"read_more\": 0,\n \"until\": 0\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/counterparties")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"chain\": \"ethereum\",\n \"direction\": \"both\",\n \"since\": 0,\n \"temporal\": true,\n \"win_start\": 0,\n \"win_end\": 0,\n \"min_usd\": 1,\n \"offset\": 0,\n \"limit\": 20,\n \"include_tokens\": true,\n \"read_more\": 0,\n \"until\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/counterparties")
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 \"address\": \"<string>\",\n \"chain\": \"ethereum\",\n \"direction\": \"both\",\n \"since\": 0,\n \"temporal\": true,\n \"win_start\": 0,\n \"win_end\": 0,\n \"min_usd\": 1,\n \"offset\": 0,\n \"limit\": 20,\n \"include_tokens\": true,\n \"read_more\": 0,\n \"until\": 0\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
Todas las contrapartes de UNA address, agregadas y paginadas. A diferencia del trace (capado por fan-out), acá se ve el universo completo de contrapartes (hasta lo que trae la fuente de datos), para revelar las que el rastreo dejó afuera.
Response
Successful response.