vike-io

vike-wallet-exchange-usage

Show which centralised exchanges a wallet deposits to and withdraws from - per exchange the USD sent and received, the number of transfers each way, the share of all its outgoing USD, first and last seen - over 30 days to all time on Ethereum, BSC, Base or HyperEVM, and whether it sweeps 90%+ of its money to one exchange. Use when the user asks "which exchanges does this wallet use" / "where does 0x... cash out" / "does it deposit to Binance" / "how much did it withdraw from Coinbase" / "is this an exchange deposit address".

vike-io 2 Updated 2d ago
GitHub

Install

npx skillscat add vike-io/vike-data-cli/vike-wallet-exchange-usage

Install via the SkillsCat registry.

SKILL.md

vike-wallet-exchange-usage

The wallet's transfers over a window, joined to every address the chain's label table marks as an exchange. 1 request per call. Exchange figures are a lower bound: an exchange address we have not labelled is invisible.

Example questions

  • "Which exchanges does 0x28C6c06298d514Db089934071355E5743bf21d60 use?"
  • "Where does this BSC wallet cash out, and how much went to each exchange this quarter?"
  • "Is 0x... a deposit address that sweeps everything to one exchange?"

Call it

Use the first of these that is available:

  1. MCP: the wallet_exchange_usage tool with address, chain (ethereum, bsc, base, hyperevm; default ethereum) and window (30d, 90d, 180d, 365d, all; default 365d).
  2. CLI:
    A=0x28C6c06298d514Db089934071355E5743bf21d60
    vike-data wallet exchange-usage $A --json                          # ethereum, 365d
    vike-data wallet exchange-usage $A --chain bsc --window 90d --json
  3. curl: the credential is VIKE_API_KEY, else api_key or anon_token from ~/.vike/config.json (Windows %USERPROFILE%\.vike\config.json); with none, get a free anonymous token with curl -s -X POST https://data.vike.io/v1/anon -H 'Content-Type: application/json' -d '{"source":"skill-curl"}' and save its token there as "anon_token" (see vike-core).
    curl -s "https://data.vike.io/v1/onchain/wallets/$A/exchange-usage?chain=ethereum&window=90d" -H "X-API-KEY: $TOKEN"

Reading the answer

  • exchanges[], biggest USD first, one row per exchange entity: sent_usd (the wallet deposited), recv_usd (it withdrew), sent_transfers, recv_transfers, transfers, sent_share (this exchange's part of ALL the wallet's outgoing priced USD, labelled or not), first_seen, last_seen, addresses (how many of the exchange's addresses it touched), label_confidence {high, medium, unrated} and label_sources {provider_a, heuristic} counted over those addresses.
  • activity: totals over ALL counterparties (sent_usd, recv_usd, transfers, counterparties), so the shares can be checked.
  • pattern: "sweeps_to_single_cex" with pattern_basis (entity, sent_share, sent_transfers): 90%+ of its outgoing USD went to one exchange over 3+ outgoing transfers. An OBSERVED pattern; it does not prove the address is a deposit address or that the exchange runs it. null otherwise.
  • Read the entity names: anything the label table types cex is listed, so a row can be unnamed_cex (an exchange we cannot name) or a name that is not a retail exchange (a block builder, a market maker or a fund labelled cex turns up on very busy wallets). Rows with only unrated labels are the weakest.
  • The list has no limit: a hot wallet lists 100+ entities. Quote the top rows and the total.
  • found: false: no priced transfer in the window (coverage.note says so): widen --window.

Answer template

Over <window> on <chain>, <address> sent $<activity.sent_usd> and received $<activity.recv_usd>. Exchanges: <entity> $<sent_usd> deposited (<sent_share> of its outflow) / $<recv_usd> withdrawn, <first_seen> to <last_seen>; ... <pattern sentence if set>. A lower bound: unlabelled exchange addresses are not counted.

Limits

  • Priced transfers only; coin moved by a contract call shows only if it emits token transfers.
  • One chain per call; labels are sparse on hyperevm, so a miss there says little.
  • Exchange-to-exchange hops are not followed: for where the money went after leaving, use vike-follow-the-money.

Errors

  • "wallet too active for window '<w>' on <chain>: the read did not finish within ... narrow window (30d or 90d) and retry" (HTTP 400 on REST, exit 1 on the CLI): rerun with --window 90d or 30d.
  • found: false over all: the wallet has no priced history on that chain; try the chain it is active on (vike-data call wallet_check --args '{"address":"0x..."}', block onchain).
  • Exit code 3: the anonymous token's limit; tell the user to run vike-data login (400 a day), do not retry.

See also

  • vike-wallet-who-is (the identity playbook that includes this call), vike-wallet-check (365 days on every chain, one call)
  • vike-wallet-first-funder (where its first coins came from), vike-wallet-counterparties (every top partner, not only exchanges)

Categories