Skip to main content

Address Risk Report: AML Risk Score with Evidence on the Bitquery MCP

The address_risk_report tool on the Bitquery MCP server returns a compliance risk report for one address in one call: a score from 0 to 100 with the formula and weights behind it, the labelled entities the address received funds from and sent funds to, its exposure by entity type, and flags such as direct sanctions contact and address-poisoning look-alikes. Every connection names its label source and the transaction hashes behind it, so each part of the score can be checked.

One tool serves three chains. You pick the chain with the chain argument: tron, bitcoin or ethereum.

QuestionUse
How risky is this address, and why?address_risk_report
Which exchanges, mixers or sanctioned entities did it deal with, and through how many hops?address_risk_report with view: "all" (Tron)
The labels of one address or a list of addressesaddress_labels / labels_for_addresses
Everyone it paid and was paid by, in USD, without a scorecounterparties
A quick look at one address's top flows<chain>_address_flow_summary

Ask the agent​

"Give me an AML risk report for this Tron address: T…. Show the score, the top connections and every flag."

"Score the CoW Protocol settlement contract 0x9008d19f58aabd9ed0d60971565aa8510560ab41 on Ethereum for the funds it received since yesterday, direct counterparties only."

"Run a risk report on this Bitcoin address for the last 7 days, and count gambling at half its usual weight."

Inputs​

InputDefaultWhat it does
chainrequiredtron, bitcoin or ethereum
addressrequiredOne address: Tron base58 (T followed by 33 characters), Bitcoin (1..., 3... or bc1...) or Ethereum (0x followed by 40 hex characters)
viewallall traces funds up to max_hops hops back from what the address received and forward from what it sent (Tron). direct reports only the address's own counterparties and is fast.
max_hops2Search depth for view: "all", 1 to 6. Deeper searches cost more and are cut by the time limit more often; the report states the depth reached.
directionbothWhich side to score: both, received or sent
assetempty (main asset)The report asset. Tron: TRX, a token contract (T...) or a TRC-10 asset id. Bitcoin: BTC. Ethereum: ETH or a token contract (0x...). Identify a token by its contract, never by its symbol. Empty picks the asset the address moved the most of in USD, else the one with the most transfers.
after_timeempty (whole history)Only transfers at or after this UTC time
before_timeempty (now)Only transfers strictly before this UTC time. The balance and every total are as of this time, returned as data_as_of.
min_amount_usd100Transfers worth this much or less in USD are left out of the connections and the breakdown and never set the score floor, as a dust guard. A stablecoin uses a constant price, another asset the chain's recorded price; an asset with no price is not filtered.
weights{}A partial override of the risk profile, merged with the default: per entity type a weight from 0 to 100 and receiving / sending levels (High, Medium, Low, None), plus weight_unattributed. Example: {"Gambling": {"weight": 50}, "weight_unattributed": 30}
formatmarkdownmarkdown returns a short report to read. json returns the full report object described below.

after_time and before_time accept YYYY-MM-DD, YYYY-MM-DD HH:MM[:SS], ISO-8601 such as 2026-09-20T00:00:00Z, or 10-digit unix seconds.

How the chains differ​

TronBitcoinEthereum
Address formatBase58, starts with T1..., 3... or bc1...0x + 40 hex characters
view: "all" (multi-hop)Yes, up to max_hopsDirect viewDirect view
assetTRX, TRC-20 contract or TRC-10 asset idBTCETH or token contract
AmountsRunning balance and transfers in the report assetTurnover (received and sent); each counterparty amount is the address's pro-rata share through the inputs and outputs of each transactionRunning balance and transfers in the report asset

On a busy address, the whole-history report can run past the tool's time limit. Set after_time to a recent date, or use view: "direct", for a faster answer.

How the score is computed​

The score is the highest of three numbers:

  • received_score and sent_score: for each direction, the sum over entity types of the flow's share times the type's weight times its level factor, plus the unattributed share times weight_unattributed. Shares are over transfers above min_amount_usd.
  • direct_floor: the highest weight times level factor of a direct (1-hop) counterparty with an entity label that is listed as a connection. One direct transfer with a sanctioned entity, above min_amount_usd, lifts the score to that entity type's level no matter how small its share is.

Level factors: High 1.0, Medium 0.6, Low 0.3, None 0. Each entity type has a separate level for receiving and for sending, so funds received from an exchange can count differently from funds sent to one. The default profile covers entity types such as Sanctions, Terrorism Financing, Stolen Coins, Ransom, Darknet Marketplace, Mixing Service, Scam, Gambling, Exchange Licensed, Exchange Unlicensed, P2P Exchange, Liquidity Pools, Payment Processor, Other and more. The full profile in force comes back in score.weights_used on every call, and the exact formula text in score.formula.

Transfers to the address's own entity are marked same_entity and left out of the score. They stay in connections and breakdown, so a breakdown percentage can be larger than that entity type's share of the score.

