Builders: Counterparty Due Diligence & Compliance
Screen the addresses in your product. One batch call scores up to 200 addresses, and one more call shows the route behind any that are flagged.
The Goal
Your product did not choose the addresses in it. A user connects a wallet, pastes a destination, or shows up in a holder list, and each one has a history nobody on your side has seen. Some are flagged sources themselves: a hacker, a sanctioned party, a mixer. Others have received money from one.
Checking one address at a time does not scale when the list grows every day. This screens addresses in batches, adds a name to each one, and pulls the hop-by-hop route only for the ones that need a closer look.
POST /risk/address/batch and GET /risk/address/{address}/paths need Risk Scoring enabled on your subscription. See Risk Scoring. The other calls run without it.Endpoints Used
| Endpoint | What it gives you | Credits |
|---|---|---|
GET /counterparties/address/{address} | Optional: the wallets a contract you operate has dealt with, to build the list | 50 per call |
POST /risk/address/batch | A risk level and the flagged sources behind it, up to 200 addresses per call | 5 per row |
POST /intelligence/address/batch | The name for each address, up to 1000 addresses per call | 250 per call |
GET /risk/address/{address}/paths | The hop-by-hop route from a flagged source to the address | 20 per call |
Step 1: Build the list
If you already have the addresses, skip to Step 2. If you operate a contract, ask who has dealt with it.
curl "https://api.arkm.com/counterparties/address/0x66a9893cC07D91D95644AEDD05D03f95e1dBA8Af?timeLast=7d&limit=5" \
-H "API-Key: YOUR_API_KEY"{
"ethereum": [
{ "address": { "address": "0x000000000004444c5dc75cB358380D2e3dE08A90", "contract": true, "arkhamEntity": { "id": "uniswap", "name": "Uniswap", "type": "dex" }, "arkhamLabel": { "name": "PoolManager" } }, "usd": 157023870.50398478, "transactionCount": 49925 },
{ "address": { "address": "0x082738D007001080A00099A000004f3006152085", "contract": true }, "usd": 64349232.64199951, "transactionCount": 3957 },
{ "address": { "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "contract": true, "arkhamLabel": { "name": "Wrapped Ether (WETH)" } }, "usd": 15051513.296046972, "transactionCount": 27852 }
]
}- Results are grouped by chain. Take
address.addressfrom each row. limitdefaults to 20 and counts across all chains. It costs 50 credits per call whatever you set, so ask for as many as you want to screen, up to 1000.
Step 2: Score the list
Up to 200 addresses per call. You can mix chains.
curl -X POST "https://api.arkm.com/risk/address/batch" \
-H "API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"addresses": [
"0x28C6c06298d514Db089934071355E5743bf21d60",
"0x8589427373D6D84E98730D7795D8f6f8731FDA16",
"0x905315602Ed9a854e325F692FF82F58799BEaB57"
]}'{
"0x28C6c06298d514Db089934071355E5743bf21d60": {
"address": "0x28C6c06298d514Db089934071355E5743bf21d60",
"chain_type": "",
"risk_level": "NONE",
"is_seed": false
},
"0x8589427373D6D84E98730D7795D8f6f8731FDA16": {
"address": "0x8589427373D6D84E98730D7795D8f6f8731FDA16",
"chain_type": "evm",
"risk_level": "LOW",
"is_seed": true,
"greatest_risk_category": "sanctions",
"max_score": 25,
"hop_distance": 0,
"sanctions_score": 25,
"updated_at": "2026-09-07T17:05:03Z"
},
"0x905315602Ed9a854e325F692FF82F58799BEaB57": {
"address": "0x905315602Ed9a854e325F692FF82F58799BEaB57",
"chain_type": "evm",
"risk_level": "SEVERE",
"is_seed": true,
"greatest_risk_category": "hacker",
"max_score": 100,
"hop_distance": 0,
"updated_at": "2026-09-07T17:05:03Z"
}
}- The response is keyed by the address you sent, in the case you sent it.
risk_levelisNONE,LOW,MEDIUM,HIGH, orSEVERE. ANONErow has only the address,chain_type,risk_level, andis_seed. The scores are missing, not zero.is_seed: truemeans the address is itself a flagged source. Check it separately from the level: the second row is a Tornado Cash address that scoresLOWand is still a seed. A seed matters whatever its level.greatest_risk_categoryis the category that drove the level. Per-category scores (hacker_score,sanctions_score,mixer_score, and so on) show the rest.hop_distanceis how many transactions away the nearest flagged source is;0means the address itself.- An exposed address that is not a seed has
top_sources, a list of the flagged sources traced to it. Each hasrisk_category,direction,hop_distance, andcontribution_usd.forwardmeans the address received money from the source.backwardmeans it sent money that reached one.
Sort by risk_level, then check is_seed and the largest contribution_usd. Anyone can send anyone a token, so set a minimum contribution_usd before you treat exposure as a real problem.
A few lines chain Steps 1 and 2:
import requests
API_KEY = "YOUR_API_KEY"
CONTRACT = "0x66a9893cC07D91D95644AEDD05D03f95e1dBA8Af"
H = {"API-Key": API_KEY}
rows = requests.get(f"https://api.arkm.com/counterparties/address/{CONTRACT}",
params={"timeLast": "7d", "limit": 50}, headers=H).json()
addresses = [r["address"]["address"] for chain in rows.values() for r in chain]
for i in range(0, len(addresses), 200):
scores = requests.post("https://api.arkm.com/risk/address/batch",
json={"addresses": addresses[i:i + 200]}, headers=H).json()
for address, s in scores.items():
if s["risk_level"] != "NONE" or s["is_seed"]:
print(address, s["risk_level"], "seed" if s["is_seed"] else "", s.get("greatest_risk_category", ""))Step 3: Put names on the flagged rows
Up to 1000 addresses per call, so one call covers the whole screen.
curl -X POST "https://api.arkm.com/intelligence/address/batch" \
-H "API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"addresses": ["0x8589427373D6D84E98730D7795D8f6f8731FDA16", "0x905315602Ed9a854e325F692FF82F58799BEaB57"]}'{
"addresses": {
"0x8589427373D6D84E98730D7795D8f6f8731FDA16": {
"chain": "ethereum",
"contract": false,
"arkhamEntity": { "id": "tornado-cash", "name": "Tornado.Cash", "type": "privacy" },
"arkhamLabel": { "name": "Donate" }
},
"0x905315602Ed9a854e325F692FF82F58799BEaB57": {
"chain": "ethereum",
"contract": false,
"arkhamEntity": { "id": "alpha-homora-v2-exploiter", "name": "Alpha Homora V2 Exploiter", "type": "hacker" },
"arkhamLabel": { "name": "Hacker" }
}
}
}arkhamEntityis a confirmed name andpredictedEntityis a guess. Show a prediction as a lead, not an identification.- Keys come back in checksum case while Step 2 echoes your input, so match the two on a lowercased copy.
- The name puts the score in context.
SEVEREon a known hacker is expected.HIGHon an unnamed wallet is the one to look at.
Step 4: Trace the route behind a flag
One call per address you want to look into.
curl "https://api.arkm.com/risk/address/0x8589427373D6D84E98730D7795D8f6f8731FDA16/paths" \
-H "API-Key: YOUR_API_KEY"{
"address": "0x8589427373D6D84E98730D7795D8f6f8731FDA16",
"paths": [
{
"chain_type": "evm",
"seed_address": "0x905b63Fff465B9fFBF41DeA908CEb12478ec7601",
"risk_category": "privacy",
"direction": "backward",
"score": 11,
"contribution_usd": 41310.21202932856,
"hop_distance": 1,
"path_nodes": [
{ "address": "0x905b63Fff465B9fFBF41DeA908CEb12478ec7601", "hop_distance": 0 },
{ "address": "0x8589427373D6D84E98730D7795D8f6f8731FDA16", "hop_distance": 1 }
]
}
]
}- Up to 10 paths come back, largest
contribution_usdfirst. Each is one flagged source and the chain of addresses the money moved through. path_nodeslists the addresses from the source at hop0to your address. Put the intermediate addresses through Step 3 to name them.direction: forwardis money flowing from the source to your address.backwardis your address paying into one. Receiving from a hacker and paying a sanctioned party are different problems.- An address with nothing traced returns an empty
pathsarray. Only call this on rows that have a risk level aboveNONE.
Reading the results
- Most addresses score
NONE. That is normal, and it means nothing was traced, not that the address was checked and cleared. - Level and seed are separate.
is_seed: trueatLOWis still a flagged source. Check both before you decide. - Set a dollar minimum. A source that contributed a few dollars is noise, often from an airdrop or a spam token. Count exposure only above an amount that makes sense for your product.
- Cost scales with the list. Screening 1000 addresses is 5000 credits for the scores and 250 for the names. Routes are 20 each, so pull them only for the rows you will act on.
Next Steps
- Put names on the rest of your addresses with Entity-Centric Product Data
- Screen a token and the team behind it with Brokers: Token & Issuer Due Diligence
- Investigate a flagged address further with Traders: Counterparty Due Diligence & Risk Monitoring
- Risk Scoring is an add-on, see Risk Scoring