Read the score in bands: none at 0, low below 25, medium 25 to 49, elevated 50 to 74, high 75 and up. The JSON report returns the number only, in score.value; work out the band from it.

With no labelled exposure, the report says "no exposure found in our labels". It never says an address is clean, because labels cover only part of each chain.

Output​

With format: "json" the report has these sections:

SectionWhat it holds
at_a_glancescore, data_as_of, complete, view, max_hops_reached, and flags_status with each flag as found, not_found or not_evaluated
summarychain, address, the report asset (contract, symbol, decimals, received, sent, transfers), balance, received, sent, tx_count, first and last activity in the window and over all time, every asset the address moved (assets, assets_total, assets_omitted), the address's own labels (owner, owner type, tags), coverage_tier and attributed_pct
scorevalue, received_score, sent_score, direct_floor, direct_floor_from (the counterparty, entity, entity type, direction, amount and evidence transactions that set the floor), formula, weights_used and top_drivers (direction, entity type, share and contribution)
connectionsOne row per labelled entity: entity, entity_type, subtype, received and sent amounts, received_shortest_hops and sent_shortest_hops, label_value, label_source, label_source_class (for example sanctions list, curated, vendor, heuristic), label_recorded_at, other_sources, addresses and evidence_path. A row for the address's own entity also carries same_entity
unnamed_connections, unnamed_moreThe largest counterparties with no entity label, with amounts, hops and evidence path, and a total for the rest
breakdownPer direction, the amount and percentage per entity type
unattributed, unattributed_by_cutFunds that reached no labelled entity. unattributed_by_cut comes with view: "all" on Tron and says why the search stopped following them (see below)
flagsOne item per finding: type, detail and evidence_txs
paramsEvery parameter used, including the resolved window, usd_conversion, cuts and notes. With view: "all" on Tron it also holds invariants, consistency checks on the report
cost, timing_msStatements run, rows and bytes read per step, and time taken

Amounts are in the report asset. usd_conversion states the USD basis: a constant 1 USD for stablecoins, otherwise the hourly price, which can trail the current hour by up to about 30 minutes. Two reports a few minutes apart can cite different price hours; the difference does not change the thresholds.

format: "markdown" returns the score with its formula line and drivers, the exposure, the top connections with hops, the flags, any cuts and the notes. Ask for json when you need evidence transactions, label sources or the full weights.

Flags​

FlagWhat it reports
direct_sanctionsA direct counterparty labelled as a sanctioned entity
poisoningAddress-poisoning look-alikes: addresses that sent small transfers and share the first or last characters of an address the wallet dealt with. Each item names the look-alike, the address it imitates, how many first and last characters match, and the evidence transactions. When many are found, only the largest are listed, with the total and how many were left out.
pass_throughPass-through behaviour: the address passes on the funds it receives. Measured on the counterparties returned, so it can read low when the counterparty list was cut.
risky_dustDust received from high-risk addresses
other_asset_direct_riskA risky direct counterparty in an asset other than the report asset

With no labelled counterparty but risk flags present, the exposure line reads "no labelled exposure in the scored flow - see flags".

Complete and cut searches​

A trace that hits the time limit or another bound stops and says so: complete is false, and params.cuts lists each bound that was reached, per direction, with how many counterparties it affected. unattributed_by_cut splits the unfollowed amount by reason, such as budget, counterparty_limit, max_hops, hub, small, cycle, burn, unspent and history_incomplete.

Before reading labels, the report asks the label service about the first 100 addresses it meets, the address and its direct counterparties first, as address_labels and labels_for_addresses do. Addresses past the first 100 are read as stored. This step is the labels_refresh line of cost.

FAQ​

Frequently Asked Questions

How can an AI agent get an AML risk score for a crypto address?

Connect the agent to the Bitquery MCP server and call address_risk_report with a chain (tron, bitcoin or ethereum) and an address. It returns a score from 0 to 100 with the formula, the labelled entities the address dealt with, its exposure by entity type, evidence transactions and flags such as direct sanctions contact and address poisoning.

Does a score of 0 mean the address is clean?

No. A score of 0 means no risky exposure was found in Bitquery labels within the window and the search depth. Labels cover only part of each chain, so the report says no exposure found in our labels, never that the address is clean.

Can I change how much each entity type counts?

Yes. Pass weights with only the types you want to change, for example a lower weight for Gambling or a different weight_unattributed. The rest of the default profile stays as it is, and the profile used comes back in score.weights_used.

Why do small transfers not change the score?

Transfers worth min_amount_usd or less (100 USD by default) are left out of the connections and never set the score floor, so dust sent by others cannot raise an address's score. Lower min_amount_usd to include them.

Build with Bitquery

Ready to run this in production?

Get an API key and run these queries in minutes, or talk to us about plans and enterprise delivery.