Usa Bitquery MCP con Sokko.
Conecta Bitquery MCP y dile a Sokko qué hacer. Ejecuta las acciones que pides y reacciona a lo que ocurre, sin workflows ni código.
Funciona con más de 1.000 herramientas · Sin código
Acciones
Todo lo que Sokko puede hacer en Bitquery MCP
Cada acción de Bitquery MCP que Sokko puede ejecutar. Pídela en una frase y listo.
Accumulating traders by token
List traders NET-ACCUMULATING ONE token (buys > sells), ranked by net USD
accumulated (Buy_USD − Sell_USD). Use for "who is accumulating <token> /
biggest net buyers / wallets loading up". For ranking by total volume use
top_traders_by_token; for P&L use profitable_traders_by_token.
Good for smart-money entry on rare / newly-launched tokens.
Trader_Address is the transaction SIGNER on the EVM chains (a
transaction relayed for a smart account counts for that account). On
Solana it is the signer that owns the tokens of this swap or of another
swap in the same transaction — on a gas-sponsored swap (an app pays the
fee and the user co-signs) the user, not the fee payer — else the fee
payer. On Tron it is often a router or other contract the swap passed
through, not the signing account. A bot may sign while its own contract holds
and moves the tokens — to find that contract, open one of
the wallet's Tx_Hash values (trader_trades lists them) with the chain's
tx_transfers tool (eth_tx_transfers, bsc_tx_transfers, …); transfer
tools run on the signer then show few or no outgoing transfers.
Only returns traders with Net_Buy_Usd ≥ `min_net_buy_usd`.
WINDOW: after_time / before_time in UTC; when after_time is empty the
window is the window_hours hours before the end; before_time empty = now.
Trade history reaches back about 30 days.
TRADE SIZE IS CROSS-CHECKED: a swap has two sides, so each trade is
valued at the more conservative of the two. A token whose USD price is
stale or manipulated — common on brand-new or thin-liquidity contracts —
therefore cannot inflate the USD figures: such a trade is counted at
what the other side of the swap was actually worth. When the two sides
disagree, the inflated one is almost always the traded token, while the
other side of the swap is a liquid asset whose price is sound — so the
lower figure is what actually changed hands, not a guess. Only when
NEITHER side carries a price is there nothing to report: the USD figures
then come back EMPTY, and you must report that as unavailable (a dash),
never as zero. Unpriced_Trades counts how many of this row's trades had
no price on either side, and Volume_Coverage is the share of trades the
USD totals actually cover (1 = all of them). When Volume_Coverage is
below 1 the USD totals are PARTIAL — say so instead of presenting them
as the full picture. Note that
Last_Price_Usd is the token's last quoted price and is NOT
cross-checked — on brand-new or thin-liquidity contracts it can sit far
from what trades actually cleared at.
Symbols longer than 32 characters are cut and end in `…` (spam tokens carry
symbols of up to 32,000 characters).
Ada address flow summary
ADDRESS FLOW SUMMARY / top counterparties of a Cardano (ada, ADA, cardano) address in one call:
address type, Is_Script, Stake_Key, lifetime receiving / spending transaction counts
and distinct senders / receivers, plus TOP RECEIVERS (the recipients of its recent spending
transactions, itself excluded) and TOP SENDERS (the input addresses of its recent receiving
transactions).
NOT only the statistics, without counterparties → use ada_address_profile.
Call this FIRST when triaging a hop; use ada_flow_edges for the full edge list
and older periods.
Role reflects the LIFETIME counts (Receiving_Txs, Spending_Txs, Distinct_Senders,
Distinct_Receivers, all assets), not the max_txs scan: receive_only (it never spent anything) /
send_only (spends with no recorded receipt) / no_transfers (neither) / hub (thousands of senders
AND receivers — an exchange or contract, don't trace deeper) / consolidator (senders ≫
receivers) / distributor (receivers ≫ senders) / relay (neither dominates). The distinct counts
include the address itself when a transaction pays change back to it.
READING THE TOP ARRAYS: positional 7-tuples [counterparty, amount, currency,
asset_fingerprint, txs, same_stake_key, symbol_nonascii] (the Top_Fields column lists these
names in the same order), one entry per (counterparty, asset),
largest amount first (most txs first when currency is empty), equal entries in a fixed order.
For a receiver, amount = what it received in those transactions; for a sender, amount = the
value of ITS inputs in those transactions, which can include its own change. Cardano outputs are
not labeled as change: an output that returns to the payer counts as a recipient like any other.
So the address's own spending transactions count as receiving transactions when it gets change
back, and the addresses it spends together with show up as senders; same_stake_key = 1 marks an
address of the same wallet, not a real counterparty. currency="ADA" (default) ranks ADA; a token
fingerprint (asset1...), policy id or Currency_Id ranks that token; currency="" gives one entry
per (counterparty, asset) ranked by txs, and amounts of different assets must not be compared or
added. ADA amounts are in ADA, not lovelace. A token amount is scaled by the token's registered
decimals when they are known (Decimals > 0); most tokens have none registered, and their amounts
are raw on-chain units. Never USD - for the ADA price use currency_price with currency_id "ada".
SCOPE: the arrays cover the most recent max_txs spending and max_txs receiving transactions
(default 1000 each) - Spend_Txs_Scanned / Receipt_Txs_Scanned and the Oldest_* times state what
was read; the lifetime counts cover the whole history but come from the same aggregate as the
arrays, so they can run slightly below ada_address_profile, which is exact. On a script address
(DEX pool, order book) the counterparties are the contract's users. A small share of
transactions (a few hours of blocks in March 2023 among them) is missing from this aggregate,
and so are most outputs of a token MINTED in the same transaction (freshly minted tokens, LP and
receipt tokens rarely show up as token edges); ada_tx_flow on a single transaction is always
complete.
Stake_Key (stake1...) is the staking credential of a base address: different payment addresses
that share one Stake_Key almost always belong to the same wallet. Byron (Ae2... / Ddz...) and
enterprise (addr1v... / addr1w...) addresses have none. No address labels are returned here:
identify the address and its counterparties with labels_for_addresses(chain='cardano') - pass
Address and the Top_Receivers / Top_Senders counterparties in ONE call; an empty answer there
is a coverage gap, not a clean address.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Ada address profile
Cardano (ada, ADA, cardano) address PROFILE, one row per asset: total received, sent and current
balance of ADA and of every native token at this address, receiving / spending output and
transaction counts, first / last activity, plus the address type, whether it is a script, its
Stake_Key and its distinct senders / receivers. Use to triage a Cardano address during tracing -
how much flowed, what it holds now, who controls it.
NOT who it deals with → use ada_address_flow_summary.
Cardano outputs carry several assets at once, so every amount is PER ASSET and amounts of
different assets are never added together. currency="ADA" (default) returns the ADA row;
currency="" lists every asset, most active first. ADA amounts are in ADA, not lovelace. A token
amount is scaled by the token's registered decimals when they are known (Decimals > 0); most
tokens have none registered, and their amounts are raw on-chain units. Never USD - for the ADA
price use currency_price with currency_id "ada".
Received / Sent are cumulative TURNOVER, not holdings: every output ever paid to the address (its
own change included - Cardano does not mark change) and every input it spent, so the same coins
count again each time they pass through and a busy exchange wallet's totals can exceed the ADA
supply. Balance = received minus spent at THIS address only. A wallet usually spreads its funds over
many addresses that share one Stake_Key, and staking rewards are not included until withdrawn.
Balance is empty for stake addresses and for an asset whose recorded history does not reconcile
(more spent than received - typically a token without an on-chain identity, Currency_Id with an
empty Asset_Fingerprint).
Stake_Key (stake1...) is the staking credential of a base address: different payment addresses
that share one Stake_Key almost always belong to the same wallet. Byron (Ae2... / Ddz...) and
enterprise (addr1v... / addr1w...) addresses have none. When the staking part is a script
(addr1x... / addr1y...), Stake_Key is spelled stake1u... here while explorers show the same account
as stake17... - either spelling works as address. Is_Script = 1: the funds are controlled by a
script - a smart contract (DEX pool, order book, lending) or a multi-signature wallet; for a stake
address only the stake17... spelling reports it.
Distinct_Senders / Distinct_Receivers count counterparties across all assets, the address itself
included when a transaction pays back to it. Role from the ratio: senders >> receivers =
consolidator, the reverse = distributor, thousands of both = a hub (exchange or contract - do
not trace deeper).
The whole history is read, so a busy exchange or DEX address can take a while - retry on a
timeout. No address labels are returned here: identify the address with
labels_for_addresses(chain='cardano') in one call - it holds the proof-of-reserves wallets of
the large exchanges, and an empty answer there is a coverage gap, not a clean address. Data
lags the chain by a few minutes.
Ada address received
INCOMING Cardano (ada, ADA, cardano) outputs of an address - every asset amount it received (tx,
output index, Direction, time), newest first. Indexed by address (fast). Use to see what an
address received and in which transactions.
NOT what this address spent → use ada_sent_from_address.
NOT sums over its whole history → use ada_address_flow_summary or ada_address_profile.
Returns up to limit rows (default 20, at most 1000), newest first; page back with the last
row's Cursor - a page shorter than limit is the last one. Set sort='amount' with one asset
selected for the largest receipts instead: a top-N page with no Cursor.
One row per asset per output: an output carrying ADA plus two tokens is three rows sharing Tx
and Output_Index. currency="ADA" (default) returns the ADA rows; pass a token fingerprint
(asset1...), policy id or Currency_Id to follow a token, or currency="" for every asset. Amounts
of different assets are never added together. ADA amounts are in ADA, not lovelace. A token
amount is scaled by the token's registered decimals when they are known (Decimals > 0); most
tokens have none registered, and their amounts are raw on-chain units. Never USD - for the ADA
price use currency_price with currency_id "ada".
Direction: not_change / unknown for ordinary outputs - Cardano outputs are NOT labeled as
change, so not_change does not mean a payment from someone else: often it is the address's own
change coming back in a transaction it spent in (compare with ada_sent_from_address, or open the
Tx with ada_tx_flow). stake_registration rows are staking deposits to a stake1... address, not
payments.
NOTE: a UTXO output has no single sender. To see who paid, open the Tx with ada_tx_flow - its
inputs are the payers. Data lags the chain by a few minutes.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
Each row: Time, Tx, Output_Index, Direction, Currency, Symbol_NonAscii, Asset_Fingerprint, Policy_Id, Currency_Id, Decimals, Amount, Cursor.
Ada flow edges
MONEYFLOW GRAPH EDGES out of a Cardano (ada, ADA, cardano) address: Source -> Target, where the
targets are the recipients of the transactions this address spent in (every output except those
back to the address itself), per asset - Amount, Txs, Target_Stake_Key and
Same_Stake_Key (1 = the target shares the source's staking credential, so it is most likely the
same wallet rather than a counterparty). Building block for a MoneyFlow DIAGRAM - call per
address / hop, collect edges, render Mermaid `graph LR`, stop at exchange nodes.
NOT one transaction's outputs → use ada_tx_flow.
NOT its spending transactions one by one → use ada_sent_from_address.
Returns up to limit rows (default 20, at most 500), one per recipient and asset, largest
Amount first.
currency="ADA" (default) gives ADA edges; pass a token fingerprint (asset1...), policy id or
Currency_Id to follow a token, or currency="" for one edge per (target, asset) - then edges of
different assets are not comparable and are ranked by Txs. ADA amounts are in ADA, not lovelace.
A token amount is scaled by the token's registered decimals when they are known (Decimals > 0);
most tokens have none registered, and their amounts are raw on-chain units. Never USD - for the
ADA price use currency_price with currency_id "ada".
NOTE: in UTXO every recipient of a spend transaction is attributed to the spending address; on a
script address (DEX pool, order book) the edges are the contract's users. Cardano outputs are
not labeled as change: an output that returns to the payer counts as a recipient like any other.
Change sent to the wallet's other addresses therefore appears as an edge: Same_Stake_Key = 1
marks it for base addresses; for Byron / enterprise addresses check ada_related_addresses.
SCOPE: reads the address's most recent max_txs spending transactions (default 1000).
Two scope columns on every row state what was covered (how many of those transactions were read
and the time of the oldest one); a non-empty
Next_Cursor means older transactions may exist - pass it as cursor to continue with the next older
batch. When nothing matched in the transactions read, ONE row comes back with an empty address
column that carries only these scope columns - that means nothing in this batch, not in the
whole history. A small share of transactions (a few hours of blocks in March 2023 among them) is
missing from this aggregate, and so are most outputs of a token MINTED in the same transaction
(freshly minted tokens, LP and receipt tokens rarely show up as token edges); ada_tx_flow on a
single transaction is always complete. The edges carry no labels: identify the Targets with
labels_for_addresses(chain='cardano') in one call and stop at exchange nodes; an empty answer
there is a coverage gap, not a clean address.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
Each row: Source, Target, Target_Stake_Key, Same_Stake_Key, Currency, Symbol_NonAscii, Asset_Fingerprint, Policy_Id, Currency_Id, Decimals, Amount, Txs, Spend_Txs_Scanned, Oldest_Spend_Time, Next_Cursor.
Ada mints
MINT AND BURN history of a Cardano (ada, ADA, cardano) native token or NFT collection: every
mint (positive Amount) and burn (negative Amount) with time and transaction, newest first. Use
for "when and how much of token X was minted / burned", supply changes, NFT drops.
Pin the token with currency: its fingerprint (asset1..., one asset) or its 56-hex policy id
(every asset of that policy - e.g. a whole NFT collection), or a Currency_Id returned by the
other ada tools. A ticker is accepted but is not unique - check Asset_Fingerprint. Native ADA is
never minted. ADA amounts are in ADA, not lovelace. A token amount is scaled by the token's
registered decimals when they are known (Decimals > 0); most tokens have none registered, and
their amounts are raw on-chain units. Never USD.
SCOPE: the last `days` days (default 365), counted back from today on the first page and from
the cursor on every next page - so a page walk keeps going back past the first window, and a
page shorter than limit only means that window ran out: pass its last Cursor to look further
back, or use days=0. days=0 reads the whole history, which is slower (may time out - retry). The
minter and the recipients are not in these rows - open the Tx with ada_tx_flow (its outputs
receive the minted tokens). Net supply created = the sum of Amount over the whole history
(days=0). Data lags the chain by a few minutes.
Ada related addresses
LIKELY SAME-OWNER Cardano (ada, ADA, cardano) addresses (common-input heuristic): addresses
whose inputs were spent together with this address's inputs in the same transactions.
NOT the addresses it paid → use ada_flow_edges.
Same_Stake_Key = 1: shares this address's staking credential - near-certain same wallet.
Co_Input_ADA is ADA only; tokens are not summed.
Returns up to limit rows (default 20, at most 500), most Shared_Txs first.
Use to expand an address into its wallet during tracing.
CAVEATS: on a SCRIPT address (addr1w..., addr1z..., addr1x... - a DEX pool, order book or other
contract) co-spending is NOT ownership: every user of the contract spends together with it, so
the list is its users. Use ada_address_flow_summary for such an address.
Batching services and shared exchange wallets break the heuristic the
same way. Stake_Key (stake1...) is the staking credential of a base address: different payment
addresses that share one Stake_Key almost always belong to the same wallet. Byron (Ae2... /
Ddz...) and enterprise (addr1v... / addr1w...) addresses have none.
SCOPE: reads the address's most recent max_txs spending transactions (default 1000).
Two scope columns on every row state what was covered (how many of those transactions were read
and the time of the oldest one); a non-empty
Next_Cursor means older transactions may exist - pass it as cursor to continue with the next older
batch. When nothing matched in the transactions read, ONE row comes back with an empty address
column that carries only these scope columns - that means nothing in this batch, not in the
whole history. A small share of transactions (a few hours of blocks in March 2023 among them) is
missing from this aggregate; ada_tx_flow on a single transaction is always complete. No address
labels are returned here: identify the related addresses with
labels_for_addresses(chain='cardano') in one call; an empty answer there is a coverage gap,
not a clean address.
Each row: Related_Address, Stake_Key, Same_Stake_Key, Shared_Txs, Co_Input_ADA, Spend_Txs_Scanned, Oldest_Spend_Time, Next_Cursor.
Ada sent from address
OUTGOING Cardano (ada, ADA, cardano) - the inputs this address SPENT: spend tx, input index,
asset, amount, time, and the earlier output each input consumed (Funded_By_Tx /
Funded_By_Output). Indexed by address (fast).
NOT what this address received → use ada_address_received.
One row per asset per input. currency="ADA" (default) returns the ADA rows; pass a token
fingerprint (asset1...), policy id or Currency_Id, or currency="" for every asset. Amounts of
different assets are never added together. ADA amounts are in ADA, not lovelace. A token amount
is scaled by the token's registered decimals when they are known (Decimals > 0); most tokens
have none registered, and their amounts are raw on-chain units. Never USD - for the ADA price
use currency_price with currency_id "ada".
Source = input for an ordinary spend. For a stake address (stake1...) the rows are reward
withdrawals (withdrawal) and deposit refunds (stake_deregistration) instead.
Page back through history with cursor: pass the Cursor value of the LAST row of a page to get
the next one - unlike before_time it never skips rows that share a timestamp. Set sort='amount'
with one asset selected to surface the largest spends.
To see WHERE the funds went, take a Spend_Tx and call ada_tx_flow - its outputs are the
recipients; outputs are not labeled as change, so an output back to this address or to another
input address of the same transaction is change - or aggregate the recipients with
ada_flow_edges. Data lags the chain by a few minutes.
Ada transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Cardano databases (`cardano`,
`cardano_flow`). The ada_* tools are the PRIORITY; use this ONLY when none can answer. No
query optimizer here: filter on the per-key tables and NEVER JOIN big tables (use
`IN (SELECT …)`); never GLOBAL IN (it reads the whole table).
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
This data runs on an older release of the engine: some functions and syntax in that reference
(map() and toJSONString() among them) do not exist here — when a statement is refused for an
unknown function or setting, use the forms shown in this description.
DATA MODEL: UTXO model with native tokens — EVERY table has ONE ROW PER ASSET: `currency_id` (native ADA
= 7029218, token_index = -1) and `value` UInt64 in RAW units. ALWAYS group by currency_id and
divide by `dictGetFloat64('currency','divider',toUInt64(currency_id))` (1e6 for ADA; 1, i.e.
raw units, for a token without registered decimals and for an unknown id); a plain sum(value)
adds lovelace to token units and is meaningless, and sum() of large token values can overflow —
sum toFloat64(value).
TOKENS: token identity via the `currency` dict: 'symbol' / 'name' (a ticker or the hex asset name; '-'
for an unknown id), 'asset_id' (fingerprint asset1…), 'decimals', 'properties' (YAML text;
policy id = `extract(dictGetString('currency','properties',toUInt64(currency_id)), 'policyId: ([0-9a-f]{56})')`).
Tickers are not unique — match tokens by fingerprint or policy id. A dictGet in WHERE runs for
EVERY row read (no short-circuit), so filter by address / tx / currency_id first. Addresses are
plain strings (`addr1…` bech32 lowercase, `stake1…` reward accounts, Byron base58 `Ae2…` /
`Ddz…` case-sensitive); a script reward account (`stake17…` on explorers) is mostly recorded in
its `stake1u…` spelling, whose checksum differs — look such an account up with
ada_address_profile or ada_sent_from_address, which match both spellings. `stake_key` = the
staking credential of a base address — on enterprise
addresses (`addr1v…` / `addr1w…`) the column holds the payment credential re-encoded as
`stake1u…`, which is NOT a staking key. Tx id: `tx_id_bin = unhex('<64hex>')`, output
`hex(tx_id_bin)`. Time = `tx_time`. Date-times come back as 'YYYY-MM-DD hh:mm:ss' UTC; select formatDateTime(tx_time, '%FT%TZ') for ISO-8601 (2026-09-21T15:04:18Z), the shape the other tools return.
TABLES: db `cardano`, partitioned by month on `tx_date` (add a plain `tx_date` bound whenever you can —
inside `… OR …` it prunes nothing): inputs_by_address / outputs_by_address (key address;
inputs carry output_tx_id_bin / output_index of the spent output and `source` Enum
input/withdrawal/stake_deregistration; outputs carry `direction` — only not_change / unknown on
ordinary outputs: change is NEVER labeled, so not_change includes change back to the payer),
inputs_by_tx / outputs_by_tx / transactions (fee_value, deposit_value, metadata) / mints (key
tx_id_bin — pass `(tx_date, tx_id_bin) IN (…)` when the date is known, otherwise every month is
probed; to reuse one lookup in several UNION ALL branches write `(tx_date, tx_id_bin) IN
identity((SELECT groupArray((tx_date, tx_id_bin)) FROM cardano.transactions WHERE tx_id_bin IN
(…)))`, which runs once; `toInt64(value)` is negative for a burn), blocks (key block). Deposits are already rows:
a stake registration is an output to the stake1… address (direction stake_registration), other
protocol deposits an output with an empty address (deposit), a refund an input
(stake_deregistration) — per transaction ADA inputs = outputs + fee_value and, per token,
inputs + mints = outputs; do not add deposit_value on top.
db `cardano_flow`: tx_inputs / tx_outputs keyed (block, tx_index), not partitioned — the cheap
way to expand many transactions: `(block, tx_index) IN (SELECT block, tx_index FROM
cardano.inputs_by_address WHERE address = '…')` (output_type commission / spend — never
change; the commission row has an empty address). This copy is INCOMPLETE: it misses some
transactions (a few hours of blocks in March 2023 among them) and most outputs of a token minted
in the same transaction — use cardano.*_by_tx for exact per-transaction totals.
address_transfers (AggregateFunction columns → -Merge; its amount columns ADD ALL ASSETS
together and its stake_key is empty — use it for counts only). Address labels: none in
this data — use labels_for_addresses(chain='cardano').
LIMITS: read-only; returns the rows of your query. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x). A result of more than 25,000 rows is not cut off - the whole query
fails with an error - so aggregate (GROUP BY, count) or add a LIMIT of at most 25,000.
Ada tx flow
Full flow of one or several Cardano (ada, ADA, cardano) transactions, per asset: every INPUT
(payer address and amount; staking-reward withdrawals appear as inputs from a stake1... address
with Note withdrawal, a returned stake deposit with Note stake_deregistration), every OUTPUT
(receiver and amount; a staking deposit is an output to the stake1... address with Note
stake_registration, other protocol deposits are outputs with an empty Address and Note deposit),
tokens MINTED or BURNED (Side=mint, a burn has a negative Amount) and the transaction FEE
(Side=fee, in ADA). THE hop primitive for Cardano tracing: follow a receiver to its own spends
(ada_sent_from_address) and repeat.
Outputs are not labeled as change (Note not_change / unknown on ordinary outputs): an output
back to one of the transaction's input addresses, or to an address with the same Stake_Key, is
the payer's change, not a recipient.
One row per asset: an output carrying ADA and two tokens is three rows with the same Position.
Per transaction and asset the rows balance: for ADA, inputs = outputs + fee; for a token, inputs
+ minted (burns negative) = outputs. ADA amounts are in ADA, not lovelace. A token amount is
scaled by the token's registered decimals when they are known (Decimals > 0); most tokens have
none registered, and their amounts are raw on-chain units. Never USD - for the ADA price use
currency_price with currency_id "ada". Stake_Key (stake1...) is the staking credential of a base
address: different payment addresses that share one Stake_Key almost always belong to the same
wallet. Byron (Ae2... / Ddz...) and enterprise (addr1v... / addr1w...) addresses have none.
tx_hash is the 64-hex transaction id as returned by the other ada tools; pass up to 50 separated
by "|" - the Tx column attributes each row. currency="" (default) returns every asset. No
address labels are returned here: identify the inputs and outputs with
labels_for_addresses(chain='cardano') in one call; an empty answer there is a coverage gap,
not a clean address.
Ada wallet ledger
WALLET LEDGER of a set of Cardano (ada, ADA, cardano) addresses - one row per transaction AND
asset that touches the client's addresses, NETTED over the whole set: what the set received,
what it spent and the difference, so change paid back to one of the client's own addresses is
neither income nor a payment. Built for accounting and tax ledgers, wallet statements and
reconciliation. NOT one address's raw outputs or inputs - use ada_address_received /
ada_sent_from_address; NOT the addresses inside one transaction - use ada_tx_flow.
Pass EVERY payment address of the wallet in `addresses` (up to 50 per call). Netting covers
only the addresses passed, and Cardano outputs are never labeled as change, so an address of
the same wallet that is left out looks like an outside party - its change shows as a payment
out and its inputs as someone else's (Fee_Shared = 1 is the usual sign). There is no lookup by
stake key: collect the wallet's addresses first (ada_related_addresses, and the Stake_Key
column of ada_tx_flow marks addresses of the same wallet).
One row per asset: a transaction moving ADA and two tokens is three rows sharing Tx; a token that
only passed through (spent and received back in full, as change) is not listed. Amounts of
different assets are never added together. Received / Spent / Net are in the asset's units (ADA,
not lovelace; a token is scaled by its registered decimals when Decimals > 0, else raw on-chain
units); Received_Raw / Spent_Raw / Net_Raw are the exact on-chain integers as strings (lovelace
for ADA) - use them when every digit matters. Net = Received - Spent, negative on a payment.
Direction is the transaction's, the same on all its rows: in (the set funded no input - a
receipt), out (the set funded inputs and at least one output went elsewhere), self (the set
funded inputs and every output came back to it - only the fee left).
The fee columns are on the ADA row only. Fee_ADA is the fee of the whole transaction;
Fee_Paid_ADA the set's part of it: all of it when the set funded every input, nothing when it
funded none, and - when other addresses funded inputs too (Fee_Shared = 1) - the fee split by
ADA input value (Input_Share; fee x spent / all inputs, rounded half up to a whole lovelace),
which is an estimate - what the other parties paid is Fee - Fee_Paid. On an outgoing payment
the ADA that went to others is -Net - Fee_Paid. Staking is visible on the ADA row too: Tx_Withdrawal_ADA is the
staking reward the transaction withdrew into its outputs (it arrives as part of Received - that
is when a reward becomes visible; rewards are not listed as they accrue), and Tx_Deposit_ADA a
deposit the transaction paid (positive, e.g. 2 ADA to register a stake key) or got back
(negative). Stake / reward addresses are not ledger addresses and are not accepted.
Price_Usd is the USD price of ADA at the start of the transaction's hour (hourly market data),
on ADA rows only; Value_Usd = Net x Price_Usd, signed like Net, and Fee_Usd = Fee_Paid x
Price_Usd. Price_Status: ok; no_price (no market price for that hour - the newest hour or two
have none yet - or a token row: tokens are not priced here; the USD columns are null, never a
guess and never today's price); suspect (the price is more than twice, or less than half, the price
one day earlier AND one day later - a likely data glitch, so Value_Usd and Fee_Usd are left empty).
Rows come newest first in block order (Block, Tx_Index), ADA first inside a transaction. `limit`
counts TRANSACTIONS, so a page can hold more rows than limit. The window is the last `days`
(default 365), or after_time ... before_time for a fixed period such as a tax year. Page with
cursor: pass the Cursor of the LAST row, with every other argument unchanged, to get the next
older page. after_time and before_time bound every page, so no page leaves the period. With
after_time set, a page with fewer transactions than `limit` is the end of the period; without it
each page looks `days` back from its cursor, so a walk continues into older history until a page
comes back short.
currency="" (default) lists every asset, "ADA" the
coin only, a numeric Currency_Id one token. Addresses_Requested / Addresses_Used on every row
say how many distinct addresses were passed and how many were read. No rows = no transaction of
these addresses in the window. Counterparties are not listed: pass a Tx to ada_tx_flow.
SCAN COST grows with the window and with the number of addresses, not with limit: prefer a
fixed period to a very large `days`. A window in which the addresses have more than 200,000
input or output records is refused - narrow it.
Addresses by label
List blockchain ADDRESSES that carry a specific label — e.g. every
`cex-deposit-address` = 'binance-deposit', every `category` = 'DEX',
every `scam` / `mixer` / `sanctioned` address. Use for "give me every
address tagged X" or to build an address set for other tools: pass the
returned addresses to trader_profile / trader_positions for their trading,
or to the <chain>_ tracing tools for their transfers. Labels cannot be
joined to trading data in SQL. For the reverse question (which traders of
a token carry a label), call top_traders_by_token and pass its wallets to
labels_for_addresses. Discover valid label_type / label_value pairs first
with `find_label_values`.
Backed by directory.labels (indexed by label_type + label_value, so this
is fast). label_value is matched exactly. Pass chain='' for all chains.
One row per chain + address: Sources lists every source that recorded this label for it,
Source_Count how many, recorded_at the newest record (a source whose name contains
"heuristic" was inferred from transfer patterns; sanctions lists, official disclosures and
verified sources are curated).
A label can carry far more addresses than one page holds: page through them by
passing the Cursor of the LAST row as cursor; a page shorter than limit is the last one.
Address labels
Look up all known LABELS for a blockchain ADDRESS — entity, category,
CEX deposit/hot wallet, mixer, gambling, scam, token-clone, contract
type, NFT collection, ENS, … Works for both wallets and token/contract
addresses. Use for "what / who is this address", "is this token a scam or
a clone", "is this wallet a CEX or mixer". To label MANY addresses at once
use `labels_for_addresses`; to list every address carrying a
label use `addresses_by_label`; to resolve a human name to a stored value
use `find_label_values`.
Backed by the Bitquery address-label directory (directory.labels).
Coverage: token/contract labels are dense on EVM (Ethereum, BSC, Polygon);
exchange deposit / hot-wallet labels are broad on the EVM chains and Tron;
wallet (EOA) labels are densest on Tron and Bitcoin; mixer labels exist
essentially only for Bitcoin, and sanctioned / darknet tags sit mostly on
Bitcoin, Tron and Ethereum. Pass chain='' (the default) to search every chain —
recommended on EVM, where one address is the same owner on every chain and its
label may be stored under a different one.
Tracing note: MOST tracing rows carry NO label field, so this call is what puts a name
on a counterparty. On Ethereum, BSC, Polygon, Arbitrum, Base, Optimism, Tron, the XRP
Ledger, Stellar and Cardano NONE of the transfer / flow tools return a label — always
look the address up here (or pass the whole counterparty list to `labels_for_addresses`).
Only the Solana tools (address_flow_summary, flow_edges, trace_next_hop, transfers_in/out)
and the Bitcoin-style tools of Bitcoin, Zcash, Litecoin, Dogecoin, Dash and Bitcoin Cash
(address_profile, address_flow_summary, flow_edges, related_addresses, tx_flow) carry an
inline label field at all, and even there it is SPARSE on Solana and EMPTY on every other
chain (the inline list holds none of their addresses — batch those addresses into
labels_for_addresses) — never treat a blank inline label as "unlabeled", always confirm
it here. On the XRP Ledger (chain='ripple'), Cardano
(chain='cardano'), Stellar (chain='stellar'), Litecoin (chain='litecoin') and Bitcoin Cash
(chain='bitcoin-cash') the directory is sparse, mostly exchange reserve wallets; Dogecoin
(chain='dogecoin') holds about 40,000 addresses, almost all exchange reserve wallets. Most
Bitcoin Cash entries are stored in the old 1… / 3… address form, so a CashAddr (q… / p…)
lookup finds only a few of them.
Robinhood, Zcash, Dash and Arc have no label coverage at all, so an empty result there is a
coverage gap, not a finding. An empty result while find_label_values shows rich coverage (e.g.
'binance') is a meaningful NEGATIVE signal, not missing data.
One row per chain + label_type + label_value; recorded_at is the newest record of it.
Several sources can record labels for one address. Rows that agree are merged: Sources
lists every source behind a label and Source_Count how many there are. Labels that disagree
stay separate — typically the same entity in different roles, e.g. cex-deposit-address AND
cex-hot-wallet for one exchange, or a token-contract next to a token-clone. Such a conflict
comes from different sources; weigh it by Source_Count and by the kind of source: sanctions
lists (ofac, uk-ofsi, eu-sanctions …), official proof-of-reserves disclosures and verified
sources are curated, while a source whose name contains "heuristic" was inferred from
transfer patterns (broad, less certain) — trust the entity they agree on, and prefer the
curated role when they differ.
Source names: workflow:<name> is a Bitquery labelling pipeline - curated imports such as
sanctions and issuer block lists, proof-of-reserves disclosures, research sets and
label-provider enrichment - except that a name containing "heuristic" marks labels
inferred from transfer patterns (most exchange-deposit labels); labels-query-service:<provider>
was fetched on demand from an outside label provider when the address was looked up (one
provider's view, not reviewed); a plain name is the dataset itself (ofac, uk-ofsi,
eu-sanctions, japan-mof, france-gels and israel-nbctf are sanctions lists; walletexplorer and
bitcoinabuse are public Bitcoin datasets), and a name containing "verified" is a reviewed
import.
Address risk report
ADDRESS RISK REPORT / AML risk score with evidence: one call returns a compliance risk report for a
Tron, Bitcoin or Ethereum address - a 0-100 score with its formula and weights, the labelled entities it received funds
from and sent funds to (entity type, amounts, shortest path in hops and the transaction hash behind
each), its exposure by entity type (sanctioned entities, exchanges, gambling, scams, mixers and
the rest of a 26-type profile), and flags: direct sanctions contact, address poisoning look-alikes,
pass-through behaviour, dust from high-risk addresses, risky counterparties in other assets.
NOT the labels of one address -> use address_labels / labels_for_addresses; NOT a list of its
counterparties without a score -> use tron_address_flow_summary.
The score also carries a coarse band for reading at a glance: none at 0, low below 25, medium 25 to
49, elevated 50 to 74, high 75 and up.
By default it traces funds two hops back from what the address received and forward from what it
sent (view all, max_hops 2) on Tron and answers within about 50 seconds; on Bitcoin and Ethereum the
report is the direct view only. view direct reports only
the address's own counterparties and is fast. A search cut by its time limit says so (complete
false) and lists what it did not follow. Funds that reach no labelled entity are unattributed and
carry their own weight; with no labelled exposure
the answer says "no exposure found in our labels" - never that the address is clean, since labels
cover only part of the chain. Amounts are in the report asset (by default the asset the address
moved the most of in USD, else the one with the most transfers); transfers worth min_amount_usd or
less are left out of the connections and never set the risk-score floor, as a dust guard. Every
connection names its label source and
its class (sanctions list, curated, vendor, heuristic, ...). Before it reads their 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, within the report's time limit;
the addresses past 100 are read as stored. The step is the labels_refresh line of the cost. The
frozen-stablecoin check is not available yet and reads not_evaluated. The answer also returns the parameters used, the cost of
the report (statements, rows and bytes read) and timing_ms; data_as_of is the moment every
figure in the report is taken at. The USD price in usd_conversion is read at the top of an hour and
can trail the current hour by up to about 30 minutes while the feed catches up, so two reports minutes
apart may cite different price hours; the difference is immaterial to the thresholds.
By default the answer is a concise report to read (text); ask format json for the full object. A transfer
to the address's own entity is marked same_entity and left out of the score (it is kept in the
connections and the breakdown, so a breakdown percentage can be larger than the entity type's share of
the score, which counts only the flow to other entities). When many address-poisoning look-alikes are
found only the largest are listed, with the total and how many were omitted. With no labelled
counterparty but risk flags present, exposure reads "no labelled exposure in the scored flow - see
flags".
Arbitrum address flow summary
ADDRESS FLOW SUMMARY / top counterparties: who an Arbitrum (arb, ARB, Arbitrum One, L2) address sends funds TO and receives funds FROM, in one call — profile
(sent/received transfer counts, distinct receivers/senders) + TOP receivers AND TOP
senders. Collapses address_profile + trace_next_hop(out) + an incoming convergence
into a single call — call this FIRST when triaging a hop. Returns a computed Role:
receive_only (no outgoing transfer in the period) / send_only (no incoming one) /
no_transfers (neither) / consolidator (senders ≫ receivers) / distributor (receivers ≫
senders) / hub (thousands of both — don't trace deeper) / relay. The profile counts
and Role ALWAYS cover all tokens: currency and contract narrow only the top arrays
(arbitrum_address_profile applies them to every count). Pass the returned counterparties to
labels_for_addresses to identify them. For raw rows use arbitrum_transfers_in/out; for
one direction's full ranking use arbitrum_trace_next_hop. READING THE TOP ARRAYS: one
entry per (counterparty, TOKEN) — the same address repeats once per token it moved.
Symbols are not unique; identify a token by `contract`. On a very high-traffic address
(an exchange or bridge hub) this aggregates a lot of history and can take tens of
seconds — narrow it with contract or currency to one token to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
after_time / before_time bound BOTH the profile counts and the top arrays to one period
(without them both cover the whole history).
Counts and arrays are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with arbitrum_tx_transfers, then trace that address
(arbitrum_transactions lists where this account's transactions go).
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Arbitrum address profile
Arbitrum (arb, ARB, Arbitrum One, L2) address STATISTICS — successful transfer counts out/in and distinct
counterparties (receivers/senders), across all tokens. Fast triage of an address
during tracing. For one-call triage that ALSO returns the top counterparties,
prefer arbitrum_address_flow_summary.
Role from the ratio (cheap triage before flow_edges): senders ≫ receivers =
consolidator / sweep; receivers ≫ senders = distributor; ~1↔1 = relay (layering);
thousands of both = mega-hub (exchange / treasury — don't trace deeper). No outgoing transfers at all =
receive-only and no incoming = send-only, not a consolidator / distributor.
First_Sent / Last_Sent / First_Received / Last_Received = first and last transfer in each
direction. Bound a period with after_time / before_time; restrict to one token with
contract (or currency) to also get Sent_Amount / Received_Amount in that token's units -
without a token filter the amounts are NULL, because different tokens cannot be added.
currency / contract (like after_time / before_time) narrow EVERY count, time and
amount here - unlike arbitrum_address_flow_summary, whose profile counts always cover
all tokens.
The counts are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with arbitrum_tx_transfers, then trace that address
(arbitrum_transactions lists where this account's transactions go).
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Arbitrum contract creator
WHO CREATED an Arbitrum (arb, ARB, Arbitrum One, L2) contract, and what a creator deployed. Answers "who created / deployed
this token", "who is behind this contract", "what else did this deployer launch", and
"were these tokens made by the same person" (serial deployers, rug and clone farms).
NOT who funded a wallet → use arbitrum_first_funder.
On this chain a token IS a contract, so pass the TOKEN'S CONTRACT ADDRESS in contracts.
TWO WAYS TO CALL IT, pick one - setting both is refused, because the two answer different questions and their shared-creator counters would be mixed:
contracts="0x..|0x.." - up to 50 contracts, one row each: Creator (the address whose
code ran CREATE), Signer, Created_At, Block_Number, Tx, Deploy_Value, Gas_Used and
Deploy_Success. Rows whose creator or signer is SHARED come first: Creator_Shared /
Signer_Shared count how many of the requested contracts have that same creator / signer, which
is what exposes one person behind many tokens. A longer list is not an error: the first
50 distinct addresses are used and the rest ignored - compare Contracts_Requested
with Contracts_Used and split a longer list into several calls.
creator="0x.." - the contracts THAT address deployed, newest first, inside the window (days,
after_time, before_time), at most `limit` rows. Use it on the Creator or Signer a first call
returned, to see the rest of that deployer's output. Creator_Shared is empty in this form -
every row has the same creator by construction, so the counter would only repeat the row count.
Creator_Is_Contract = 1 means the contract was deployed BY OTHER CONTRACT CODE - a
token factory, a launchpad or a DEX pair factory - and then Creator is that factory, which is the
SAME address for every token it ever made, while Signer is the person who asked for it. On a
factory-made token read Signer, not Creator. Deploy_Depth is how deep inside the transaction the
deployment happened (0 = the transaction itself) and Call_Index is the deployment's position in
that transaction - one transaction can deploy several contracts, and Call_Index is what tells
those rows apart when everything else about them looks the same.
Status = NOT_FOUND means no deployment is recorded for that address: it is a plain wallet, not a
contract, or the deployment is older than the recorded history of this chain. Creations is
normally 1; a higher number means the address was created more than once (destroyed and
redeployed), and the row describes the EARLIEST creation.
THE CREATOR'S STORY IS NOT IN THIS TOOL - build it from the returned addresses:
labels_for_addresses (is the creator a known entity, exchange or scammer), arbitrum_first_funder
(who funded the creator, and whether several creators share one sponsor), arbitrum_address_profile
and arbitrum_transfers_in / arbitrum_transfers_out (what that wallet does), arbitrum_flows_between
(what moved between the creator and the token). The token's own name, symbol, price and market
cap come from find_token_by_address; its first buyers from early_buyers.
Amounts are the native coin, never USD. COST: a contract lookup has to walk every call that address
ever received, so a handful of ordinary tokens answer in a second or two while one exchange-scale
contract can take ~20 s on its own. If you already know roughly when the contract appeared, bound it
with after_time / before_time - that alone took one busy token from 21 s to 2 s. A row-limit error
("Limit for rows ... exceeded") means the batch is too busy: bound it that way, or split the list.
Arbitrum find calls
FIND SMART-CONTRACT CALLS of a specific (possibly rare) method on ONE Arbitrum (arb, ARB, Arbitrum One, L2)
contract — "who called method X on contract Y, when, did it succeed" in a
single filtered query.
NOT what one address signed or received → use arbitrum_transactions.
Returns up to limit calls (default 20, at most 10000), newest first; page back with the last row's
Cursor - each page covers the days window ending there.
Match by method NAME (e.g. "transfer"), full SIGNATURE
(e.g. "transfer(address,uint256)"), or raw 4-byte SELECTOR (e.g. "a9059cbb").
Includes internal calls, and reverted calls when only_successful=0 (with error text). Searches the LAST 7 DAYS by
default — set after_time to widen or shift the window.
Wide windows on very busy contracts can be slow — narrow the window or retry.
For value movements use arbitrum_transfers_out / arbitrum_transfers_in; for
event logs use arbitrum_find_events.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Calls inside one transaction come back in no particular order - sort them by
CallPath if you need execution order.
Each row carries the call's decoded input Arguments (Name, Type, Value; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). A method the decoder does not recognise has
no Arguments.
Value is the ETH attached to the call.
Each row: Tx, Time, Block, Caller, Method, Signature, Selector, CallPath, Value, Success, Reverted, Error, GasUsed, Cursor, Arguments, ArgumentCount, ArgumentsTruncated.
Arbitrum find events
FIND EVENT LOGS of a specific event on ONE Arbitrum (arb, ARB, Arbitrum One, L2) contract — "which X events
involved contract Y, when, in which tx" in a single filtered query. Match by
event NAME (e.g. "Transfer") or full SIGNATURE (e.g.
"Transfer(address,address,uint256)"), case-insensitive. `contract` matches
logs that contract EMITTED ITSELF (a proxy token is found by its public
address), plus — when it is a proxy's implementation — the logs its code
emitted for that proxy. Logs emitted by OTHER contracts it calls are NOT
included: a DEX router's swaps are logged by the pair/pool it calls, not by
the router, so contract=<router> with event=Swap returns NOTHING even when
the router executed thousands of swaps. An empty result for a router,
aggregator or smart wallet does NOT mean there was no activity. To get
those logs, pass the pair/pool (or token) address as `contract`; if it is
unknown, list the router's transactions with arbitrum_find_calls
(contract=<router>) and pass their Tx hashes (up to 50, "|"-separated) to
arbitrum_tx_events with event=Swap — its CallPath shows which call
produced each log.
Searches the LAST 7 DAYS by default — set after_time to
widen or shift the window.
Page back through history with cursor: pass the Cursor value of the LAST row of
a page to get the next one — unlike before_time it never skips rows that share a
timestamp, and a busy contract has hundreds of logs per second. The scan window
follows the cursor, so every page covers the same span of days.
Wide windows on very busy contracts can be slow — narrow the window or retry.
For decoded asset movements use arbitrum_transfers_out / arbitrum_transfers_in;
for the calls themselves use arbitrum_find_calls.
Each row carries the log's decoded Arguments (Name, Type, Value, Indexed; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). Parsed=0 rows have no Arguments. Argument NAMES
come from one known ABI for the Signature: a contract that emits the same Signature with
other parameter names gets those names too, so a Name can be wrong for this contract -
identify an argument by its position and Type, and check a doubtful one against the raw
Topics/Data. For raw
Topics/Data, or the rest of a cut list, pass the Tx to arbitrum_tx_events. Unrecognized events can be found here by `topic0`.
ONE ROW = ONE EVENT LOG. A contract can be called many times inside a single
transaction and each of those internal calls can emit its own logs, so the same
event name legitimately repeats within one transaction - that is NOT duplication.
Rows are told apart by CallIndex (which internal call emitted the log) together
with LogInCall (the log's position inside that call); that pair is unique within
a transaction. To COUNT events, count the returned rows - never de-duplicate on
Tx/Event/Emitter, which would merge genuinely different logs into one.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Rows inside one transaction come back in no particular order - sort them by
CallIndex then LogInCall if you need emission order.
Arbitrum first funder
FIRST FUNDER / COMMON SPONSOR of up to 50 Arbitrum (arb, ARB, Arbitrum One, L2) addresses: for each address the
EARLIEST incoming transfer INSIDE THE WINDOW (by default the last 180 days - not necessarily
the first ever, see WINDOW) - who sent it (Funder), who signed that transaction (Tx_From), when
(First_Time), how much of which token, and the Tx. Answers "who funded these wallets" and "do
these wallets share a sponsor" (sybil, sniper and airdrop-farming clusters).
NOT who deployed a contract → use arbitrum_contract_creator.
Pass the addresses separated by "|". A longer list is not an error: the first 50 distinct addresses are
used and the rest are ignored - every row reports Addresses_Requested / Addresses_Used, so compare
them and split a longer list into several calls. One row per used address, and rows whose funder is shared come FIRST:
Funder_Shared = how many of the requested addresses have that same first funder,
Tx_From_Shared = the same count for the transaction's signer - it catches wallets funded
through a public batch-sending contract, where Funder is the contract and the signer is the real
sponsor. Funder_In_Set = 1 when the funder is itself one of the requested addresses (a funding
chain). Via_Internal_Call = 1 marks funding sent by contract code deeper inside a transaction; the transfer a transaction makes itself is top-level, so it reads 0. Incoming_In_Window = how many qualifying incoming transfers the address had in
the window.
WHAT COUNTS AS FUNDING: by default native ETH only (asset_type="native"), including ETH sent by contract code (include_internal=1); set
asset_type="token" or "all", or pin one token with contract, to look at token funding instead.
Zero-amount transfers, mints and self-transfers never count; raise min_amount to skip dust.
WINDOW: the first funding INSIDE the last `days` days (default 180, at most 730)
ending at before_time or now, or starting at after_time within the same limit.
Status = FIRST_IN_WINDOW: the earliest qualifying funding between Window_From and Window_To. It is
the address's first-ever funding ONLY if the address had no activity before Window_From, and this
tool does not check that. To check one address, compare First_Time with the First_Received of
arbitrum_address_profile for it (an earlier First_Received means it already received something
before the window). To look further back, call again with before_time set to the row's
Window_From. Status = NO_INCOMING_IN_WINDOW means nothing qualifying
arrived in the window: call again for those addresses with before_time set to their Window_From
to look further back.
COST grows with the number of addresses times the length of the window: for dozens of
addresses keep days at 180 and page back with before_time rather than widening
days. A row-limit error ("Limit for rows ... exceeded") means an address in the list is too busy (an
exchange, bridge or popular contract) or the window is too long - drop that address or shorten
days. Amounts are TOKEN UNITS, never USD. To identify funders, pass them to
labels_for_addresses; to see everything that moved between the funders and the wallets, use
arbitrum_flows_between.
Arbitrum flow edges
MONEYFLOW GRAPH EDGES out of an Arbitrum (arb, ARB, Arbitrum One, L2) address: one row
per counterparty — Source → Target, total Amount, Currency. Building block for a
MoneyFlow DIAGRAM. HOW TO DRAW: call this per address/hop, collect the edges, and emit
a Mermaid `graph LR` (one node per address; each edge labeled with Amount+Currency).
NOT choosing which counterparty to follow next → use arbitrum_trace_next_hop.
Pass the Target addresses to labels_for_addresses to flag CEX / mixer / bridge nodes
and STOP expanding those branches. Pass a currency to avoid spam-token noise; call
WITHOUT a currency filter to spot a token → USDT off-ramp at the edge. For raw
per-transfer rows use arbitrum_transfers_out. Each edge carries the token Contract —
pin one exact token with the contract param. On a very high-traffic address (an
exchange or bridge hub) this aggregates a lot of history and can take tens of seconds
— narrow it with contract or currency to one token to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
Bound one period with after_time / before_time. First_Seen / Last_Seen give each
edge's first and last transfer.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Arbitrum flows between
FLOWS BETWEEN TWO ADDRESS SETS on Arbitrum (arb, ARB, Arbitrum One, L2): every successful transfer (tokens and native
ETH) from any address of set A to any address of set B, and back, in ONE call - "did these
wallets ever pay those wallets", "how much moved between my suspects and the exchange
wallets", "which of these deposit addresses sent to that hot wallet". Pass up to
50 addresses per set separated by "|" (0xabc…|0xdef…). A longer list is not an error:
the first 50 distinct addresses of each set are used and the rest are ignored -
every row reports A_Addresses_Requested / A_Addresses_Used and B_Addresses_Requested /
B_Addresses_Used, so compare them and split a longer set into several calls. Leave addresses_b EMPTY to get every
counterparty of the A set, both directions, grouped per A address - the multi-address form of
arbitrum_flow_edges.
mode="summary" (default) returns one row per (Direction, Sender, Receiver, token) with
Transfers, total Amount, First_Time, Last_Time and the latest Tx, ordered by `sort`.
mode="rows" returns the individual transfers newest first; page with cursor: pass the Cursor
value of the LAST row, with all other arguments unchanged, to get the next page (a summary row
carries no Cursor). A rows-mode row is a LEDGER LINE: besides the amount it carries Amount_Raw (the
exact integer amount in the token's smallest unit) with Decimals, Block and Tx_Index, and Price_Usd
(the token's USD price at the time of the transfer), Value_Usd = Amount x Price_Usd and
Price_Status - "ok"; "no_price" = no price is known for this token at that time, so Price_Usd and
Value_Usd are empty (never read that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check it with
price_at. ETH and the major tokens are priced to 5 minutes, every other token has ONE price per day, so the value of a small token is approximate. On a summary row those seven columns are empty: a total over a
period has no single price. Self = 1 (both modes) marks a movement whose counterparty is another
address of set A - a move inside the set, not income and not spending.
Direction A_TO_B = sent by an A address to a B address, B_TO_A = sent by a B
address to an A address; an address listed in both sets appears in both directions. With
addresses_b empty the same holds for a transfer between two A addresses: it is listed as A_TO_B
for its sender AND as B_TO_A for its receiver, so never add rows of both directions together.
WINDOW: the last `days` days (default 30, at most 366) ending at before_time, or now;
after_time sets the start instead, within the same 366-day limit. Window_From / Window_To
on every row show the range searched; for an older period set before_time. An empty result means
no transfer between the sets in that window.
COST: the search is keyed on set A, so put the SMALLER and less busy set in addresses_a -
individual wallets, not exchange hot wallets, bridges or token contracts. If the call fails
with a row-limit error ("Limit for rows ... exceeded"), swap the two sets, shorten days, or
split set A. Cost also grows with the number of addresses in set A times the window.
Each row carries the token Contract (empty for native ETH); a symbol alone can match
look-alike clones, so pin one token with contract, or restrict to native or tokens with
asset_type. Amount is in TOKEN UNITS: totals of different tokens must not be compared or added
together, there is no usd filter (min_amount is in token units), and sort="amount" is only
meaningful with one token pinned. To identify the addresses, pass them to
labels_for_addresses.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Arbitrum native balances
NATIVE COIN BALANCE of up to 50 Arbitrum (arb, ARB, Arbitrum One, L2) addresses you ALREADY HAVE: each address's
current ETH balance (the coin that pays gas) - for filtering a known set of wallets down to the funded
ones, e.g. an airdrop cohort.
To discover holders you do not have yet, use arbitrum_token_holders. NOT one address's transfer history → use arbitrum_address_flow_summary.
Pass the addresses separated by "|" (0x..) - up to 50; addresses after the
50th distinct one are ignored (compare Addresses_Requested with Addresses_Used), so split
a longer list into several calls.
WINDOW: only balances UPDATED within the last `since_days` days (default 7) are read, so an address
that has not moved its native coin in that window returns NO row. Use the same window you searched for
activity - e.g. the window of arbitrum_token_senders - because an active wallet's balance is always
fresh there; a wider window costs more for no gain on active wallets.
Native_Balance is in ETH (18 decimals); Native_Balance_Raw is the exact integer amount (wei);
Balance_As_Of is when that balance was last updated. To identify the addresses, pass them to
labels_for_addresses.
Each row: Address, Native_Balance, Native_Balance_Raw, Balance_As_Of, Addresses_Requested, Addresses_Used.
Arbitrum token holders
TOP HOLDERS of an Arbitrum (arb, ARB, Arbitrum One, L2) token by CURRENT on-chain balance — holder address +
balance, largest first. Use for token analysis: whales, holder concentration,
distribution. Pass the token CONTRACT address (not a wallet). Label the returned
holders with labels_for_addresses to spot CEX / team / LP / bridge wallets. This is
real on-chain balance, NOT DEX-trade PnL — for trader profitability use
profitable_traders_by_token / trader_positions. Balances exclude NFTs (fungible only).
SCOPE. days=0 (default) ranks EVERY holder over the token's whole history, and
Holders_In_Window is then the token's holder count (positive balances). A very
widely held token - a major stablecoin, for example - has too much history for that:
the call answers at once with one Status=TOO_LARGE row instead of timing out. Then
call with days=30 (days=7 if that is still TOO_LARGE): it ranks the holders whose
balance CHANGED in that window, and their balances are still exact current balances.
A holder that did not move the token in the window is absent, so on such a token the
page is the top of the ACTIVE holders, not a guaranteed global top. To reach quieter
holders pass Next_Cursor as cursor: each page covers the next older window of `days`
and lists only holders whose LAST balance change falls inside it, so no holder
appears on two pages and the top N of all pages merged is the global top N. Each
page also checks all later activity up to today, so paging far back on a very busy
token ends in TOO_LARGE - stop there and say the list covers only the windows read.
Next_Cursor is empty when the token has nothing older. Window_From / Window_To are
the dates a page covers (Window_From empty = whole history). A row with an empty
Holder is a status row: read Status (TOO_LARGE / NO_HOLDERS / BAD_CURSOR).
Balance is in the token's OWN units, never USD - no USD value is available in
this data, so there is no usd filter and balances of different tokens are not
comparable. `Decimals` gives the scale. Holders whose recorded balance is NEGATIVE
are dropped and counted in Negative_Balances_Excluded: the transfer history behind
them is inconsistent (typically a transfer recorded twice or missing), so that
balance cannot be trusted - and the same kind of error can inflate a positive
balance of that token. A balance far above the token's total supply is such an
artifact, not a whale: check it with token_supply or the holder's transfers before
reporting it.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
Arbitrum token senders
TOKEN SENDERS COHORT on Arbitrum (arb, ARB, Arbitrum One, L2): the addresses that SENT a given token at least `min_transfers`
times inside a time window, most recently active first - "wallets that actively use this token",
"build a cohort or airdrop list of recent senders of this token".
NOT one wallet's own outgoing transfers → use arbitrum_transfers_out.
This counts SENDERS of the token, one row per sender; it does not value or label them - pass the
returned addresses to labels_for_addresses, and to arbitrum_native_balances to keep only funded
wallets. By default only normal user wallets (EOAs) that sent the token in their OWN transaction count (eoa_only=1); set eoa_only=0 to include contract senders.
Pass the token's CONTRACT address in token (0x-hex (case-insensitive)); a symbol also matches clone tokens, so
pin the exact contract.
WINDOW: the last `days` days (default 1, at most 30) ending at before_time or now;
after_time sets the start instead. A sender must reach `min_transfers` sends WITHIN this window, so a
short recent window keeps only clearly-active wallets - the recency the cohort wants. There is no
full-history mode: to go further back, page with before_time.
PAGING: newest-active first, at most `limit` rows. If the result has `limit` rows there may be more -
set before_time to the oldest Last_Transfer_Time returned and call again, then combine and
de-duplicate the pages.
COST grows with the token's volume times the window: widen `days` step by step. A row-limit error
("Limit for rows ... exceeded") means the token is too busy for that window - shorten days.
Each row: Address, Transfers, First_Transfer_Time, Last_Transfer_Time.
Arbitrum trace dominant path
AUTO-WALK the dominant (largest-total-amount) OUTGOING edge of ONE token from an
Arbitrum (arb, ARB, Arbitrum One, L2) address, hop by hop, up to 5 hops — collapses ~5 manual
arbitrum_trace_next_hop calls into one. Every hop returns Hop*_To (the address that
received), Hop*_Token (the contract of the token that moved) and Hop*_Edge_Total, plus
Hops_Found (how many hops resolved) and Path_Status for the walk itself.
Hop*_Edge_Total is NOT the amount that travelled along the path: it is the ALL-TIME
total of EVERY transfer of that token between that hop's sender and receiver, so it
can be orders of magnitude larger than the sum you are tracing and the hop totals are
not comparable with each other. To break one edge down — its transfer count
(Transfers), first/last seen, and the full ranking of that address's edges — call
arbitrum_trace_next_hop on the hop's sender.
The walk NEVER goes back to an address it has already visited (the seed included), so
it cannot bounce back and forth between the same two wallets — each hop is the largest
edge to a NEW address.
READ Path_Status FIRST — NO_MATCH means the token filter matched nothing (wrong symbol,
or that symbol belongs to a different token — pass `contract`), PATH_END means the
trail really ran out, DEPTH_LIMIT means it may continue past hop 5. All-NULL hops with
NO_MATCH are a filter problem, not a dead end.
Pass the hop addresses to labels_for_addresses and read down to the FIRST labeled
address (CEX / mixer / bridge) — that's the destination.
Pin the token with `contract` whenever you know it — a SYMBOL is not unique, clone
tokens reuse popular symbols, and with a symbol alone the hops can drift between
look-alike tokens; compare the per-hop token contract to spot that.
LIMITS: follows only the single biggest edge per hop (misses splits / fan-outs), fixed
depth 5, and transfers to the burn address are not followed. For branching / adaptive
tracing call arbitrum_trace_next_hop hop by hop, identify each hop with
labels_for_addresses and choose the next address yourself (prompt_playbook with
playbook=money_flow returns the full step-by-step procedure); for one hop's full ranking use
arbitrum_trace_next_hop. Heavy multi-hop walk — can time out on a very busy address; retry,
or narrow it with `contract` / a less-busy token.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Arbitrum trace next hop
CONVERGENCE primitive for Arbitrum (arb, ARB, Arbitrum One, L2) tracing: aggregate an
address's OUTGOING flow by counterparty (Σ amount, count, first/last seen), largest
first. Answers "where did the bulk of the funds go" in one shot. Narrow with currency
(recommended), after_time (= when funds reached this hop), min_amount. Pass the top
counterparties to labels_for_addresses to spot a CEX / mixer / bridge (= the
destination, stop there). One row per (counterparty, TOKEN); identify a token by
Contract, not Currency. On a very high-traffic address (an exchange or bridge hub)
this aggregates a lot of history and can take tens of seconds — narrow it with
contract or currency to one token, and with after_time to one period, which is far
faster than one wide call.
NOT edges for a diagram → use arbitrum_flow_edges.
NOT an automatic walk along the largest edge → use arbitrum_trace_dominant_path.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Returns up to top_n rows (default 10, at most 10000), largest Total_Amount first; no rows = nothing matched.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Each row: Counterparty, Currency, Symbol_NonAscii, Contract, Total_Amount, Transfers, First_Seen, Last_Seen.
Arbitrum transactions
TRANSACTION HISTORY of an Arbitrum (arb, ARB, Arbitrum One, L2) address — every transaction it
sent or received directly (its own From or To; a token it received inside
someone else's transaction is in arbitrum_transfers_in), newest first, paginated.
Page back with `before` = the last Tx of the previous page (returns strictly
OLDER transactions; an unknown hash yields an empty page). `until` = only
transactions NEWER than that tx. NOT a token-transfer list — for asset flows
use arbitrum_transfers_in / arbitrum_transfers_out; to inspect one
transaction's transfers use arbitrum_tx_transfers.
Value and Fee are in ETH.
Each row also carries the exact fee: Fee_Wei is the fee in the smallest unit as a decimal
string (Fee is the same amount in ETH, rounded to 8 decimals); Fee_Usd is its value at the
ETH price at the time of the transaction. Fee_Price_Status says how far to trust that
price: ok; no_price (Fee_Usd is empty - never read it as zero); suspect (the price is more than twice, or less than half, the price a day earlier AND a day
later - a likely data glitch, so Fee_Usd is left empty). A
failed transaction (Success = 0) still paid its fee: treat it as a fee-only row.
The fee was paid by the sender (From): count it for this address only on rows where From is the address.
Fee_Status is ok on this chain.
Returns up to limit transactions per page (default 25, at most 10000), newest first, failed transactions
(Success = 0) included unless only_successful=1; a page shorter than limit is the last one.
An unknown `until` hash is not applied (no lower bound); `before` and `until` together bound one range.
With after_time / before_time only that period is read, so the cost follows the period, not the
address's whole history; pass the same pair with every page.
Each row: Tx, Time, Block, TxIndex, From, To, Value, Success, Fee, Fee_Status, Fee_Wei, Fee_Usd, Fee_Price_Status.
Arbitrum transfers in
INCOMING Arbitrum (arb, ARB, Arbitrum One, L2) transfers to an address — where this
wallet received funds from.
NOT the opposite direction → use arbitrum_transfers_out.
NOT totals per sender → use arbitrum_address_flow_summary.
Returns up to limit transfers (default 20, at most 10000), newest first by default; page back with the
last row's Cursor.
Use to
trace the source of funds backwards. For an address with many transfers set min_amount
or sort='amount', else large sources hide behind recent dust. Query WITHOUT a currency
filter to see where the bulk of funds originated. To identify counterparties,
pass the returned addresses to labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. ETH and the major tokens are priced to 5 minutes, every other token has ONE
price per day, so the value of a small token is approximate. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
Each row: Time, Sender, Currency, Symbol_NonAscii, Contract, Amount, Internal, Tx, Cursor, Amount_Raw, Decimals, Block, Tx_Index, Price_Status, Price_Usd, Value_Usd.
Arbitrum transfers out
OUTGOING Arbitrum (arb, ARB, Arbitrum One, L2) transfers from an address — where this
wallet sent funds. Narrow with after_time (flows after funds arrived), currency
(follow one asset), min_amount (drop dust). For an aggregated "where did the bulk go"
view use arbitrum_trace_next_hop; for incoming use arbitrum_transfers_in. For an
address with many transfers set min_amount or sort='amount', else large counterparties
hide behind recent dust. Query WITHOUT a currency filter to surface the token → USDT
off-ramp. Page back through history with cursor: pass the Cursor value of the LAST row
of a page to get the next one — unlike before_time it never skips rows that share a
timestamp. To identify counterparties, pass the returned addresses to
labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. ETH and the major tokens are priced to 5 minutes, every other token has ONE
price per day, so the value of a small token is approximate. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
Arbitrum transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Arbitrum transfers database. The
Bitquery MCP specialized arbitrum_* tools are the PRIORITY; use this ONLY when none of them
can answer (e.g. an uncovered table). No query optimizer here — naive SQL full-scans
huge tables and JOINs time out.
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
FAST-QUERY RULES: filter on the indexed key tables — `arbitrum_api.transfers_sender` (by
sender / outgoing), `arbitrum_api.transfers_receiver` (by receiver / incoming),
`arbitrum_api.transfers_tx` (by tx hash); NEVER JOIN big tables — use `WHERE col IN (SELECT …)`
(use `GLOBAL IN` when the subquery is referenced inside another subquery, otherwise its
result is not available where it is used). A subquery that itself reads a transfers table (`IN (SELECT Transfer_Sender FROM …transfers_… WHERE …)`) is re-run for every shard and rescans that table — run it as its OWN query first, then pass the result back as a literal list (`IN (unhex('a'), unhex('b'))`). To filter transfers by a specific token, read `transfers_currency` (keyed by the token contract + `Block_Time`); `transfers_sender` / `transfers_receiver` are keyed by address, so filtering those by a token contract scans the table.
Addresses are RAW BYTES `FixedString(20)` in `Transfer_Sender` / `Transfer_Receiver`
(there are NO plain string address columns) →
`Transfer_Sender = unhex(substring(lower('0x…'),3))`, output `concat('0x',lower(hex(col)))`.
Tx hash is `Transaction_Hash` `FixedString(32)` (same unhex/hex pattern).
A SET of hashes or addresses must have the column's exact type:
`Transaction_Hash IN (SELECT toFixedString(unhex(h), 32) FROM …)`, `toFixedString(…, 20)` for
an address. A plain `unhex(…)` set, or a JOIN on a String key, silently misses every value
ending in `00`; `=` and a literal list `IN (unhex('a'), unhex('b'))` are safe.
Currency symbol + decimals are INLINE columns (no dictionaries):
amount = `toFloat64(Transfer_Amount) / pow(10, Transfer_Currency_Decimals)`;
symbol = `Transfer_Currency_Symbol`; token contract = `Transfer_Currency_SmartContract` — itself RAW BYTES in a `String` column (not text), so filter it `= unhex('<40 hex, no 0x>')` and read it back `concat('0x',lower(hex(…)))`; a `'0x…'` text literal matches nothing.
Always add `AND Transfer_Success = 1`. `Transfer_Type`: 'token' = a token transfer,
'transaction' = a plain native-coin send, 'call' = native coin moved by a call. A
transaction's OWN value transfer is stored either as 'transaction' or as a 'call' with
`Call_Index = 0`; only a 'call' with `Call_Index != 0` is an INTERNAL transfer (made by
contract code deeper inside the transaction). For top-level transfers filter
`(Transfer_Type IN ('token','transaction') OR (Transfer_Type = 'call' AND Call_Index = 0))` -
`Transfer_Type IN ('token','transaction')` alone drops a large share of ordinary sends. Time =
`Block_Time`. Date-time values come back as ISO-8601 UTC, e.g. 2026-09-21T15:04:18Z (toString() of a date-time gives 2026-09-21 15:04:18). Other `arbitrum_api.*` tables (calls, transactions, balances) are reachable with
an explicit db prefix. Counterparty labels are NOT in this database — use
labels_for_addresses. Read-only; always add a LIMIT of at most 10,000 — a larger answer fails with an error, so aggregate (GROUP BY, count) instead. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x).
Exact table and column names first: chain_list_tables, chain_describe_table and chain_search_columns with database=arbitrum_api.
Arbitrum tx events
ALL EVENT LOGS in one or more Arbitrum (arb, ARB, Arbitrum One, L2) transactions,
including decoded arguments plus raw topics and data. Use after arbitrum_find_events
identifies a transaction, or whenever a tx receipt's complete event payload is needed.
NOT the value moved in a transaction → use arbitrum_tx_transfers.
Accepts up to 50 transaction hashes separated by "|". `Parsed=0` means no ABI matched:
Event, Signature and Arguments can then be empty, but Topic0, Topics and Data remain
usable. Arguments are named objects with Name, Type, string Value and Indexed; integer
values are decimal strings to avoid JSON-number precision loss; use raw
Topics/Data for values wider than the decoded numeric fields. Argument names come from one known ABI for the Signature and can be another contract's wording - Topics and Data are the log's own. By default, reverted
call-frame logs, removed logs and failed transactions are excluded; set
only_successful=0 to inspect them with the returned status fields.
Arbitrum tx transfers
All token & native transfers inside ONE OR SEVERAL Arbitrum (arb, ARB, Arbitrum One, L2) transactions
(sender → receiver, currency, amount, calling method). Entry point for tracing
when you have a tx hash. BATCH: pass several hashes separated by "|" to inspect
them in one call — each row carries its Tx hash so the transactions stay apart.
NOT the event logs of a transaction → use arbitrum_tx_events.
For an address's flow over time use arbitrum_transfers_out / arbitrum_transfers_in.
To identify the addresses, pass them to labels_for_addresses.
FRESHNESS: transfers reach this data some minutes after the trade tools see a swap, so
a hash that trader_trades or tx_trades already shows can return NO rows here yet -
that is lag, not a missing transaction: retry in a few minutes.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
Arc address flow summary
ADDRESS FLOW SUMMARY / top counterparties: who an Arc (arc, ARC, Arc Network, Circle Arc) address sends funds TO and receives funds FROM, in one call — profile (sent/received
transfer counts, distinct receivers/senders) + TOP receivers AND TOP senders.
Collapses address_profile + trace_next_hop(out) + an incoming convergence into a
single call — call this FIRST when triaging a hop. Returns a computed Role:
receive_only (no outgoing transfer in the period) / send_only (no incoming one) /
no_transfers (neither) / consolidator (senders ≫ receivers) / distributor (receivers ≫
senders) / hub (thousands of both — don't trace deeper) / relay. The profile counts
and Role ALWAYS cover all tokens: currency and contract narrow only the top arrays
(arc_address_profile applies them to every count). Pass the returned counterparties to
labels_for_addresses to identify them. For raw rows use arc_transfers_in/out; for one
direction's full ranking use arc_trace_next_hop. READING THE TOP ARRAYS: one entry
per (counterparty, TOKEN) — the same address repeats once per token it moved. Symbols
are not unique; identify a token by `contract`. On a very high-traffic address (an
exchange or bridge hub) this aggregates a lot of history and can take tens of seconds
— narrow it with contract or currency to one token to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
after_time / before_time bound BOTH the profile counts and the top arrays to one period
(without them both cover the whole history).
Counts and arrays are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with arc_tx_transfers, then trace that address
(arc_transactions lists where this account's transactions go).
Each entry of the top arrays carries `native` (1 = the native coin) next to `contract`, so a
counterparty reached through both USDC interfaces appears as TWO entries; asset_type=usdc
keeps both, and their amounts do add up because each movement is listed once.
On Arc most USDC moves through contract code, so internal transfers are counted by default;
pass include_internal=0 for top-level transfers only. A transaction's own transfer is
top-level, not internal.
USDC ON ARC IS ONE ASSET WITH TWO INTERFACES that share a single balance: the NATIVE coin
that pays for gas (Native = 1, no contract, 18 decimals) and the ERC-20 token at
0x3600000000000000000000000000000000000000 (6 decimals). Each movement is listed once,
under the interface that carried it, so the two together are the address's USDC flow -
asset_type="usdc" selects both at once, and Contract tells you which interface a row used.
Over a thousand OTHER contracts on this chain print the symbol USDC too and they are
unrelated tokens: never identify an asset by its symbol, use Contract and Native.
System rows that only repeat a USDC movement already listed here are left out, so nothing
is counted twice.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Arc address profile
Arc (arc, ARC, Arc Network, Circle Arc) address STATISTICS — successful transfer counts out/in and distinct
counterparties (receivers/senders), across all tokens. Fast triage of an address
during tracing. For one-call triage that ALSO returns the top counterparties,
prefer arc_address_flow_summary.
Role from the ratio (cheap triage before flow_edges): senders ≫ receivers =
consolidator / sweep; receivers ≫ senders = distributor; ~1↔1 = relay (layering);
thousands of both = mega-hub (exchange / treasury — don't trace deeper). No outgoing transfers at all =
receive-only and no incoming = send-only, not a consolidator / distributor.
First_Sent / Last_Sent / First_Received / Last_Received = first and last transfer in each
direction. Bound a period with after_time / before_time; restrict to one token with
contract, or to the gas asset with asset_type=usdc, to also get Sent_Amount /
Received_Amount in that asset's units - a symbol alone is not enough when several assets
share it, and the amounts are NULL whenever more than one asset matched.
FOR AN ADDRESS'S USDC TURNOVER PASS asset_type=usdc: the native coin and the ERC-20 at 0x3600000000000000000000000000000000000000
are one asset here, they count as ONE in Sent_Assets / Received_Assets, and the amounts
come back filled.
asset_type / currency / contract (like after_time / before_time) narrow EVERY count, time
and amount here - unlike arc_address_flow_summary, whose profile counts always cover
all tokens.
The counts are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with arc_tx_transfers, then trace that address
(arc_transactions lists where this account's transactions go).
Sent_Assets / Received_Assets count the DISTINCT assets behind those figures; the two USDC
interfaces count as ONE asset. Sent_Amount / Received_Amount are filled ONLY when that
count is 1, because amounts of different assets must never be added: narrow the call with
contract, or with asset_type=usdc for the gas asset, to get them.
On Arc most USDC moves through contract code, so internal transfers are counted by default;
pass include_internal=0 for top-level transfers only. A transaction's own transfer is
top-level, not internal.
USDC ON ARC IS ONE ASSET WITH TWO INTERFACES that share a single balance: the NATIVE coin
that pays for gas (Native = 1, no contract, 18 decimals) and the ERC-20 token at
0x3600000000000000000000000000000000000000 (6 decimals). Each movement is listed once,
under the interface that carried it, so the two together are the address's USDC flow -
asset_type="usdc" selects both at once, and Contract tells you which interface a row used.
Over a thousand OTHER contracts on this chain print the symbol USDC too and they are
unrelated tokens: never identify an asset by its symbol, use Contract and Native.
System rows that only repeat a USDC movement already listed here are left out, so nothing
is counted twice.
Arc contract creator
WHO CREATED an Arc (arc, ARC, Arc Network, Circle Arc) contract, and what a creator deployed. Answers "who created / deployed
this token", "who is behind this contract", "what else did this deployer launch", and
"were these tokens made by the same person" (serial deployers, rug and clone farms).
NOT who funded a wallet → use arc_first_funder.
On this chain a token IS a contract, so pass the TOKEN'S CONTRACT ADDRESS in contracts.
TWO WAYS TO CALL IT, pick one - setting both is refused, because the two answer different questions and their shared-creator counters would be mixed:
contracts="0x..|0x.." - up to 50 contracts, one row each: Creator (the address whose
code ran CREATE), Signer, Created_At, Block_Number, Tx, Deploy_Value, Gas_Used and
Deploy_Success. Rows whose creator or signer is SHARED come first: Creator_Shared /
Signer_Shared count how many of the requested contracts have that same creator / signer, which
is what exposes one person behind many tokens. A longer list is not an error: the first
50 distinct addresses are used and the rest ignored - compare Contracts_Requested
with Contracts_Used and split a longer list into several calls.
creator="0x.." - the contracts THAT address deployed, newest first, inside the window (days,
after_time, before_time), at most `limit` rows. Use it on the Creator or Signer a first call
returned, to see the rest of that deployer's output. Creator_Shared is empty in this form -
every row has the same creator by construction, so the counter would only repeat the row count.
Creator_Is_Contract = 1 means the contract was deployed BY OTHER CONTRACT CODE - a
token factory, a launchpad or a DEX pair factory - and then Creator is that factory, which is the
SAME address for every token it ever made, while Signer is the person who asked for it. On a
factory-made token read Signer, not Creator. Deploy_Depth is how deep inside the transaction the
deployment happened (0 = the transaction itself) and Call_Index is the deployment's position in
that transaction - one transaction can deploy several contracts, and Call_Index is what tells
those rows apart when everything else about them looks the same.
LIMIT ON THIS CHAIN, READ IT BEFORE USING THE contracts FORM: the deployment records here do not
carry the address a deployment produced, so looking a CONTRACT up cannot succeed - every contract
answers Status = NOT_RECORDED, including tokens that certainly exist. That is a gap in the data,
NOT evidence that the address is a plain wallet, and it must never be reported as "no creator
found". The creator form still works: pass creator="0x.." to list the deployments that address
made - times, transactions, signer and gas are real there, while the Contract column reads
0x0000000000000000000000000000000000000000 for the same reason and must not be taken for the
address that was deployed. Identify a deployer from
find_token_by_address, the token's early transfers and its first funder instead. Creations is
normally 1; a higher number means the address was created more than once (destroyed and
redeployed), and the row describes the EARLIEST creation.
THE CREATOR'S STORY IS NOT IN THIS TOOL - build it from the returned addresses:
labels_for_addresses (is the creator a known entity, exchange or scammer), arc_first_funder
(who funded the creator, and whether several creators share one sponsor), arc_address_profile
and arc_transfers_in / arc_transfers_out (what that wallet does), arc_flows_between
(what moved between the creator and the token). The token's own name, symbol, price and market
cap come from find_token_by_address; its first buyers from early_buyers.
Amounts are the native coin (native USDC, 18 decimals - the same asset as the 6-decimal ERC-20 USDC, through the other interface), never USD. COST: a contract lookup has to walk every call that address
ever received, so a handful of ordinary tokens answer in a second or two while one exchange-scale
contract can take ~20 s on its own. If you already know roughly when the contract appeared, bound it
with after_time / before_time - that alone took one busy token from 21 s to 2 s. A row-limit error
("Limit for rows ... exceeded") means the batch is too busy: bound it that way, or split the list.
Arc find calls
FIND SMART-CONTRACT CALLS of a specific (even rare) method on ONE Arc (arc, ARC, Arc Network, Circle Arc)
contract in a single filtered query — match by method NAME (e.g. "transfer"),
full SIGNATURE (e.g. "transfer(address,uint256)"), or raw 4-byte hex SELECTOR
(e.g. "a9059cbb"); optionally narrow to one caller.
Answers "who called method X on contract Y, when, did it succeed".
NOT what one address signed or received → use arc_transactions.
Returns up to limit calls (default 20, at most 10000), newest first; page back with the last row's
Cursor - each page covers the days window ending there.
Searches a recent window —
defaults to the last 7 days (ending at the cursor's time, before_time, or now);
widen with after_time; a wider window is slower on busy contracts.
For token transfers use arc_transfers_out/in; for event logs use arc_find_events.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Calls inside one transaction come back in no particular order - sort them by
CallPath if you need execution order.
Value is USDC, in the native 18-decimal form. The ERC-20 interface of the same asset at
0x3600000000000000000000000000000000000000 shows the same balance with 6 decimals; the other
contracts on this chain that print the symbol USDC are unrelated tokens.
One call can be recorded twice - once as the call itself and once as the DELEGATECALL a
proxy contract runs for it. Only the first is returned by default; Delegated = 1 marks the
repeats, which include_delegatecall=1 adds back.
Each row carries the call's decoded input Arguments (Name, Type, Value; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). A method the decoder does not recognise has
no Arguments.
Each row: Tx, Time, Block, Caller, Method, Signature, Selector, CallPath, Value, Success, Reverted, Error, GasUsed, Delegated, Cursor, Arguments, ArgumentCount, ArgumentsTruncated.
Arc find events
FIND EVENT LOGS of ONE Arc (arc, ARC, Arc Network, Circle Arc) contract — match by event NAME (e.g. "Transfer")
or full SIGNATURE (e.g. "Transfer(address,address,uint256)"),
case-insensitive. `contract` matches logs that contract EMITTED ITSELF (a
proxy token is found by its public address), plus — when it is a proxy's
implementation — the logs its code emitted for that proxy. Logs emitted by
OTHER contracts it calls are NOT included: a DEX router's swaps are logged
by the pair/pool it calls, not by the router, so contract=<router> with
event=Swap returns NOTHING even when the router executed thousands of
swaps. An empty result for a router, aggregator or smart wallet does NOT
mean there was no activity. To get those logs, pass the pair/pool (or
token) address as `contract`; if it is unknown, list the router's
transactions with arc_find_calls (contract=<router>) and pass their Tx
hashes (up to 50, "|"-separated) to arc_tx_events with event=Swap — its
CallPath shows which call produced each log. Narrow matched rows with
`emitter`. Returns tx,
emitter, event name/signature, log index, tx sender. Searches a recent
window — defaults to the last 7 days (ending at the cursor's time, before_time,
or now); widen with after_time (wider = slower).
Page back through history with cursor: pass the Cursor value of the LAST row of
a page to get the next one — unlike before_time it never skips rows that share a
timestamp, and a busy contract emits hundreds of logs in one second.
For the calls themselves use arc_find_calls; for token transfers use
arc_transfers_out/in.
Each row carries the log's decoded Arguments (Name, Type, Value, Indexed; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). Parsed=0 rows have no Arguments. Argument NAMES
come from one known ABI for the Signature: a contract that emits the same Signature with
other parameter names gets those names too, so a Name can be wrong for this contract -
identify an argument by its position and Type, and check a doubtful one against the raw
Topics/Data. For raw
Topics/Data, or the rest of a cut list, pass the Tx to arc_tx_events. Unrecognized events can be found here by `topic0`.
ONE ROW = ONE EVENT LOG. A contract can be called many times inside a single
transaction and each of those internal calls can emit its own logs, so the same
event name legitimately repeats within one transaction - that is NOT duplication.
Rows are told apart by CallIndex (which internal call emitted the log) together
with LogInCall (the log's position inside that call); that pair is unique within
a transaction. To COUNT events, count the returned rows - never de-duplicate on
Tx/Event/Emitter, which would merge genuinely different logs into one.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Rows inside one transaction come back in no particular order - sort them by
CallIndex then LogInCall if you need emission order.
Arc first funder
FIRST FUNDER / COMMON SPONSOR of up to 50 Arc (arc, ARC, Arc Network, Circle Arc) addresses: for each address the
EARLIEST incoming transfer INSIDE THE WINDOW (by default the last 180 days - not necessarily
the first ever, see WINDOW) - who sent it (Funder), who signed that transaction (Tx_From), when
(First_Time), how much of which token, and the Tx. Answers "who funded these wallets" and "do
these wallets share a sponsor" (sybil, sniper and airdrop-farming clusters).
NOT who deployed a contract → use arc_contract_creator.
Pass the addresses separated by "|". A longer list is not an error: the first 50 distinct addresses are
used and the rest are ignored - every row reports Addresses_Requested / Addresses_Used, so compare
them and split a longer list into several calls. One row per used address, and rows whose funder is shared come FIRST:
Funder_Shared = how many of the requested addresses have that same first funder,
Tx_From_Shared = the same count for the transaction's signer - it catches wallets funded
through a public batch-sending contract, where Funder is the contract and the signer is the real
sponsor. Funder_In_Set = 1 when the funder is itself one of the requested addresses (a funding
chain). Via_Internal_Call = 1 marks funding sent by contract code deeper inside a transaction; the transfer a transaction makes itself is top-level, so it reads 0. Incoming_In_Window = how many qualifying incoming transfers the address had in
the window.
WHAT COUNTS AS FUNDING: by default USDC through EITHER of its interfaces (asset_type="usdc") - the native coin and the ERC-20 at 0x3600000000000000000000000000000000000000 are one asset here, and a wallet is often funded through the interface the other one does not show, including native USDC sent by contract code (include_internal=1); set
asset_type="token" or "all", or pin one token with contract, to look at token funding instead.
Zero-amount transfers, mints of other tokens (a USDC mint IS funding here: that is how USDC reaches this chain, and its Funder is 0x0000000000000000000000000000000000000000 while Tx_From is the account that delivered it) and self-transfers never count; raise min_amount to skip dust.
WINDOW: the first funding INSIDE the last `days` days (default 180, at most 730)
ending at before_time or now, or starting at after_time within the same limit.
Status = FIRST_IN_WINDOW: the earliest qualifying funding between Window_From and Window_To. It is
the address's first-ever funding ONLY if the address had no activity before Window_From, and this
tool does not check that. To check one address, compare First_Time with the First_Received of
arc_address_profile for it (an earlier First_Received means it already received something
before the window). To look further back, call again with before_time set to the row's
Window_From. Status = NO_INCOMING_IN_WINDOW means nothing qualifying
arrived in the window: call again for those addresses with before_time set to their Window_From
to look further back.
COST grows with the number of addresses times the length of the window: for dozens of
addresses keep days at 180 and page back with before_time rather than widening
days. A row-limit error ("Limit for rows ... exceeded") means an address in the list is too busy (an
exchange, bridge or popular contract) or the window is too long - drop that address or shorten
days. Amounts are TOKEN UNITS, never USD. To identify funders, pass them to
labels_for_addresses; to see everything that moved between the funders and the wallets, use
arc_flows_between.
USDC ON ARC IS ONE ASSET WITH TWO INTERFACES that share a single balance: the NATIVE coin that pays
for gas (Native = 1, no contract, 18 decimals) and the ERC-20 token at
0x3600000000000000000000000000000000000000 (6 decimals). Each movement is listed once, under the
interface that carried it, so the two together are the address's USDC flow - asset_type="usdc"
selects both at once. Over a thousand OTHER contracts on this chain also print the symbol USDC and
they are unrelated tokens: never identify an asset by its symbol, use Contract and Native.
On Arc most USDC moves through contract code, so internal transfers are counted by default; pass include_internal=0 for top-level transfers only.
Arc flow edges
MONEYFLOW GRAPH EDGES out of an Arc (arc, ARC, Arc Network, Circle Arc) address: one row per
counterparty — Source → Target, total Amount, Currency.
NOT choosing which counterparty to follow next → use arc_trace_next_hop.
Building block for a MoneyFlow
DIAGRAM. HOW TO DRAW: call this per address/hop, collect the edges, and emit a Mermaid
`graph LR` (one node per address; each edge labeled with Amount+Currency). Pass the
Target addresses to labels_for_addresses to flag CEX / mixer / bridge nodes and STOP
expanding those branches. Pass a currency to avoid spam-token noise; call WITHOUT a
currency filter to spot a token → USDC off-ramp at the edge. For raw per-transfer rows
use arc_transfers_out. Each edge carries the token Contract — pin one exact token
with the contract param. On a very high-traffic address (an exchange or bridge hub)
this aggregates a lot of history and can take tens of seconds — narrow it with
contract or currency to one token to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
Bound one period with after_time / before_time. First_Seen / Last_Seen give each
edge's first and last transfer.
Every edge carries Native (1 = the native coin) next to Contract, so USDC moved through
both of its interfaces is two edges; asset_type=usdc keeps both, and their amounts do add
up because each movement is listed once.
On Arc most USDC moves through contract code, so internal transfers are counted by default;
pass include_internal=0 for top-level transfers only. A transaction's own transfer is
top-level, not internal.
USDC ON ARC IS ONE ASSET WITH TWO INTERFACES that share a single balance: the NATIVE coin
that pays for gas (Native = 1, no contract, 18 decimals) and the ERC-20 token at
0x3600000000000000000000000000000000000000 (6 decimals). Each movement is listed once,
under the interface that carried it, so the two together are the address's USDC flow -
asset_type="usdc" selects both at once, and Contract tells you which interface a row used.
Over a thousand OTHER contracts on this chain print the symbol USDC too and they are
unrelated tokens: never identify an asset by its symbol, use Contract and Native.
System rows that only repeat a USDC movement already listed here are left out, so nothing
is counted twice.
Arc flows between
FLOWS BETWEEN TWO ADDRESS SETS on Arc (arc, ARC, Arc Network, Circle Arc): every successful transfer (tokens and native
USDC) from any address of set A to any address of set B, and back, in ONE call - "did these
wallets ever pay those wallets", "how much moved between my suspects and the exchange
wallets", "which of these deposit addresses sent to that hot wallet". Pass up to
50 addresses per set separated by "|" (0xabc…|0xdef…). A longer list is not an error:
the first 50 distinct addresses of each set are used and the rest are ignored -
every row reports A_Addresses_Requested / A_Addresses_Used and B_Addresses_Requested /
B_Addresses_Used, so compare them and split a longer set into several calls. Leave addresses_b EMPTY to get every
counterparty of the A set, both directions, grouped per A address - the multi-address form of
arc_flow_edges.
mode="summary" (default) returns one row per (Direction, Sender, Receiver, token) with
Transfers, total Amount, First_Time, Last_Time and the latest Tx, ordered by `sort`.
mode="rows" returns the individual transfers newest first; page with cursor: pass the Cursor
value of the LAST row, with all other arguments unchanged, to get the next page (a summary row
carries no Cursor). A rows-mode row is a LEDGER LINE: besides the amount it carries Amount_Raw (the
exact integer amount in the token's smallest unit) with Decimals, Block and Tx_Index, and Price_Usd
(the token's USD price at the time of the transfer), Value_Usd = Amount x Price_Usd and
Price_Status - "ok"; "no_price" = no price is known for this token at that time, so Price_Usd and
Value_Usd are empty (never read that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check it with
price_at. A token has ONE price per day, so its value is approximate. USDC on Arc - the native coin and the ERC-20 at 0x3600000000000000000000000000000000000000 - always reads no_price here: it is USDC, so price it as USDC on Ethereum with price_at. On a summary row those seven columns are empty: a total over a
period has no single price. Self = 1 (both modes) marks a movement whose counterparty is another
address of set A - a move inside the set, not income and not spending.
Direction A_TO_B = sent by an A address to a B address, B_TO_A = sent by a B
address to an A address; an address listed in both sets appears in both directions. With
addresses_b empty the same holds for a transfer between two A addresses: it is listed as A_TO_B
for its sender AND as B_TO_A for its receiver, so never add rows of both directions together.
WINDOW: the last `days` days (default 30, at most 366) ending at before_time, or now;
after_time sets the start instead, within the same 366-day limit. Window_From / Window_To
on every row show the range searched; for an older period set before_time. An empty result means
no transfer between the sets in that window.
COST: the search is keyed on set A, so put the SMALLER and less busy set in addresses_a -
individual wallets, not exchange hot wallets, bridges or token contracts. If the call fails
with a row-limit error ("Limit for rows ... exceeded"), swap the two sets, shorten days, or
split set A. Cost also grows with the number of addresses in set A times the window.
Each row carries the token Contract (empty for native USDC); a symbol alone can match
look-alike clones, so pin one token with contract, or restrict to native or tokens with
asset_type. Amount is in TOKEN UNITS: totals of different tokens must not be compared or added
together, there is no usd filter (min_amount is in token units), and sort="amount" is only
meaningful with one token pinned. To identify the addresses, pass them to
labels_for_addresses.
USDC ON ARC IS ONE ASSET WITH TWO INTERFACES that share a single balance: the NATIVE coin that pays
for gas (Native = 1, no contract, 18 decimals) and the ERC-20 token at
0x3600000000000000000000000000000000000000 (6 decimals). Each movement is listed once, under the
interface that carried it, so the two together are the address's USDC flow - asset_type="usdc"
selects both at once. Over a thousand OTHER contracts on this chain also print the symbol USDC and
they are unrelated tokens: never identify an asset by its symbol, use Contract and Native.
On Arc most USDC moves through contract code, so internal transfers are counted by default; pass include_internal=0 for top-level transfers only.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Arc native balances
NATIVE COIN BALANCE of up to 50 Arc (arc, ARC, Arc Network, Circle Arc) addresses you ALREADY HAVE: each address's
current USDC balance (the coin that pays gas) - for filtering a known set of wallets down to the funded
ones, e.g. an airdrop cohort.
To discover holders you do not have yet, use arc_token_holders. NOT one address's transfer history → use arc_address_flow_summary.
Pass the addresses separated by "|" (0x..) - up to 50; addresses after the
50th distinct one are ignored (compare Addresses_Requested with Addresses_Used), so split
a longer list into several calls.
WINDOW: only balances UPDATED within the last `since_days` days (default 7) are read, so an address
that has not moved its native coin in that window returns NO row. Use the same window you searched for
activity - e.g. the window of arc_token_senders - because an active wallet's balance is always
fresh there; a wider window costs more for no gain on active wallets.
Native_Balance is in USDC (18 decimals); Native_Balance_Raw is the exact integer amount (wei);
Balance_As_Of is when that balance was last updated. To identify the addresses, pass them to
labels_for_addresses.
Each row: Address, Native_Balance, Native_Balance_Raw, Balance_As_Of, Addresses_Requested, Addresses_Used.
Arc token holders
TOP HOLDERS of an Arc (arc, ARC, Arc Network, Circle Arc) token by CURRENT on-chain balance — holder address +
balance, largest first. Use for token analysis: whales, holder concentration,
distribution. Pass the token CONTRACT address (not a wallet). Label the returned
holders with labels_for_addresses to spot CEX / team / LP / bridge wallets. This is
real on-chain balance, NOT DEX-trade PnL — for trader profitability use
profitable_traders_by_token / trader_positions. Balances exclude NFTs (fungible only).
SCOPE. days=0 (default) ranks EVERY holder over the token's whole history, and
Holders_In_Window is then the token's holder count (positive balances). A very
widely held token - a major stablecoin, for example - has too much history for that:
the call answers at once with one Status=TOO_LARGE row instead of timing out. Then
call with days=30 (days=7 if that is still TOO_LARGE): it ranks the holders whose
balance CHANGED in that window, and their balances are still exact current balances.
A holder that did not move the token in the window is absent, so on such a token the
page is the top of the ACTIVE holders, not a guaranteed global top. To reach quieter
holders pass Next_Cursor as cursor: each page covers the next older window of `days`
and lists only holders whose LAST balance change falls inside it, so no holder
appears on two pages and the top N of all pages merged is the global top N. Each
page also checks all later activity up to today, so paging far back on a very busy
token ends in TOO_LARGE - stop there and say the list covers only the windows read.
Next_Cursor is empty when the token has nothing older. Window_From / Window_To are
the dates a page covers (Window_From empty = whole history). A row with an empty
Holder is a status row: read Status (TOO_LARGE / NO_HOLDERS / BAD_CURSOR).
Balance is in the token's OWN units, never USD - no USD value is available in
this data, so there is no usd filter and balances of different tokens are not
comparable. `Decimals` gives the scale. Holders whose recorded balance is NEGATIVE
are dropped and counted in Negative_Balances_Excluded: the transfer history behind
them is inconsistent (typically a transfer recorded twice or missing), so that
balance cannot be trusted - and the same kind of error can inflate a positive
balance of that token. A balance far above the token's total supply is such an
artifact, not a whale: check it with token_supply or the holder's transfers before
reporting it.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
FOR USDC HOLDERS PASS token=native. USDC here is one asset with two interfaces sharing a
single balance, and only the native side is kept current: the snapshot behind the ERC-20
interface at 0x3600000000000000000000000000000000000000 advances only when that interface
is used, so it goes stale while the balance keeps moving (one wallet on 2026-09-24: 600.63
native, last changed that morning, against 803.78 through the ERC-20 view, last changed two
days earlier - the native figure is the real one). Over a thousand other contracts on this
chain print the symbol USDC and are unrelated tokens, so any other "USDC" ranking is the
ranking of the ONE contract passed in token.
Arc token senders
TOKEN SENDERS COHORT on Arc (arc, ARC, Arc Network, Circle Arc): the addresses that SENT a given token at least `min_transfers`
times inside a time window, most recently active first - "wallets that actively use this token",
"build a cohort or airdrop list of recent senders of this token".
NOT one wallet's own outgoing transfers → use arc_transfers_out.
This counts SENDERS of the token, one row per sender; it does not value or label them - pass the
returned addresses to labels_for_addresses, and to arc_native_balances to keep only funded
wallets. By default only normal user wallets (EOAs) that sent the token in their OWN transaction count (eoa_only=1); set eoa_only=0 to include contract senders.
Pass the token's CONTRACT address in token (0x-hex (case-insensitive)); a symbol also matches clone tokens, so
pin the exact contract.
WINDOW: the last `days` days (default 1, at most 30) ending at before_time or now;
after_time sets the start instead. A sender must reach `min_transfers` sends WITHIN this window, so a
short recent window keeps only clearly-active wallets - the recency the cohort wants. There is no
full-history mode: to go further back, page with before_time.
PAGING: newest-active first, at most `limit` rows. If the result has `limit` rows there may be more -
set before_time to the oldest Last_Transfer_Time returned and call again, then combine and
de-duplicate the pages.
COST grows with the token's volume times the window: widen `days` step by step. A row-limit error
("Limit for rows ... exceeded") means the token is too busy for that window - shorten days.
Each row: Address, Transfers, First_Transfer_Time, Last_Transfer_Time.
Arc trace dominant path
AUTO-WALK the dominant (largest-total-amount) OUTGOING edge of ONE token from an
Arc (arc, ARC, Arc Network, Circle Arc) address, hop by hop, up to 5 hops — collapses ~5 manual
arc_trace_next_hop calls into one. Every hop returns Hop*_To (the address that
received), Hop*_Token (the contract of the token that moved) and Hop*_Edge_Total, plus
Hops_Found (how many hops resolved) and Path_Status for the walk itself.
Hop*_Edge_Total is NOT the amount that travelled along the path: it is the ALL-TIME
total of EVERY transfer of that token between that hop's sender and receiver, so it
can be orders of magnitude larger than the sum you are tracing and the hop totals are
not comparable with each other. To break one edge down — its transfer count
(Transfers), first/last seen, and the full ranking of that address's edges — call
arc_trace_next_hop on the hop's sender.
The walk NEVER goes back to an address it has already visited (the seed included), so
it cannot bounce back and forth between the same two wallets — each hop is the largest
edge to a NEW address.
READ Path_Status FIRST — NO_MATCH means the token filter matched nothing (wrong symbol,
or that symbol belongs to a different token — pass `contract`), PATH_END means the
trail really ran out, DEPTH_LIMIT means it may continue past hop 5. All-NULL hops with
NO_MATCH are a filter problem, not a dead end.
Pass the hop addresses to labels_for_addresses and read down to the FIRST labeled
address (CEX / mixer / bridge) — that's the destination.
Pin the token with `contract` whenever you know it — a SYMBOL is not unique, clone
tokens reuse popular symbols, and with a symbol alone the hops can drift between
look-alike tokens; compare the per-hop token contract to spot that.
LIMITS: follows only the single biggest edge per hop (misses splits / fan-outs), fixed
depth 5, and transfers to the burn address are not followed. For branching / adaptive
tracing call arc_trace_next_hop hop by hop, identify each hop with
labels_for_addresses and choose the next address yourself (prompt_playbook with
playbook=money_flow returns the full step-by-step procedure); for one hop's full ranking use
arc_trace_next_hop. Heavy multi-hop walk — can time out on a very busy address; retry,
or narrow it with `contract` / a less-busy token.
Hop*_Token is the contract of the token that moved, and it is EMPTY when that hop moved the
native USDC coin. Over a thousand contracts on this chain print the symbol USDC and are
unrelated tokens, so currency="USDC" lets the walk drift between them: pass
asset_type=usdc to follow the gas asset through both of its interfaces, or contract to pin
one exact token, and read Hop*_Token on every hop.
On Arc most USDC moves through contract code, so internal transfers are counted by default;
pass include_internal=0 for top-level transfers only. A transaction's own transfer is
top-level, not internal.
Arc trace next hop
CONVERGENCE primitive for Arc (arc, ARC, Arc Network, Circle Arc) tracing: aggregate an address's
OUTGOING flow by counterparty (Σ amount, count, first/last seen), largest first.
NOT edges for a diagram → use arc_flow_edges.
NOT an automatic walk along the largest edge → use arc_trace_dominant_path.
Answers "where did the bulk of the funds go" in one shot. Narrow with currency
(recommended), after_time (= when funds reached this hop), min_amount. Pass the top
counterparties to labels_for_addresses to spot a CEX / mixer / bridge (= the
destination, stop there). One row per (counterparty, TOKEN); identify a token by
Contract, not Currency. On a very high-traffic address (an exchange or bridge hub)
this aggregates a lot of history and can take tens of seconds — narrow it with
contract or currency to one token, and with after_time to one period, which is far
faster than one wide call.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Every row carries Native (1 = the native coin) next to Contract, so a counterparty reached
through both USDC interfaces is TWO rows; asset_type=usdc keeps both, and their amounts do
add up because each movement is listed once.
On Arc most USDC moves through contract code, so internal transfers are counted by default;
pass include_internal=0 for top-level transfers only. A transaction's own transfer is
top-level, not internal.
USDC ON ARC IS ONE ASSET WITH TWO INTERFACES that share a single balance: the NATIVE coin
that pays for gas (Native = 1, no contract, 18 decimals) and the ERC-20 token at
0x3600000000000000000000000000000000000000 (6 decimals). Each movement is listed once,
under the interface that carried it, so the two together are the address's USDC flow -
asset_type="usdc" selects both at once, and Contract tells you which interface a row used.
Over a thousand OTHER contracts on this chain print the symbol USDC too and they are
unrelated tokens: never identify an asset by its symbol, use Contract and Native.
System rows that only repeat a USDC movement already listed here are left out, so nothing
is counted twice.
Returns up to top_n rows (default 10, at most 10000), largest Total_Amount first; no rows = nothing matched.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Each row: Counterparty, Currency, Symbol_NonAscii, Contract, Native, Total_Amount, Transfers, First_Seen, Last_Seen.
Arc transactions
Paginated TRANSACTION HISTORY of an Arc (arc, ARC, Arc Network, Circle Arc) address — every transaction it
sent or received directly (its own From or To; a token it received inside
someone else's transaction is in arc_transfers_in), newest first. Page back:
pass the last Tx of the previous page as `before` to get strictly older
transactions (an unknown hash returns an empty page); `until` returns only
transactions strictly newer than that hash. NOT a token-transfer list — for
token/native transfer flows use arc_transfers_in / arc_transfers_out; to
inspect one transaction's transfers use arc_tx_transfers.
Value and Fee are USDC, in the native 18-decimal form. The ERC-20 interface of the same
asset at 0x3600000000000000000000000000000000000000 shows the same balance with 6 decimals;
the other contracts on this chain that print the symbol USDC are unrelated tokens.
Each row also carries the exact fee: Fee_Wei is the fee in the smallest unit of native USDC
(18 decimals) as a decimal string; Fee is the same amount rounded to 8 decimals. Fee_Usd is
empty and Fee_Price_Status is no_price here: the fee is a USDC amount, and USDC on Arc is
priced as USDC on Ethereum (price_at) - never read the empty Fee_Usd as zero. A failed
transaction (Success = 0) still paid its fee: treat it as a fee-only row. Fee_Status is ok.
The fee was paid by the sender (From): count it for this address only on rows where From is the address.
Returns up to limit transactions per page (default 25, at most 10000), newest first, failed transactions
(Success = 0) included unless only_successful=1; a page shorter than limit is the last one.
An unknown `until` hash is not applied (no lower bound); `before` and `until` together bound one range.
With after_time / before_time only that period is read, so the cost follows the period, not the
address's whole history; pass the same pair with every page.
Each row: Tx, Time, Block, TxIndex, From, To, Value, Success, Fee, Fee_Status, Fee_Wei, Fee_Usd, Fee_Price_Status.
Arc transfers in
INCOMING Arc (arc, ARC, Arc Network, Circle Arc) transfers to an address — where this wallet
received funds from.
NOT the opposite direction → use arc_transfers_out.
NOT totals per sender → use arc_address_flow_summary.
Returns up to limit transfers (default 20, at most 10000), newest first by default; page back with the
last row's Cursor.
Use to trace the
source of funds backwards. For an address with many transfers set min_amount or
sort='amount', else large sources hide behind recent dust. Query WITHOUT a currency
filter to see where the bulk of funds originated. To identify counterparties,
pass the returned addresses to labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. A token has ONE price per day, so its value is approximate. USDC ON ARC IS
NOT PRICED HERE: the native coin and the ERC-20 at
0x3600000000000000000000000000000000000000 always read no_price - it is USDC, so
price it as USDC on Ethereum with price_at. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
Every row carries Native (1 = the native coin) next to Contract, and Internal = 1 marks
a transfer moved by contract code inside a transaction.
On Arc most USDC moves through contract code, so internal transfers are counted by default;
pass include_internal=0 for top-level transfers only. A transaction's own transfer is
top-level, not internal.
USDC ON ARC IS ONE ASSET WITH TWO INTERFACES that share a single balance: the NATIVE coin
that pays for gas (Native = 1, no contract, 18 decimals) and the ERC-20 token at
0x3600000000000000000000000000000000000000 (6 decimals). Each movement is listed once,
under the interface that carried it, so the two together are the address's USDC flow -
asset_type="usdc" selects both at once, and Contract tells you which interface a row used.
Over a thousand OTHER contracts on this chain print the symbol USDC too and they are
unrelated tokens: never identify an asset by its symbol, use Contract and Native.
System rows that only repeat a USDC movement already listed here are left out, so nothing
is counted twice.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
Each row: Time, Sender, Currency, Symbol_NonAscii, Contract, Native, Amount, Internal, Tx, Cursor, Amount_Raw, Decimals, Block, Tx_Index, Price_Status, Price_Usd, Value_Usd.
Arc transfers out
OUTGOING Arc (arc, ARC, Arc Network, Circle Arc) transfers from an address — where this wallet
sent funds. Narrow with after_time (flows after funds arrived), currency (follow one
asset), min_amount (drop dust). For an aggregated "where did the bulk go" view use
arc_trace_next_hop; for incoming use arc_transfers_in. For an address with many
transfers set min_amount or sort='amount', else large counterparties hide behind
recent dust. Query WITHOUT a currency filter to surface the token → USDC off-ramp.
Page back through history with cursor: pass the Cursor value of the LAST row of a page
to get the next one — unlike before_time it never skips rows that share a timestamp.
To identify counterparties, pass the returned addresses to labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. A token has ONE price per day, so its value is approximate. USDC ON ARC IS
NOT PRICED HERE: the native coin and the ERC-20 at
0x3600000000000000000000000000000000000000 always read no_price - it is USDC, so
price it as USDC on Ethereum with price_at. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
Every row carries Native (1 = the native coin) next to Contract, and Internal = 1 marks
a transfer moved by contract code inside a transaction.
On Arc most USDC moves through contract code, so internal transfers are counted by default;
pass include_internal=0 for top-level transfers only. A transaction's own transfer is
top-level, not internal.
USDC ON ARC IS ONE ASSET WITH TWO INTERFACES that share a single balance: the NATIVE coin
that pays for gas (Native = 1, no contract, 18 decimals) and the ERC-20 token at
0x3600000000000000000000000000000000000000 (6 decimals). Each movement is listed once,
under the interface that carried it, so the two together are the address's USDC flow -
asset_type="usdc" selects both at once, and Contract tells you which interface a row used.
Over a thousand OTHER contracts on this chain print the symbol USDC too and they are
unrelated tokens: never identify an asset by its symbol, use Contract and Native.
System rows that only repeat a USDC movement already listed here are left out, so nothing
is counted twice.
Arc transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Arc transfers database. The
Bitquery MCP specialized arc_* tools are the PRIORITY; use this ONLY when none of them
can answer (e.g. an uncovered table). No query optimizer here — naive SQL full-scans
huge tables and JOINs time out.
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
FAST-QUERY RULES: filter on the indexed key tables — `arc_api.transfers_sender` (by
sender / outgoing), `arc_api.transfers_receiver` (by receiver / incoming),
`arc_api.transfers_tx` (by tx hash); NEVER JOIN big tables — use `WHERE col IN (SELECT …)`
(use `GLOBAL IN` when the subquery is referenced inside another subquery, otherwise its
result is not available where it is used). A subquery that itself reads a transfers table (`IN (SELECT Transfer_Sender FROM …transfers_… WHERE …)`) is re-run for every shard and rescans that table — run it as its OWN query first, then pass the result back as a literal list (`IN (unhex('a'), unhex('b'))`). To filter transfers by a specific token, read `transfers_currency` (keyed by the token contract + `Block_Time`); `transfers_sender` / `transfers_receiver` are keyed by address, so filtering those by a token contract scans the table.
Addresses are RAW BYTES `FixedString(20)` in `Transfer_Sender` / `Transfer_Receiver`
(there are NO plain string address columns) →
`Transfer_Sender = unhex(substring(lower('0x…'),3))`, output `concat('0x',lower(hex(col)))`.
Tx hash is `Transaction_Hash` `FixedString(32)` (same unhex/hex pattern).
A SET of hashes or addresses must have the column's exact type:
`Transaction_Hash IN (SELECT toFixedString(unhex(h), 32) FROM …)`, `toFixedString(…, 20)` for
an address. A plain `unhex(…)` set, or a JOIN on a String key, silently misses every value
ending in `00`; `=` and a literal list `IN (unhex('a'), unhex('b'))` are safe.
Currency symbol + decimals are INLINE columns (no dictionaries):
amount = `toFloat64(Transfer_Amount) / pow(10, Transfer_Currency_Decimals)`;
symbol = `Transfer_Currency_Symbol`; token contract = `Transfer_Currency_SmartContract` — itself RAW BYTES in a `String` column (not text), so filter it `= unhex('<40 hex, no 0x>')` and read it back `concat('0x',lower(hex(…)))`; a `'0x…'` text literal matches nothing.
Always add `AND Transfer_Success = 1`. DO NOT copy the
`Transfer_Type IN ('token','transaction')` filter used on other chains — here it drops
almost every USDC movement. `Transfer_Type`: 'token' = a log, 'transaction' = a plain value
send, 'call' = a value move read from the call trace, which is how most USDC moves. A
transaction's OWN transfer is a 'call' with `Call_Index = 0`, so "internal" is
`Transfer_Type = 'call' AND Call_Index != 0`, never `Transfer_Type = 'call'` alone.
USDC IS ONE ASSET WITH TWO INTERFACES sharing one balance: the native coin
(`Transfer_Currency_Native = 1`, empty contract, 18 decimals) and the ERC-20 at
0x3600000000000000000000000000000000000000 (6 decimals). Each movement appears once, under
the interface used, so `Transfer_Currency_Native = 1 OR Transfer_Currency_SmartContract =
unhex('3600000000000000000000000000000000000000')` is the whole USDC flow.
ALWAYS EXCLUDE `Transfer_Currency_SmartContract =
unhex('fffffffffffffffffffffffffffffffffffffffe')`: that address only repeats a USDC
movement already present (up to 2026-09-18), so leaving it in counts USDC twice. Over a
thousand other contracts print the symbol USDC and are unrelated tokens.
Time = `Block_Time`; history starts in May 2026. Date-time values come back as ISO-8601 UTC, e.g. 2026-09-21T15:04:18Z (toString() of a date-time gives 2026-09-21 15:04:18). Other `arc_api.*` tables (calls, transactions, balances) are reachable with
an explicit db prefix. `arc_api.dex_trades_tx` holds this chain's DEX trades from
2026-05-27, earlier than the trade tools reach, and is the only way at that first period.
In the `balances_*` tables `Balance_Amount` is an aggregate state, not a number — read it as
`reinterpretAsInt256(argMaxMerge(Balance_Amount))` with a GROUP BY, or it comes back as
unreadable bytes. Counterparty labels are NOT available for this chain — describe an
address from its transfer profile instead. Read-only; always add a LIMIT of at most 10,000 — a larger answer fails with an error, so aggregate (GROUP BY, count) instead. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x).
Exact table and column names first: chain_list_tables, chain_describe_table and chain_search_columns with database=arc_api.
Arc tx events
ALL EVENT LOGS in one or more Arc (arc, ARC, Arc Network, Circle Arc) transactions, including
decoded arguments plus raw topics and data. Use after arc_find_events identifies a
transaction, or whenever a tx receipt's complete event payload is needed. Accepts up
to 50 transaction hashes separated by "|". `Parsed=0` means no ABI matched: Event,
Signature and Arguments can then be empty, but Topic0, Topics and Data remain usable.
NOT the value moved in a transaction → use arc_tx_transfers.
Arguments are named objects with Name, Type, string Value and Indexed; integer values
are decimal strings to avoid JSON-number precision loss; use raw Topics/Data for values
wider than the decoded numeric fields. Argument names come from one known ABI for the Signature and can be another contract's wording - Topics and Data are the log's own. By default, reverted call-frame
logs, removed logs and failed transactions are excluded; set only_successful=0 to inspect
them with the returned status fields.
Arc tx transfers
All token & native transfers inside ONE Arc (arc, ARC, Arc Network, Circle Arc) transaction — or a BATCH of
transactions (pass several hashes separated by "|") — sender → receiver,
currency, amount, plus the method that produced each transfer. Rows are
grouped per tx (Tx column). Entry point for tracing when you have tx hashes.
NOT the event logs of a transaction → use arc_tx_events.
For an address's flow over time use arc_transfers_out / arc_transfers_in.
To identify the addresses, pass them to labels_for_addresses.
FRESHNESS: transfers reach this data some minutes after the trade tools see a swap, so
a hash that trader_trades or tx_trades already shows can return NO rows here yet -
that is lag, not a missing transaction: retry in a few minutes.
Each row carries the token Contract and Native (1 = the native coin), and Internal = 1
marks a transfer moved by contract code deeper inside the transaction - the transfer the
transaction makes itself is not internal. Call_Index and Log_Index give each row its
position inside the transaction, which is what tells apart several transfers of the same
amount between the same two addresses.
On Arc most USDC moves through contract code, so internal transfers are counted by default;
pass include_internal=0 for top-level transfers only. A transaction's own transfer is
top-level, not internal.
USDC ON ARC IS ONE ASSET WITH TWO INTERFACES that share a single balance: the NATIVE coin
that pays for gas (Native = 1, no contract, 18 decimals) and the ERC-20 token at
0x3600000000000000000000000000000000000000 (6 decimals). Each movement is listed once,
under the interface that carried it, so the two together are the address's USDC flow -
asset_type="usdc" selects both at once, and Contract tells you which interface a row used.
Over a thousand OTHER contracts on this chain print the symbol USDC too and they are
unrelated tokens: never identify an asset by its symbol, use Contract and Native.
System rows that only repeat a USDC movement already listed here are left out, so nothing
is counted twice.
Base address flow summary
ADDRESS FLOW SUMMARY / top counterparties: who a Base (base, L2, Coinbase L2) address sends funds TO and receives funds FROM, in one call — profile (sent/received
transfer counts, distinct receivers/senders) + TOP receivers AND TOP senders.
Collapses address_profile + trace_next_hop(out) + an incoming convergence into a
single call — call this FIRST when triaging a hop. Returns a computed Role:
receive_only (no outgoing transfer in the period) / send_only (no incoming one) /
no_transfers (neither) / consolidator (senders ≫ receivers) / distributor (receivers ≫
senders) / hub (thousands of both — don't trace deeper) / relay. The profile counts
and Role ALWAYS cover all tokens: currency and contract narrow only the top arrays
(base_address_profile applies them to every count). Pass the returned counterparties to
labels_for_addresses to identify them. For raw rows use base_transfers_in/out; for one
direction's full ranking use base_trace_next_hop. READING THE TOP ARRAYS: one entry
per (counterparty, TOKEN) — the same address repeats once per token it moved. Symbols
are not unique; identify a token by `contract`. On a very high-traffic address (an
exchange or bridge hub) this aggregates a lot of history and can take tens of seconds
— narrow it with contract or currency to one token to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
after_time / before_time bound BOTH the profile counts and the top arrays to one period
(without them both cover the whole history).
Counts and arrays are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with base_tx_transfers, then trace that address
(base_transactions lists where this account's transactions go).
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Base address profile
Base (base, L2, Coinbase L2) address STATISTICS — successful transfer counts out/in and distinct
counterparties (receivers/senders), across all tokens. Fast triage of an address
during tracing. For one-call triage that ALSO returns the top counterparties,
prefer base_address_flow_summary.
Role from the ratio (cheap triage before flow_edges): senders ≫ receivers =
consolidator / sweep; receivers ≫ senders = distributor; ~1↔1 = relay (layering);
thousands of both = mega-hub (exchange / treasury — don't trace deeper). No outgoing transfers at all =
receive-only and no incoming = send-only, not a consolidator / distributor.
First_Sent / Last_Sent / First_Received / Last_Received = first and last transfer in each
direction. Bound a period with after_time / before_time; restrict to one token with
contract (or currency) to also get Sent_Amount / Received_Amount in that token's units -
without a token filter the amounts are NULL, because different tokens cannot be added.
currency / contract (like after_time / before_time) narrow EVERY count, time and
amount here - unlike base_address_flow_summary, whose profile counts always cover
all tokens.
The counts are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with base_tx_transfers, then trace that address
(base_transactions lists where this account's transactions go).
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Base contract creator
WHO CREATED a Base (base, L2, Coinbase L2) contract, and what a creator deployed. Answers "who created / deployed
this token", "who is behind this contract", "what else did this deployer launch", and
"were these tokens made by the same person" (serial deployers, rug and clone farms).
NOT who funded a wallet → use base_first_funder.
On this chain a token IS a contract, so pass the TOKEN'S CONTRACT ADDRESS in contracts.
TWO WAYS TO CALL IT, pick one - setting both is refused, because the two answer different questions and their shared-creator counters would be mixed:
contracts="0x..|0x.." - up to 50 contracts, one row each: Creator (the address whose
code ran CREATE), Signer, Created_At, Block_Number, Tx, Deploy_Value, Gas_Used and
Deploy_Success. Rows whose creator or signer is SHARED come first: Creator_Shared /
Signer_Shared count how many of the requested contracts have that same creator / signer, which
is what exposes one person behind many tokens. A longer list is not an error: the first
50 distinct addresses are used and the rest ignored - compare Contracts_Requested
with Contracts_Used and split a longer list into several calls.
creator="0x.." - the contracts THAT address deployed, newest first, inside the window (days,
after_time, before_time), at most `limit` rows. Use it on the Creator or Signer a first call
returned, to see the rest of that deployer's output. Creator_Shared is empty in this form -
every row has the same creator by construction, so the counter would only repeat the row count.
Creator_Is_Contract = 1 means the contract was deployed BY OTHER CONTRACT CODE - a
token factory, a launchpad or a DEX pair factory - and then Creator is that factory, which is the
SAME address for every token it ever made, while Signer is the person who asked for it. On a
factory-made token read Signer, not Creator. Deploy_Depth is how deep inside the transaction the
deployment happened (0 = the transaction itself) and Call_Index is the deployment's position in
that transaction - one transaction can deploy several contracts, and Call_Index is what tells
those rows apart when everything else about them looks the same.
Status = NOT_FOUND means no deployment is recorded for that address: it is a plain wallet, not a
contract, or the deployment is older than the recorded history of this chain. Creations is
normally 1; a higher number means the address was created more than once (destroyed and
redeployed), and the row describes the EARLIEST creation.
THE CREATOR'S STORY IS NOT IN THIS TOOL - build it from the returned addresses:
labels_for_addresses (is the creator a known entity, exchange or scammer), base_first_funder
(who funded the creator, and whether several creators share one sponsor), base_address_profile
and base_transfers_in / base_transfers_out (what that wallet does), base_flows_between
(what moved between the creator and the token). The token's own name, symbol, price and market
cap come from find_token_by_address; its first buyers from early_buyers.
Amounts are the native coin, never USD. COST: a contract lookup has to walk every call that address
ever received, so a handful of ordinary tokens answer in a second or two while one exchange-scale
contract can take ~20 s on its own. If you already know roughly when the contract appeared, bound it
with after_time / before_time - that alone took one busy token from 21 s to 2 s. A row-limit error
("Limit for rows ... exceeded") means the batch is too busy: bound it that way, or split the list.
Base find calls
FIND SMART-CONTRACT CALLS of a specific (even rare) method on ONE Base (base, L2, Coinbase L2)
contract in a single filtered query — match by method NAME (e.g. "transfer"),
full SIGNATURE (e.g. "transfer(address,uint256)"), or raw 4-byte hex SELECTOR
(e.g. "a9059cbb"); optionally narrow to one caller.
Answers "who called method X on contract Y, when, did it succeed".
NOT what one address signed or received → use base_transactions.
Returns up to limit calls (default 20, at most 10000), newest first; page back with the last row's
Cursor - each page covers the days window ending there.
Searches a recent window —
defaults to the last 7 days (ending at the cursor's time, before_time, or now);
widen with after_time; a wider window is slower on busy contracts.
For token transfers use base_transfers_out/in; for event logs use base_find_events.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Calls inside one transaction come back in no particular order - sort them by
CallPath if you need execution order.
A call to a proxy contract is recorded twice here: once as the call itself and once as
the DELEGATECALL the proxy runs for it. Only the first is returned by default;
Delegated = 1 marks the repeats, which include_delegatecall=1 adds back.
Each row carries the call's decoded input Arguments (Name, Type, Value; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). A method the decoder does not recognise has
no Arguments.
Value is the ETH attached to the call.
Each row: Tx, Time, Block, Caller, Method, Signature, Selector, CallPath, Value, Success, Reverted, Error, GasUsed, Delegated, Cursor, Arguments, ArgumentCount, ArgumentsTruncated.
Base find events
FIND EVENT LOGS of ONE Base (base, L2, Coinbase L2) contract — match by event NAME (e.g. "Transfer")
or full SIGNATURE (e.g. "Transfer(address,address,uint256)"),
case-insensitive. `contract` matches logs that contract EMITTED ITSELF (a
proxy token is found by its public address), plus — when it is a proxy's
implementation — the logs its code emitted for that proxy. Logs emitted by
OTHER contracts it calls are NOT included: a DEX router's swaps are logged
by the pair/pool it calls, not by the router, so contract=<router> with
event=Swap returns NOTHING even when the router executed thousands of
swaps. An empty result for a router, aggregator or smart wallet does NOT
mean there was no activity. To get those logs, pass the pair/pool (or
token) address as `contract`; if it is unknown, list the router's
transactions with base_find_calls (contract=<router>) and pass their Tx
hashes (up to 50, "|"-separated) to base_tx_events with event=Swap — its
CallPath shows which call produced each log. Narrow matched rows with
`emitter`. Returns tx,
emitter, event name/signature, log index, tx sender. Searches a recent
window — defaults to the last 7 days (ending at the cursor's time, before_time,
or now); widen with after_time (wider = slower).
Page back through history with cursor: pass the Cursor value of the LAST row of
a page to get the next one — unlike before_time it never skips rows that share a
timestamp, and a busy contract emits hundreds of logs in one second.
For the calls themselves use base_find_calls; for token transfers use
base_transfers_out/in.
Each row carries the log's decoded Arguments (Name, Type, Value, Indexed; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). Parsed=0 rows have no Arguments. Argument NAMES
come from one known ABI for the Signature: a contract that emits the same Signature with
other parameter names gets those names too, so a Name can be wrong for this contract -
identify an argument by its position and Type, and check a doubtful one against the raw
Topics/Data. For raw
Topics/Data, or the rest of a cut list, pass the Tx to base_tx_events. Unrecognized events can be found here by `topic0`.
ONE ROW = ONE EVENT LOG. A contract can be called many times inside a single
transaction and each of those internal calls can emit its own logs, so the same
event name legitimately repeats within one transaction - that is NOT duplication.
Rows are told apart by CallIndex (which internal call emitted the log) together
with LogInCall (the log's position inside that call); that pair is unique within
a transaction. To COUNT events, count the returned rows - never de-duplicate on
Tx/Event/Emitter, which would merge genuinely different logs into one.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Rows inside one transaction come back in no particular order - sort them by
CallIndex then LogInCall if you need emission order.
Base first funder
FIRST FUNDER / COMMON SPONSOR of up to 50 Base (base, L2, Coinbase L2) addresses: for each address the
EARLIEST incoming transfer INSIDE THE WINDOW (by default the last 180 days - not necessarily
the first ever, see WINDOW) - who sent it (Funder), who signed that transaction (Tx_From), when
(First_Time), how much of which token, and the Tx. Answers "who funded these wallets" and "do
these wallets share a sponsor" (sybil, sniper and airdrop-farming clusters).
NOT who deployed a contract → use base_contract_creator.
Pass the addresses separated by "|". A longer list is not an error: the first 50 distinct addresses are
used and the rest are ignored - every row reports Addresses_Requested / Addresses_Used, so compare
them and split a longer list into several calls. One row per used address, and rows whose funder is shared come FIRST:
Funder_Shared = how many of the requested addresses have that same first funder,
Tx_From_Shared = the same count for the transaction's signer - it catches wallets funded
through a public batch-sending contract, where Funder is the contract and the signer is the real
sponsor. Funder_In_Set = 1 when the funder is itself one of the requested addresses (a funding
chain). Via_Internal_Call = 1 marks funding sent by contract code deeper inside a transaction; the transfer a transaction makes itself is top-level, so it reads 0. Incoming_In_Window = how many qualifying incoming transfers the address had in
the window.
WHAT COUNTS AS FUNDING: by default native ETH only (asset_type="native"), including ETH sent by contract code (include_internal=1); set
asset_type="token" or "all", or pin one token with contract, to look at token funding instead.
Zero-amount transfers, mints and self-transfers never count; raise min_amount to skip dust.
WINDOW: the first funding INSIDE the last `days` days (default 180, at most 730)
ending at before_time or now, or starting at after_time within the same limit.
Status = FIRST_IN_WINDOW: the earliest qualifying funding between Window_From and Window_To. It is
the address's first-ever funding ONLY if the address had no activity before Window_From, and this
tool does not check that. To check one address, compare First_Time with the First_Received of
base_address_profile for it (an earlier First_Received means it already received something
before the window). To look further back, call again with before_time set to the row's
Window_From. Status = NO_INCOMING_IN_WINDOW means nothing qualifying
arrived in the window: call again for those addresses with before_time set to their Window_From
to look further back.
COST grows with the number of addresses times the length of the window: for dozens of
addresses keep days at 180 and page back with before_time rather than widening
days (this chain is among the slowest for this lookup: keep it to about 10 addresses and 180 days per call). A row-limit error ("Limit for rows ... exceeded") means an address in the list is too busy (an
exchange, bridge or popular contract) or the window is too long - drop that address or shorten
days. Amounts are TOKEN UNITS, never USD. To identify funders, pass them to
labels_for_addresses; to see everything that moved between the funders and the wallets, use
base_flows_between.
Base flow edges
MONEYFLOW GRAPH EDGES out of a Base (base, L2, Coinbase L2) address: one row per
counterparty — Source → Target, total Amount, Currency.
NOT choosing which counterparty to follow next → use base_trace_next_hop.
Building block for a MoneyFlow
DIAGRAM. HOW TO DRAW: call this per address/hop, collect the edges, and emit a Mermaid
`graph LR` (one node per address; each edge labeled with Amount+Currency). Pass the
Target addresses to labels_for_addresses to flag CEX / mixer / bridge nodes and STOP
expanding those branches. Pass a currency to avoid spam-token noise; call WITHOUT a
currency filter to spot a token → USDT off-ramp at the edge. For raw per-transfer rows
use base_transfers_out. Each edge carries the token Contract — pin one exact token
with the contract param. On a very high-traffic address (an exchange or bridge hub)
this aggregates a lot of history and can take tens of seconds — narrow it with
contract or currency to one token to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
Bound one period with after_time / before_time. First_Seen / Last_Seen give each
edge's first and last transfer.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Base flows between
FLOWS BETWEEN TWO ADDRESS SETS on Base (base, L2, Coinbase L2): every successful transfer (tokens and native
ETH) from any address of set A to any address of set B, and back, in ONE call - "did these
wallets ever pay those wallets", "how much moved between my suspects and the exchange
wallets", "which of these deposit addresses sent to that hot wallet". Pass up to
50 addresses per set separated by "|" (0xabc…|0xdef…). A longer list is not an error:
the first 50 distinct addresses of each set are used and the rest are ignored -
every row reports A_Addresses_Requested / A_Addresses_Used and B_Addresses_Requested /
B_Addresses_Used, so compare them and split a longer set into several calls. Leave addresses_b EMPTY to get every
counterparty of the A set, both directions, grouped per A address - the multi-address form of
base_flow_edges.
mode="summary" (default) returns one row per (Direction, Sender, Receiver, token) with
Transfers, total Amount, First_Time, Last_Time and the latest Tx, ordered by `sort`.
mode="rows" returns the individual transfers newest first; page with cursor: pass the Cursor
value of the LAST row, with all other arguments unchanged, to get the next page (a summary row
carries no Cursor). A rows-mode row is a LEDGER LINE: besides the amount it carries Amount_Raw (the
exact integer amount in the token's smallest unit) with Decimals, Block and Tx_Index, and Price_Usd
(the token's USD price at the time of the transfer), Value_Usd = Amount x Price_Usd and
Price_Status - "ok"; "no_price" = no price is known for this token at that time, so Price_Usd and
Value_Usd are empty (never read that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check it with
price_at. ETH and the major tokens are priced to 5 minutes, every other token has ONE price per day, so the value of a small token is approximate. On a summary row those seven columns are empty: a total over a
period has no single price. Self = 1 (both modes) marks a movement whose counterparty is another
address of set A - a move inside the set, not income and not spending.
Direction A_TO_B = sent by an A address to a B address, B_TO_A = sent by a B
address to an A address; an address listed in both sets appears in both directions. With
addresses_b empty the same holds for a transfer between two A addresses: it is listed as A_TO_B
for its sender AND as B_TO_A for its receiver, so never add rows of both directions together.
WINDOW: the last `days` days (default 30, at most 366) ending at before_time, or now;
after_time sets the start instead, within the same 366-day limit. Window_From / Window_To
on every row show the range searched; for an older period set before_time. An empty result means
no transfer between the sets in that window.
COST: the search is keyed on set A, so put the SMALLER and less busy set in addresses_a -
individual wallets, not exchange hot wallets, bridges or token contracts. If the call fails
with a row-limit error ("Limit for rows ... exceeded"), swap the two sets, shorten days, or
split set A. Cost also grows with the number of addresses in set A times the window - this chain is among the slowest for it: keep set A to about 10 addresses (fewer addresses help far more than a shorter window).
Each row carries the token Contract (empty for native ETH); a symbol alone can match
look-alike clones, so pin one token with contract, or restrict to native or tokens with
asset_type. Amount is in TOKEN UNITS: totals of different tokens must not be compared or added
together, there is no usd filter (min_amount is in token units), and sort="amount" is only
meaningful with one token pinned. To identify the addresses, pass them to
labels_for_addresses.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Base native balances
NATIVE COIN BALANCE of up to 50 Base (base, L2, Coinbase L2) addresses you ALREADY HAVE: each address's
current ETH balance (the coin that pays gas) - for filtering a known set of wallets down to the funded
ones, e.g. an airdrop cohort.
To discover holders you do not have yet, use base_token_holders. NOT one address's transfer history → use base_address_flow_summary.
Pass the addresses separated by "|" (0x..) - up to 50; addresses after the
50th distinct one are ignored (compare Addresses_Requested with Addresses_Used), so split
a longer list into several calls.
WINDOW: only balances UPDATED within the last `since_days` days (default 7) are read, so an address
that has not moved its native coin in that window returns NO row. Use the same window you searched for
activity - e.g. the window of base_token_senders - because an active wallet's balance is always
fresh there; a wider window costs more for no gain on active wallets.
Native_Balance is in ETH (18 decimals); Native_Balance_Raw is the exact integer amount (wei);
Balance_As_Of is when that balance was last updated. To identify the addresses, pass them to
labels_for_addresses.
Each row: Address, Native_Balance, Native_Balance_Raw, Balance_As_Of, Addresses_Requested, Addresses_Used.
Base token holders
TOP HOLDERS of a Base (base, L2, Coinbase L2) token by CURRENT on-chain balance — holder address +
balance, largest first. Use for token analysis: whales, holder concentration,
distribution. Pass the token CONTRACT address (not a wallet). Label the returned
holders with labels_for_addresses to spot CEX / team / LP / bridge wallets. This is
real on-chain balance, NOT DEX-trade PnL — for trader profitability use
profitable_traders_by_token / trader_positions. Balances exclude NFTs (fungible only).
SCOPE. days=0 (default) ranks EVERY holder over the token's whole history, and
Holders_In_Window is then the token's holder count (positive balances). A very
widely held token - a major stablecoin, for example - has too much history for that:
the call answers at once with one Status=TOO_LARGE row instead of timing out. Then
call with days=30 (days=7 if that is still TOO_LARGE): it ranks the holders whose
balance CHANGED in that window, and their balances are still exact current balances.
A holder that did not move the token in the window is absent, so on such a token the
page is the top of the ACTIVE holders, not a guaranteed global top. To reach quieter
holders pass Next_Cursor as cursor: each page covers the next older window of `days`
and lists only holders whose LAST balance change falls inside it, so no holder
appears on two pages and the top N of all pages merged is the global top N. Each
page also checks all later activity up to today, so paging far back on a very busy
token ends in TOO_LARGE - stop there and say the list covers only the windows read.
Next_Cursor is empty when the token has nothing older. Window_From / Window_To are
the dates a page covers (Window_From empty = whole history). A row with an empty
Holder is a status row: read Status (TOO_LARGE / NO_HOLDERS / BAD_CURSOR).
Balance is in the token's OWN units, never USD - no USD value is available in
this data, so there is no usd filter and balances of different tokens are not
comparable. `Decimals` gives the scale. Holders whose recorded balance is NEGATIVE
are dropped and counted in Negative_Balances_Excluded: the transfer history behind
them is inconsistent (typically a transfer recorded twice or missing), so that
balance cannot be trusted - and the same kind of error can inflate a positive
balance of that token. A balance far above the token's total supply is such an
artifact, not a whale: check it with token_supply or the holder's transfers before
reporting it.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
Base token senders
TOKEN SENDERS COHORT on Base (base, L2, Coinbase L2): the addresses that SENT a given token at least `min_transfers`
times inside a time window, most recently active first - "wallets that actively use this token",
"build a cohort or airdrop list of recent senders of this token".
NOT one wallet's own outgoing transfers → use base_transfers_out.
This counts SENDERS of the token, one row per sender; it does not value or label them - pass the
returned addresses to labels_for_addresses, and to base_native_balances to keep only funded
wallets. By default only normal user wallets (EOAs) that sent the token in their OWN transaction count (eoa_only=1); set eoa_only=0 to include contract senders.
Pass the token's CONTRACT address in token (0x-hex (case-insensitive)); a symbol also matches clone tokens, so
pin the exact contract.
WINDOW: the last `days` days (default 1, at most 30) ending at before_time or now;
after_time sets the start instead. A sender must reach `min_transfers` sends WITHIN this window, so a
short recent window keeps only clearly-active wallets - the recency the cohort wants. There is no
full-history mode: to go further back, page with before_time.
PAGING: newest-active first, at most `limit` rows. If the result has `limit` rows there may be more -
set before_time to the oldest Last_Transfer_Time returned and call again, then combine and
de-duplicate the pages.
COST grows with the token's volume times the window: widen `days` step by step. A row-limit error
("Limit for rows ... exceeded") means the token is too busy for that window - shorten days.
Each row: Address, Transfers, First_Transfer_Time, Last_Transfer_Time.
Base trace dominant path
AUTO-WALK the dominant (largest-total-amount) OUTGOING edge of ONE token from a
Base (base, L2, Coinbase L2) address, hop by hop, up to 5 hops — collapses ~5 manual
base_trace_next_hop calls into one. Every hop returns Hop*_To (the address that
received), Hop*_Token (the contract of the token that moved) and Hop*_Edge_Total, plus
Hops_Found (how many hops resolved) and Path_Status for the walk itself.
Hop*_Edge_Total is NOT the amount that travelled along the path: it is the ALL-TIME
total of EVERY transfer of that token between that hop's sender and receiver, so it
can be orders of magnitude larger than the sum you are tracing and the hop totals are
not comparable with each other. To break one edge down — its transfer count
(Transfers), first/last seen, and the full ranking of that address's edges — call
base_trace_next_hop on the hop's sender.
The walk NEVER goes back to an address it has already visited (the seed included), so
it cannot bounce back and forth between the same two wallets — each hop is the largest
edge to a NEW address.
READ Path_Status FIRST — NO_MATCH means the token filter matched nothing (wrong symbol,
or that symbol belongs to a different token — pass `contract`), PATH_END means the
trail really ran out, DEPTH_LIMIT means it may continue past hop 5. All-NULL hops with
NO_MATCH are a filter problem, not a dead end.
Pass the hop addresses to labels_for_addresses and read down to the FIRST labeled
address (CEX / mixer / bridge) — that's the destination.
Pin the token with `contract` whenever you know it — a SYMBOL is not unique, clone
tokens reuse popular symbols, and with a symbol alone the hops can drift between
look-alike tokens; compare the per-hop token contract to spot that.
LIMITS: follows only the single biggest edge per hop (misses splits / fan-outs), fixed
depth 5, and transfers to the burn address are not followed. For branching / adaptive
tracing call base_trace_next_hop hop by hop, identify each hop with
labels_for_addresses and choose the next address yourself (prompt_playbook with
playbook=money_flow returns the full step-by-step procedure); for one hop's full ranking use
base_trace_next_hop. Heavy multi-hop walk — can time out on a very busy address; retry,
or narrow it with `contract` / a less-busy token.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Base trace next hop
CONVERGENCE primitive for Base (base, L2, Coinbase L2) tracing: aggregate an address's
OUTGOING flow by counterparty (Σ amount, count, first/last seen), largest first.
NOT edges for a diagram → use base_flow_edges.
NOT an automatic walk along the largest edge → use base_trace_dominant_path.
Answers "where did the bulk of the funds go" in one shot. Narrow with currency
(recommended), after_time (= when funds reached this hop), min_amount. Pass the top
counterparties to labels_for_addresses to spot a CEX / mixer / bridge (= the
destination, stop there). One row per (counterparty, TOKEN); identify a token by
Contract, not Currency. On a very high-traffic address (an exchange or bridge hub)
this aggregates a lot of history and can take tens of seconds — narrow it with
contract or currency to one token, and with after_time to one period, which is far
faster than one wide call.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Returns up to top_n rows (default 10, at most 10000), largest Total_Amount first; no rows = nothing matched.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Each row: Counterparty, Currency, Symbol_NonAscii, Contract, Total_Amount, Transfers, First_Seen, Last_Seen.
Base transactions
Paginated TRANSACTION HISTORY of a Base (base, L2, Coinbase L2) address — every transaction it
sent or received directly (its own From or To; a token it received inside
someone else's transaction is in base_transfers_in), newest first. Page back:
pass the last Tx of the previous page as `before` to get strictly older
transactions (an unknown hash returns an empty page); `until` returns only
transactions strictly newer than that hash. NOT a token-transfer list — for
token/native transfer flows use base_transfers_in / base_transfers_out; to
inspect one transaction's transfers use base_tx_transfers.
Value and Fee are in ETH.
Each row also carries the exact fee: Fee_Wei is the fee in the smallest unit as a decimal
string (Fee is the same amount in ETH, rounded to 8 decimals); Fee_Usd is its value at the
ETH price at the time of the transaction. Fee_Price_Status says how far to trust that
price: ok; no_price (Fee_Usd is empty - never read it as zero); suspect (the price is more than twice, or less than half, the price a day earlier AND a day
later - a likely data glitch, so Fee_Usd is left empty). A
failed transaction (Success = 0) still paid its fee: treat it as a fee-only row.
The fee was paid by the sender (From): count it for this address only on rows where From is the address.
Fee_Status tells whether the fee itself can be used: ok; may_omit_l1 = the recorded amount
is the execution fee alone, the L1 data fee is missing from it, so the true fee is higher
(a lower bound); unreliable = the recorded fee is known to be wrong and is NOT usable -
Fee_Wei and Fee_Usd are empty there, the Fee of such a row must be ignored, and the real
fee has to come from the transaction's receipt. Three cases are unreliable: every
transaction before 2024-03-14; every transaction from 2026-05-30 19:29 to 2026-07-01 17:30
UTC (recorded too high, up to more than a thousand times); and a transaction recorded with a lower
gas price than it was sent with (recorded far too low).
Returns up to limit transactions per page (default 25, at most 10000), newest first, failed transactions
(Success = 0) included unless only_successful=1; a page shorter than limit is the last one.
An unknown `until` hash is not applied (no lower bound); `before` and `until` together bound one range.
With after_time / before_time only that period is read, so the cost follows the period, not the
address's whole history; pass the same pair with every page.
Each row: Tx, Time, Block, TxIndex, From, To, Value, Success, Fee, Fee_Status, Fee_Wei, Fee_Usd, Fee_Price_Status.
Base transfers in
INCOMING Base (base, L2, Coinbase L2) transfers to an address — where this wallet
received funds from.
NOT the opposite direction → use base_transfers_out.
NOT totals per sender → use base_address_flow_summary.
Returns up to limit transfers (default 20, at most 10000), newest first by default; page back with the
last row's Cursor.
Use to trace the
source of funds backwards. For an address with many transfers set min_amount or
sort='amount', else large sources hide behind recent dust. Query WITHOUT a currency
filter to see where the bulk of funds originated. To identify counterparties,
pass the returned addresses to labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. ETH and the major tokens are priced to 5 minutes, every other token has ONE
price per day, so the value of a small token is approximate. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
Each row: Time, Sender, Currency, Symbol_NonAscii, Contract, Amount, Internal, Tx, Cursor, Amount_Raw, Decimals, Block, Tx_Index, Price_Status, Price_Usd, Value_Usd.
Base transfers out
OUTGOING Base (base, L2, Coinbase L2) transfers from an address — where this wallet
sent funds. Narrow with after_time (flows after funds arrived), currency (follow one
asset), min_amount (drop dust). For an aggregated "where did the bulk go" view use
base_trace_next_hop; for incoming use base_transfers_in. For an address with many
transfers set min_amount or sort='amount', else large counterparties hide behind
recent dust. Query WITHOUT a currency filter to surface the token → USDT off-ramp.
Page back through history with cursor: pass the Cursor value of the LAST row of a page
to get the next one — unlike before_time it never skips rows that share a timestamp.
To identify counterparties, pass the returned addresses to labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. ETH and the major tokens are priced to 5 minutes, every other token has ONE
price per day, so the value of a small token is approximate. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
Base transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Base transfers database. The
Bitquery MCP specialized base_* tools are the PRIORITY; use this ONLY when none of them
can answer (e.g. an uncovered table). No query optimizer here — naive SQL full-scans
huge tables and JOINs time out.
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
FAST-QUERY RULES: filter on the indexed key tables — `base_api.transfers_sender` (by
sender / outgoing), `base_api.transfers_receiver` (by receiver / incoming),
`base_api.transfers_tx` (by tx hash); NEVER JOIN big tables — use `WHERE col IN (SELECT …)`
(use `GLOBAL IN` when the subquery is referenced inside another subquery, otherwise its
result is not available where it is used). A subquery that itself reads a transfers table (`IN (SELECT Transfer_Sender FROM …transfers_… WHERE …)`) is re-run for every shard and rescans that table — run it as its OWN query first, then pass the result back as a literal list (`IN (unhex('a'), unhex('b'))`). To filter transfers by a specific token, read `transfers_currency` (keyed by the token contract + `Block_Time`); `transfers_sender` / `transfers_receiver` are keyed by address, so filtering those by a token contract scans the table.
Addresses are RAW BYTES `FixedString(20)` in `Transfer_Sender` / `Transfer_Receiver`
(there are NO plain string address columns) →
`Transfer_Sender = unhex(substring(lower('0x…'),3))`, output `concat('0x',lower(hex(col)))`.
Tx hash is `Transaction_Hash` `FixedString(32)` (same unhex/hex pattern).
A SET of hashes or addresses must have the column's exact type:
`Transaction_Hash IN (SELECT toFixedString(unhex(h), 32) FROM …)`, `toFixedString(…, 20)` for
an address. A plain `unhex(…)` set, or a JOIN on a String key, silently misses every value
ending in `00`; `=` and a literal list `IN (unhex('a'), unhex('b'))` are safe.
Currency symbol + decimals are INLINE columns (no dictionaries):
amount = `toFloat64(Transfer_Amount) / pow(10, Transfer_Currency_Decimals)`;
symbol = `Transfer_Currency_Symbol`; token contract = `Transfer_Currency_SmartContract` — itself RAW BYTES in a `String` column (not text), so filter it `= unhex('<40 hex, no 0x>')` and read it back `concat('0x',lower(hex(…)))`; a `'0x…'` text literal matches nothing.
Always add `AND Transfer_Success = 1`. `Transfer_Type`: 'token' = a token transfer,
'transaction' = a plain native-coin send, 'call' = native coin moved by a call. A
transaction's OWN value transfer is stored either as 'transaction' or as a 'call' with
`Call_Index = 0`; only a 'call' with `Call_Index != 0` is an INTERNAL transfer (made by
contract code deeper inside the transaction). For top-level transfers filter
`(Transfer_Type IN ('token','transaction') OR (Transfer_Type = 'call' AND Call_Index = 0))` -
`Transfer_Type IN ('token','transaction')` alone drops a large share of ordinary sends. Time =
`Block_Time`. Date-time values come back as ISO-8601 UTC, e.g. 2026-09-21T15:04:18Z (toString() of a date-time gives 2026-09-21 15:04:18). Other `base_api.*` tables (calls, transactions, balances) are reachable with
an explicit db prefix. Counterparty labels are NOT in this database — use
labels_for_addresses. Read-only; always add a LIMIT of at most 10,000 — a larger answer fails with an error, so aggregate (GROUP BY, count) instead. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x).
Exact table and column names first: chain_list_tables, chain_describe_table and chain_search_columns with database=base_api.
Base tx events
ALL EVENT LOGS in one or more Base (base, L2, Coinbase L2) transactions, including
decoded arguments plus raw topics and data. Use after base_find_events identifies a
transaction, or whenever a tx receipt's complete event payload is needed. Accepts up
to 50 transaction hashes separated by "|". `Parsed=0` means no ABI matched: Event,
Signature and Arguments can then be empty, but Topic0, Topics and Data remain usable.
NOT the value moved in a transaction → use base_tx_transfers.
Arguments are named objects with Name, Type, string Value and Indexed; integer values
are decimal strings to avoid JSON-number precision loss; use raw Topics/Data for values
wider than the decoded numeric fields. Argument names come from one known ABI for the Signature and can be another contract's wording - Topics and Data are the log's own. By default, reverted call-frame
logs, removed logs and failed transactions are excluded; set only_successful=0 to inspect
them with the returned status fields.
Base tx transfers
All token & native transfers inside ONE Base (base, L2, Coinbase L2) transaction — or a BATCH of
transactions (pass several hashes separated by "|") — sender → receiver,
currency, amount, plus the method that produced each transfer. Rows are
grouped per tx (Tx column). Entry point for tracing when you have tx hashes.
NOT the event logs of a transaction → use base_tx_events.
For an address's flow over time use base_transfers_out / base_transfers_in.
To identify the addresses, pass them to labels_for_addresses.
FRESHNESS: transfers reach this data some minutes after the trade tools see a swap, so
a hash that trader_trades or tx_trades already shows can return NO rows here yet -
that is lag, not a missing transaction: retry in a few minutes.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
Bch address flow summary
ADDRESS FLOW SUMMARY / top counterparties of a Bitcoin Cash (bch, BCH, mainnet) address in one call: who
it pays and who pays it, plus its lifetime profile and a computed Role. Call this FIRST when
triaging a hop; for raw rows use bch_sent_from_address / bch_address_received,
for one transaction bch_tx_flow.
NOT only the lifetime totals, without counterparties → use bch_address_profile.
PROFILE columns (Lifetime_*, First_Received, Last_Received, Last_Sent) cover the address's
WHOLE history.
Lifetime_Received_BCH / Lifetime_Sent_BCH are cumulative TURNOVER, not holdings: every
output ever paid to the address (including the change it pays back to itself inside its own
spending transactions) and every input it ever spent. The same coins are counted each time
they pass through, so a busy exchange wallet's totals can exceed the coin's total supply many
times over; Lifetime_Received minus Lifetime_Sent is the balance at this address.
Bitcoin Cash totals come from a pre-aggregated table that holds a few duplicated and a few
missing records. They match the transactions exactly on an ordinary address; on a busy one
they can be off in either direction by up to a fraction of a percent (a Litecoin exchange
address: 10 receiving outputs and 78 LTC too many, 0.14 %), so a negative balance, or a
remainder on an emptied address, can be that artifact rather than real funds. For an exact
figure on a single transaction use bch_tx_flow.
Role covers the WHOLE history too, not the `days` window, and follows from the lifetime counts:
no_transfers (nothing received and nothing spent) / receive_only (it never spent anything — cold
storage or an unused deposit address) / send_only (spends with no recorded receipt) / hub (more
than 1,000 distinct senders AND more than 1,000 distinct receivers — an exchange or service,
don't trace deeper) / consolidator (distinct senders more than 3 times distinct receivers) /
distributor (distinct receivers more than 3 times distinct senders) / relay (none of these).
The TOP ARRAYS cover only the last `days` (default 90) and, inside that window, at most the
1,000 most recent transactions on each side. Spend_Txs_Scanned / Receipt_Txs_Scanned say how
many were read; Spend_Txs_Truncated / Receipt_Txs_Truncated = 1 means older transactions in
the window were left out. So the arrays do NOT add up to the Lifetime_* totals. Window_Days /
Window_From state the period covered: empty arrays for an address whose Last_Sent is long
ago mean nothing moved in the window, not that it never moved — raise days.
Top_Receivers = the non-change recipients of the transactions this address spent in; Amount =
BCH paid to that recipient. Top_Senders = the input addresses of the transactions that paid
this address (change excluded); Amount = BCH this address received in those transactions.
A transaction with several input addresses credits each of them in full (they are usually one
owner — see bch_related_addresses), so Amount can be far more than what moved between the
two addresses. pro_rata_amount is Amount scaled by the input share: how much of those
transactions this address paid (Top_Receivers) or that sender paid (Top_Senders). Both arrays
are RANKED by pro_rata_amount, largest first, and min_amount / max_amount filter on it — dust
and address-poisoning payments hidden inside a large co-signed transaction have a tiny share.
Window_Own_Input_BCH is what this address itself put into the spending transactions read,
the ceiling the Top_Receivers pro-rata amounts add up to. The arrays are built from a copy of
the transaction data that misses a few whole blocks (a handful a month), so a counterparty can
be absent.
READING THE TOP ARRAYS: positional 4-tuples [counterparty, amount, txs, pro_rata_amount]; the
Top_Fields column lists those names in the same order.
No address labels are returned here: identify the address and its counterparties with
labels_for_addresses(chain='bitcoin-cash'), which knows only a handful of Bitcoin Cash
addresses (a few exchange reserve wallets, sanctioned entities) — pass Address and the
Top_Receivers / Top_Senders counterparties in ONE call; an empty answer there is a coverage
gap, not a clean address.
A counterparty shown as m-… or d-… is a script placeholder, not an address: it cannot be
traced further.
Amounts are in BCH; for a USD value use currency_price with currency_id "bch".
A first call on an address can take a minute or more while its transactions are fetched;
repeated calls answer in seconds.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Bch address profile
Bitcoin Cash (bch, BCH, mainnet) address PROFILE (lifetime summary): total received & sent
(BCH), number of distinct senders/receivers, receiving/spending counts, first/last activity.
Use to triage a BCH address during tracing — how much flowed and how connected.
NOTE: an aggregate profile, not hop-by-hop edges — bch_address_flow_summary returns the top
counterparties, bch_flow_edges and bch_tx_flow the edges.
Role from the ratio: Distinct_Senders ≫ Distinct_Receivers = consolidator; the reverse =
distributor; thousands of both = mega-hub (exchange — don't trace deeper).
Received_BCH / Sent_BCH are cumulative TURNOVER, not holdings: every output ever paid to the
address (including the change it pays back to itself inside its own spending
transactions) and every input it ever spent. The same coins are counted each time they
pass through, so a busy exchange wallet's totals can exceed the coin's total supply many
times over; Received_BCH minus Sent_BCH is the balance at this address.
Bitcoin Cash totals come from a pre-aggregated table that holds a few duplicated and a few
missing records. They match the transactions exactly on an ordinary address; on a busy one
they can be off in either direction by up to a fraction of a percent (a Litecoin exchange
address: 10 receiving outputs and 78 LTC too many, 0.14 %), so a negative balance, or a
remainder on an emptied address, can be that artifact rather than real funds. For an exact
figure on a single transaction use bch_tx_flow.
No address labels are returned here: identify addresses with
labels_for_addresses(chain='bitcoin-cash'), which knows only a handful of Bitcoin Cash
addresses (a few exchange reserve wallets, sanctioned entities) — pass many addresses in ONE
call; an empty answer there is a coverage gap, not a clean address.
Amounts are in BCH; for a USD value use currency_price with currency_id "bch".
Bch address received
INCOMING Bitcoin Cash (bch, BCH, mainnet) outputs for an address — every coin received (tx, amount,
output type: payment/change, time), most recent first. Indexed by
address (fast). Use to see what a BCH address received and in which transactions.
NOT what this address spent → use bch_sent_from_address.
NOT sums over its whole history → use bch_address_flow_summary or bch_address_profile.
An address can receive several coins (outputs) in one transaction, each its own row.
Returns up to limit rows (default 20, at most 1000), newest first; page back with the last
row's Cursor - a page shorter than limit is the last one. Set sort='amount' for the largest
receipts instead: a top-N page with no Cursor.
NOTE: shows receiving events, not the sender addresses (a UTXO output has no single sender) —
pass a Tx to bch_tx_flow to see the addresses that funded it, or call bch_address_flow_summary
for the top senders. A small share of outputs is missing from this list (a few whole blocks a
month, under 0.1 % on busy addresses, a few % in some months of 2023), so it can hold a few
rows fewer than bch_address_profile counts; bch_tx_flow on the transaction is complete.
Each row: Time, Tx, Type, Amount_BCH, Cursor.
Bch flow edges
MONEYFLOW GRAPH EDGES out of a Bitcoin Cash (bch, BCH, mainnet) address: Source → Target (real
recipients of the address's spends, excluding change), total Amount (BCH). Building block for
a MoneyFlow DIAGRAM — call per address/hop, collect edges, render Mermaid `graph LR`. Merge
same-owner Targets via bch_related_addresses.
NOT one transaction's outputs → use bch_tx_flow.
NOT its spending transactions one by one → use bch_sent_from_address.
Returns up to limit rows (default 20, at most 1000), one per recipient of its spends.
The edges carry no labels: identify the Targets with
labels_for_addresses(chain='bitcoin-cash') (many addresses in one call) and stop at exchange /
mixer nodes.
A counterparty shown as m-… or d-… is a script placeholder, not an address: it cannot be
traced further.
Amount is the FULL value of those outputs; Pro_Rata_Amount is the part of it this address paid
for - its own input value divided by the total input value of the same transaction. When the
address signs a transaction together with other addresses, every output of it is credited to
each of them in full, so Amount can be many times the money this address ever moved (over a
hundred times on an address that keeps co-signing with a large wallet). The rows are therefore
RANKED by Pro_Rata_Amount, and that is the figure to add up or to compare between Targets.
Own_Input_BCH on every row is what the address itself put into the transactions read: the
Pro_Rata_Amount of all its edges adds up to at most that, the rest being fees and change it paid
back to itself.
SCOPE: reads the address's most recent max_txs spending transactions (default 1000, at most
2000); Amount, Pro_Rata_Amount and Txs cover those transactions only. Two scope columns on
every row state what was covered: how many of those transactions were read and the time of the
oldest one. Next_Cursor is set whenever the batch
was full, so older transactions may exist - pass it as cursor (same address and max_txs) to
continue with the next older batch; an empty Next_Cursor means the history ends here. The
outputs of those transactions come from a copy of the transaction data that misses a few whole
blocks (a handful a month), so an edge can be absent; bch_tx_flow and
bch_sent_from_address read the complete data. When nothing matched in the transactions
read, ONE row comes back with an empty Target that carries only these scope columns - that
means no edge in this batch, not in the whole history.
Each row: Source, Target, Currency, Amount, Pro_Rata_Amount, Txs, Own_Input_BCH, Spend_Txs_Scanned, Oldest_Spend_Time, Next_Cursor.
Bch related addresses
LIKELY SAME-OWNER Bitcoin Cash (bch, BCH, mainnet) addresses (common-input-ownership heuristic): addresses that
co-signed inputs together with this address in the same transactions — a strong signal
they belong to the same wallet/entity.
NOT the addresses it paid → use bch_flow_edges.
Shared_Txs is how many txs they co-spent in, Co_Input_BCH the co-input volume.
Returns up to limit rows (default 20, at most 1000), most Shared_Txs first.
Use to expand an address into its cluster
during tracing. CAVEAT: CoinJoin/mixer txs break the heuristic (false positives) — treat
high-fan-in shared txs with caution. A shared input is evidence of one owner, not proof.
SCOPE: reads the address's most recent max_txs spending transactions (default 1000, at most
2000). Two scope columns on every row state what was covered: how many of those
transactions were read and the time of the oldest one.
Next_Cursor is set whenever the batch was full, so older transactions may exist - pass it as
cursor (same address and max_txs) to continue with the next older batch; an empty Next_Cursor
means the history ends here. The inputs of those transactions come from a copy of the
transaction data that misses a few whole blocks (a handful a month), so a transaction counted in
Spend_Txs_Scanned can contribute no related address; bch_tx_flow and
bch_sent_from_address read the complete data. When nothing matched in the transactions
read, ONE row comes back with an empty Related_Address that carries only these scope columns -
that means nothing in this batch, not in the whole history.
No address labels are returned here: identify addresses with
labels_for_addresses(chain='bitcoin-cash'), which knows only a handful of Bitcoin Cash
addresses (a few exchange reserve wallets, sanctioned entities) — pass many addresses in ONE
call; an empty answer there is a coverage gap, not a clean address.
Each row: Related_Address, Shared_Txs, Co_Input_BCH, Spend_Txs_Scanned, Oldest_Spend_Time, Next_Cursor.
Bch sent from address
OUTGOING Bitcoin Cash (bch, BCH, mainnet) — transactions where this address SPENT coins (its inputs): tx,
amount, time, and the prior tx that funded each input. Indexed by address (fast).
NOT what this address received → use bch_address_received.
Page back through history with cursor: pass the Cursor value of the LAST row of a
page to get the next one — unlike before_time it never skips rows that share a
timestamp (a busy address can spend hundreds of inputs in the same second).
Set sort='amount' to surface the largest spends instead of the newest.
To see WHERE the funds went, take a Spend_Tx and call bch_tx_flow — its non-change
outputs are the recipients.
Bch transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Bitcoin Cash transfers data. The bch_* tools
are the PRIORITY; use this ONLY when none of them can answer. No query optimizer here: filter
on the per-key tables and NEVER JOIN big tables (use `IN (SELECT …)`, the only way to "follow"
across txs).
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
This data runs on an older release of the engine: some functions and syntax in that reference
(map() and toJSONString() among them) do not exist here — when a statement is refused for an
unknown function or setting, use the forms shown in this description.
Tables (db `bitcash`): `bitcash.inputs_by_address` / `outputs_by_address` (by address),
`bitcash.inputs_by_tx` (by tx; cols address, tx_id_bin, value, output_tx_id_bin, output_index)
and `bitcash.outputs_by_tx` (by tx; cols address, tx_id_bin, output_index, value and
direction, an Enum unknown/not_change/change/likely_not_change/likely_change/mining/fee),
`bitcash.transactions` (one row per tx: tx_date, input_value, output_value, fee_value,
is_coinbase; look a hash's tx_date up here first). Every `bitcash` table is partitioned by
month on `tx_date` — add a `tx_date` bound whenever you can: a read by address or tx alone
probes every month since the chain began. Db `bitcash_flow`: address_transfers (keyed by
address; AggregateFunction → -Merge; its count / sum totals hold a few duplicated and missing
records — take exact totals from the `bitcash` tables), outputs_to_address (by address),
tx_inputs / tx_outputs (by block, tx_index; a few whole blocks are missing).
Addresses & tx ids: `address` is a plain string (CashAddr q… / p… lowercase WITHOUT the
bitcoincash: prefix; m-… / d-… placeholders for bare multisig / non-standard scripts; empty
for coinbase inputs and fee rows); `tx_id_bin = unhex('<64hex>')`, output `hex(tx_id_bin)`;
`value` is Decimal(18,8), already in BCH (a JSON number: above about 1e8 it loses its last
decimals - return toString(value) when every decimal matters). Date-times come back as
'YYYY-MM-DD hh:mm:ss' UTC; select formatDateTime(tx_time, '%FT%TZ') for ISO-8601
(2026-09-21T15:04:18Z), the shape the other tools return. Address labels: none in this data —
use labels_for_addresses(chain='bitcoin-cash'). Read-only; JSONEachRow. A result of more than
25,000 rows is not cut off - the whole query fails with an error - so aggregate (GROUP BY,
count) or add a LIMIT of at most 25,000. 64-bit integers come back as JSON numbers, exact only
up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x).
Bch tx flow
Full flow of one or several Bitcoin Cash (bch, BCH, mainnet) transactions: all INPUT addresses (senders) and
OUTPUT addresses (receivers) with amounts, each annotated. Note shows change/not_change
on outputs — the real payment is the non-change output(s). THE hop primitive for BCH
tracing: follow a non-change recipient to its own spends (bch_sent_from_address) and
repeat. tx_hash is the 64-hex id as returned by the other bch tools; pass several ids
separated by "|" (up to 20; ids past the 20th are ignored) to expand a batch in one call — the Tx column attributes each row.
Side is input, output, fee (the miner fee of the transaction — one row per transaction, 0 on a
block reward) or not_found (a requested id that does not exist here — check the id and the
chain). Index is the position of the input or output inside the transaction, and Funded_By_Tx on
an input row is the transaction that created the coins being spent — pass it back to this tool
to trace one hop backwards. An output whose address is also one of the transaction's OWN input
addresses is marked change_to_input_address: the wallet paid itself, so it is not a payment to
someone else.
Outputs whose script has no standard address carry a placeholder instead of an address: m-… (a
bare multisig script) or d-… (a data or other non-standard script; one d-… value can stand for
many unrelated outputs). A placeholder cannot be looked up with the address tools — the
visible trail ends there.
No address labels are returned here: identify addresses with
labels_for_addresses(chain='bitcoin-cash'), which knows only a handful of Bitcoin Cash
addresses (a few exchange reserve wallets, sanctioned entities) — pass many addresses in ONE
call; an empty answer there is a coverage gap, not a clean address.
Bch wallet ledger
WALLET LEDGER of a set of Bitcoin Cash (bch, BCH, mainnet) addresses — one row per transaction
that touches the client's addresses, NETTED over the whole set: what the set received, what it
spent and the difference, so change paid back to one of the client's own addresses is neither
income nor a payment. Built for accounting and tax ledgers, wallet statements and
reconciliation. NOT one address's raw outputs or inputs — use bch_address_received /
bch_sent_from_address; NOT the addresses inside one transaction — use bch_tx_flow.
Pass EVERY address of the wallet in `addresses` (up to 50 per call). Netting covers only the
addresses passed: an address of the same wallet that is left out looks like an outside party —
its change shows as a payment out and its inputs as someone else's (Fee_Shared = 1 is the
usual sign). bch_related_addresses suggests addresses that sign together with a known one.
Direction: in (the set funded no input — a receipt), out (the set funded inputs and at least
one output went elsewhere), self (the set funded inputs and every output came back to it — a
consolidation or an internal move, only the fee left). Net_BCH = Received_BCH − Spent_BCH,
negative on a payment; on an outgoing payment the amount that went to others is −Net −
Fee_Paid. On a transaction funded together with other addresses (Fee_Shared = 1) Net can be
positive although Direction is out or self — read the sign of Net. Received_Raw / Spent_Raw /
Net_Raw / Fee_Raw / Fee_Paid_Raw are the same amounts as exact integer strings in the smallest
unit (1 BCH = 100,000,000 units) — use them when every digit matters; the decimal columns are
JSON numbers.
Fee_BCH is the miner fee of the whole transaction. Fee_Paid_BCH is the set's part of it: all
of it when the set funded every input, nothing when it funded none (a receipt costs the
receiver no fee), and — when other addresses funded inputs too (Fee_Shared = 1) — the fee
split by input value (fee × spent ÷ all inputs, rounded half up to the smallest unit),
Input_Share being the set's share of the transaction's inputs; what the other parties paid is
Fee − Fee_Paid. A shared fee is an estimate: either addresses of the wallet are missing from
`addresses`, or several parties built the transaction together. Is_Coinbase = 1 marks a block
reward (newly mined coins).
Fee_Status is exact, or unknown when the transaction's totals are not available — the fee
columns are then null and a spend's Direction reads unknown.
Price_Usd is the USD price of BCH at the start of the transaction's hour (hourly market data).
Value_Usd = Net × Price_Usd, signed like Net, and Fee_Usd = Fee_Paid × Price_Usd.
Price_Status: ok; no_price (no market price for that hour — the newest hour or two have none
yet — Price_Usd and the USD columns are null, never a guess and never today's price); suspect
(the price is more than twice, or less than half, the price one day earlier AND one day later
— a likely data glitch, so Value_Usd and Fee_Usd are left empty).
Rows come newest first in block order (Block, then Tx_Index). The window is the last `days`
(default 365), or after_time … before_time for a fixed period such as a tax year. Page with
cursor: pass the Cursor of the LAST row, with every other argument unchanged, to get the next
older page. after_time and before_time bound every page, so no page leaves the period. With
after_time set, a page shorter than `limit` is the end of the period; without it each page
looks `days` back from its cursor, so a walk continues into older history until a page comes
back short. Addresses_Requested / Addresses_Used on every row say how many distinct addresses
were passed and how many were read. No rows = no transaction of these addresses in the window.
Counterparties are not listed: pass a Tx to bch_tx_flow.
SCAN COST grows with the window and with the number of addresses, not with limit: prefer a
fixed period to a very large `days`. A window in which the addresses have more than 200,000
inputs or outputs (an exchange-size address) is refused — narrow it.
Bsc address flow summary
ADDRESS FLOW SUMMARY / top counterparties: who a BSC (bsc, BNB, BNB Chain, Binance Smart Chain) address sends funds TO and receives funds FROM, in one call — profile
(sent/received transfer counts, distinct receivers/senders) + TOP receivers AND TOP
senders. Collapses address_profile + trace_next_hop(out) + an incoming convergence
into a single call — call this FIRST when triaging a hop. Returns a computed Role:
receive_only (no outgoing transfer in the period) / send_only (no incoming one) /
no_transfers (neither) / consolidator (senders ≫ receivers) / distributor (receivers ≫
senders) / hub (thousands of both — don't trace deeper) / relay. The profile counts
and Role ALWAYS cover all tokens: currency and contract narrow only the top arrays
(bsc_address_profile applies them to every count). Pass the returned counterparties to
labels_for_addresses to identify them. For raw rows use bsc_transfers_in/out; for one
direction's full ranking use bsc_trace_next_hop. READING THE TOP ARRAYS: one entry per
(counterparty, TOKEN) — the same address repeats once per token it moved. Symbols are
not unique; identify a token by `contract`. On a very high-traffic address (an
exchange or bridge hub) this aggregates a lot of history and can take tens of seconds
— narrow it with contract or currency to one token to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
after_time / before_time bound BOTH the profile counts and the top arrays to one period
(without them both cover the whole history).
Counts and arrays are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with bsc_tx_transfers, then trace that address
(bsc_transactions lists where this account's transactions go).
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
BNB moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Bsc address profile
BSC (bsc, BNB, BNB Chain, Binance Smart Chain) address STATISTICS — successful transfer counts
out/in and distinct counterparties (receivers/senders), across all tokens. Fast triage of an address
during tracing. For one-call triage that ALSO returns the top counterparties,
prefer bsc_address_flow_summary.
Role from the ratio (cheap triage before flow_edges): senders ≫ receivers =
consolidator / sweep; receivers ≫ senders = distributor; ~1↔1 = relay (layering);
thousands of both = mega-hub (exchange / treasury — don't trace deeper). No outgoing transfers at all =
receive-only and no incoming = send-only, not a consolidator / distributor.
First_Sent / Last_Sent / First_Received / Last_Received = first and last transfer in each
direction. Bound a period with after_time / before_time; restrict to one token with
contract (or currency) to also get Sent_Amount / Received_Amount in that token's units -
without a token filter the amounts are NULL, because different tokens cannot be added.
currency / contract (like after_time / before_time) narrow EVERY count, time and
amount here - unlike bsc_address_flow_summary, whose profile counts always cover
all tokens.
The counts are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with bsc_tx_transfers, then trace that address
(bsc_transactions lists where this account's transactions go).
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
BNB moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Bsc contract creator
WHO CREATED a BSC (bsc, BNB, BNB Chain, Binance Smart Chain) contract, and what a creator deployed. Answers "who created / deployed
this token", "who is behind this contract", "what else did this deployer launch", and
"were these tokens made by the same person" (serial deployers, rug and clone farms).
NOT who funded a wallet → use bsc_first_funder.
On this chain a token IS a contract, so pass the TOKEN'S CONTRACT ADDRESS in contracts.
TWO WAYS TO CALL IT, pick one - setting both is refused, because the two answer different questions and their shared-creator counters would be mixed:
contracts="0x..|0x.." - up to 50 contracts, one row each: Creator (the address whose
code ran CREATE), Signer, Created_At, Block_Number, Tx, Deploy_Value, Gas_Used and
Deploy_Success. Rows whose creator or signer is SHARED come first: Creator_Shared /
Signer_Shared count how many of the requested contracts have that same creator / signer, which
is what exposes one person behind many tokens. A longer list is not an error: the first
50 distinct addresses are used and the rest ignored - compare Contracts_Requested
with Contracts_Used and split a longer list into several calls.
creator="0x.." - the contracts THAT address deployed, newest first, inside the window (days,
after_time, before_time), at most `limit` rows. Use it on the Creator or Signer a first call
returned, to see the rest of that deployer's output. Creator_Shared is empty in this form -
every row has the same creator by construction, so the counter would only repeat the row count.
Creator_Is_Contract = 1 means the contract was deployed BY OTHER CONTRACT CODE - a
token factory, a launchpad or a DEX pair factory - and then Creator is that factory, which is the
SAME address for every token it ever made, while Signer is the person who asked for it. On a
factory-made token read Signer, not Creator. Deploy_Depth is how deep inside the transaction the
deployment happened (0 = the transaction itself) and Call_Index is the deployment's position in
that transaction - one transaction can deploy several contracts, and Call_Index is what tells
those rows apart when everything else about them looks the same.
Status = NOT_FOUND means no deployment is recorded for that address: it is a plain wallet, not a
contract, or the deployment is older than the recorded history of this chain. Creations is
normally 1; a higher number means the address was created more than once (destroyed and
redeployed), and the row describes the EARLIEST creation.
THE CREATOR'S STORY IS NOT IN THIS TOOL - build it from the returned addresses:
labels_for_addresses (is the creator a known entity, exchange or scammer), bsc_first_funder
(who funded the creator, and whether several creators share one sponsor), bsc_address_profile
and bsc_transfers_in / bsc_transfers_out (what that wallet does), bsc_flows_between
(what moved between the creator and the token). The token's own name, symbol, price and market
cap come from find_token_by_address; its first buyers from early_buyers.
Amounts are the native coin, never USD. COST: a contract lookup has to walk every call that address
ever received, so a handful of ordinary tokens answer in a second or two while one exchange-scale
contract can take ~20 s on its own. If you already know roughly when the contract appeared, bound it
with after_time / before_time - that alone took one busy token from 21 s to 2 s. A row-limit error
("Limit for rows ... exceeded") means the batch is too busy: bound it that way, or split the list.
Bsc find calls
FIND SMART-CONTRACT CALLS on one BSC (bsc, BNB, BNB Chain, Binance Smart Chain) contract by method — "who called method X on contract Y, when, did it succeed"
in one filtered query.
NOT event logs a contract emitted → use bsc_find_events.
NOT what one address signed or received → use bsc_transactions.
Returns up to limit calls (default 20, at most 10000), newest first; page back with the last row's
Cursor - each page covers the days window ending there.
Match by method name (e.g. "transfer"), full signature
("transfer(address,uint256)"), or raw 4-byte selector (e.g. "a9059cbb");
optionally restrict to one caller. Searches the last 7 days by default —
set after_time to reach further back. Includes reverted calls when
only_successful=0 (with error text).
Then inspect a transaction's fund movements with bsc_tx_transfers.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Calls inside one transaction come back in no particular order - sort them by
CallPath if you need execution order.
Each row carries the call's decoded input Arguments (Name, Type, Value; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). A method the decoder does not recognise has
no Arguments.
Value is the BNB attached to the call.
Each row: Tx, Time, Block, Caller, Method, Signature, Selector, CallPath, Value, Success, Reverted, Error, GasUsed, Cursor, Arguments, ArgumentCount, ArgumentsTruncated.
Bsc find events
FIND EVENT LOGS on one BSC (bsc, BNB, BNB Chain, Binance Smart Chain) contract by event name — e.g. every
"Transfer", or a rare custom event. `contract` matches logs that contract
EMITTED ITSELF (a proxy token is found by its public address), plus — when
it is a proxy's implementation — the logs its code emitted for that proxy.
Logs emitted by OTHER contracts it calls are NOT included: a DEX router's
swaps are logged by the pair/pool it calls, not by the router, so
contract=<router> with event=Swap returns NOTHING even when the router
executed thousands of swaps. An empty result for a router, aggregator or
smart wallet does NOT mean there was no activity. To get those logs, pass
the pair/pool (or token) address as `contract`; if it is unknown, list the
router's transactions with bsc_find_calls (contract=<router>) and pass their
Tx hashes (up to 50, "|"-separated) to bsc_tx_events with event=Swap — its
CallPath shows which call produced each log. Narrow matched rows to
one emitting contract with `emitter`. Match by event
name or full signature (case-insensitive). Searches the last 7 days by
default — set after_time to reach further back. Page back through history
with cursor: pass the Cursor value of the LAST row of a page to get the
next one (each page covers the days window ending at that cursor) — unlike
before_time it never skips rows that share a timestamp. Then inspect a
transaction's fund movements with bsc_tx_transfers. For finding the CALLS
themselves (method, selector, revert info) use bsc_find_calls.
Each row carries the log's decoded Arguments (Name, Type, Value, Indexed; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). Parsed=0 rows have no Arguments. Argument NAMES
come from one known ABI for the Signature: a contract that emits the same Signature with
other parameter names gets those names too, so a Name can be wrong for this contract -
identify an argument by its position and Type, and check a doubtful one against the raw
Topics/Data. For raw
Topics/Data, or the rest of a cut list, pass the Tx to bsc_tx_events. Unrecognized events can be found here by `topic0`.
ONE ROW = ONE EVENT LOG. A contract can be called many times inside a single
transaction and each of those internal calls can emit its own logs, so the same
event name legitimately repeats within one transaction - that is NOT duplication.
Rows are told apart by CallIndex (which internal call emitted the log) together
with LogInCall (the log's position inside that call); that pair is unique within
a transaction. To COUNT events, count the returned rows - never de-duplicate on
Tx/Event/Emitter, which would merge genuinely different logs into one.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Rows inside one transaction come back in no particular order - sort them by
CallIndex then LogInCall if you need emission order.
Bsc first funder
FIRST FUNDER / COMMON SPONSOR of up to 50 BSC (bsc, BNB, BNB Chain, Binance Smart Chain) addresses: for each address the
EARLIEST incoming transfer INSIDE THE WINDOW (by default the last 90 days - not necessarily
the first ever, see WINDOW) - who sent it (Funder), who signed that transaction (Tx_From), when
(First_Time), how much of which token, and the Tx. Answers "who funded these wallets" and "do
these wallets share a sponsor" (sybil, sniper and airdrop-farming clusters).
NOT who deployed a contract → use bsc_contract_creator.
Pass the addresses separated by "|". A longer list is not an error: the first 50 distinct addresses are
used and the rest are ignored - every row reports Addresses_Requested / Addresses_Used, so compare
them and split a longer list into several calls. One row per used address, and rows whose funder is shared come FIRST:
Funder_Shared = how many of the requested addresses have that same first funder,
Tx_From_Shared = the same count for the transaction's signer - it catches wallets funded
through a public batch-sending contract, where Funder is the contract and the signer is the real
sponsor. Funder_In_Set = 1 when the funder is itself one of the requested addresses (a funding
chain). Via_Internal_Call = 1 marks funding sent by contract code deeper inside a transaction; the transfer a transaction makes itself is top-level, so it reads 0. Incoming_In_Window = how many qualifying incoming transfers the address had in
the window.
WHAT COUNTS AS FUNDING: by default native BNB only (asset_type="native"), including BNB sent by contract code (include_internal=1); set
asset_type="token" or "all", or pin one token with contract, to look at token funding instead.
Zero-amount transfers, mints and self-transfers never count; raise min_amount to skip dust.
WINDOW: the first funding INSIDE the last `days` days (default 90, at most 730)
ending at before_time or now, or starting at after_time within the same limit.
Status = FIRST_IN_WINDOW: the earliest qualifying funding between Window_From and Window_To. It is
the address's first-ever funding ONLY if the address had no activity before Window_From, and this
tool does not check that. To check one address, compare First_Time with the First_Received of
bsc_address_profile for it (an earlier First_Received means it already received something
before the window). To look further back, call again with before_time set to the row's
Window_From. Status = NO_INCOMING_IN_WINDOW means nothing qualifying
arrived in the window: call again for those addresses with before_time set to their Window_From
to look further back.
COST grows with the number of addresses times the length of the window: for dozens of
addresses keep days at 90 and page back with before_time rather than widening
days (this chain is among the slowest for this lookup: keep it to about 10 addresses and 90 days per call). A row-limit error ("Limit for rows ... exceeded") means an address in the list is too busy (an
exchange, bridge or popular contract) or the window is too long - drop that address or shorten
days. Amounts are TOKEN UNITS, never USD. To identify funders, pass them to
labels_for_addresses; to see everything that moved between the funders and the wallets, use
bsc_flows_between.
Bsc flow edges
MONEYFLOW GRAPH EDGES out of a BSC (bsc, BNB, BNB Chain, Binance Smart Chain) address:
one row per counterparty — Source → Target, total Amount, Currency.
NOT choosing which counterparty to follow next → use bsc_trace_next_hop.
Building block for
a MoneyFlow DIAGRAM. HOW TO DRAW: call this per address/hop, collect the edges, and
emit a Mermaid `graph LR` (one node per address; each edge labeled with
Amount+Currency). Pass the Target addresses to labels_for_addresses to flag EXCHANGE
nodes and STOP expanding those branches. Exchange labels here are dense; mixer and
bridge labels are effectively absent on this chain, so an unlabeled node proves
nothing. Pass a currency to avoid spam-token noise; call WITHOUT a currency filter to
spot a token → USDT off-ramp at the edge. For raw per-transfer rows use
bsc_transfers_out. Each edge carries the token Contract — pin one exact token with the
contract param. On a very high-traffic address (an exchange or bridge hub) this
aggregates a lot of history and can take tens of seconds — narrow it with contract or
currency to one token to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
Bound one period with after_time / before_time. First_Seen / Last_Seen give each
edge's first and last transfer.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
BNB moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Bsc flows between
FLOWS BETWEEN TWO ADDRESS SETS on BSC (bsc, BNB, BNB Chain, Binance Smart Chain): every successful transfer (tokens and native
BNB) from any address of set A to any address of set B, and back, in ONE call - "did these
wallets ever pay those wallets", "how much moved between my suspects and the exchange
wallets", "which of these deposit addresses sent to that hot wallet". Pass up to
50 addresses per set separated by "|" (0xabc…|0xdef…). A longer list is not an error:
the first 50 distinct addresses of each set are used and the rest are ignored -
every row reports A_Addresses_Requested / A_Addresses_Used and B_Addresses_Requested /
B_Addresses_Used, so compare them and split a longer set into several calls. Leave addresses_b EMPTY to get every
counterparty of the A set, both directions, grouped per A address - the multi-address form of
bsc_flow_edges.
mode="summary" (default) returns one row per (Direction, Sender, Receiver, token) with
Transfers, total Amount, First_Time, Last_Time and the latest Tx, ordered by `sort`.
mode="rows" returns the individual transfers newest first; page with cursor: pass the Cursor
value of the LAST row, with all other arguments unchanged, to get the next page (a summary row
carries no Cursor). A rows-mode row is a LEDGER LINE: besides the amount it carries Amount_Raw (the
exact integer amount in the token's smallest unit) with Decimals, Block and Tx_Index, and Price_Usd
(the token's USD price at the time of the transfer), Value_Usd = Amount x Price_Usd and
Price_Status - "ok"; "no_price" = no price is known for this token at that time, so Price_Usd and
Value_Usd are empty (never read that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check it with
price_at. BNB and the major tokens are priced to 5 minutes, every other token has ONE price per day, so the value of a small token is approximate. On a summary row those seven columns are empty: a total over a
period has no single price. Self = 1 (both modes) marks a movement whose counterparty is another
address of set A - a move inside the set, not income and not spending.
Direction A_TO_B = sent by an A address to a B address, B_TO_A = sent by a B
address to an A address; an address listed in both sets appears in both directions. With
addresses_b empty the same holds for a transfer between two A addresses: it is listed as A_TO_B
for its sender AND as B_TO_A for its receiver, so never add rows of both directions together.
WINDOW: the last `days` days (default 30, at most 366) ending at before_time, or now;
after_time sets the start instead, within the same 366-day limit. Window_From / Window_To
on every row show the range searched; for an older period set before_time. An empty result means
no transfer between the sets in that window.
COST: the search is keyed on set A, so put the SMALLER and less busy set in addresses_a -
individual wallets, not exchange hot wallets, bridges or token contracts. If the call fails
with a row-limit error ("Limit for rows ... exceeded"), swap the two sets, shorten days, or
split set A. Cost also grows with the number of addresses in set A times the window - this chain is among the slowest for it: keep set A to about 5 addresses (fewer addresses help far more than a shorter window).
Each row carries the token Contract (empty for native BNB); a symbol alone can match
look-alike clones, so pin one token with contract, or restrict to native or tokens with
asset_type. Amount is in TOKEN UNITS: totals of different tokens must not be compared or added
together, there is no usd filter (min_amount is in token units), and sort="amount" is only
meaningful with one token pinned. To identify the addresses, pass them to
labels_for_addresses.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Bsc native balances
NATIVE COIN BALANCE of up to 50 BSC (bsc, BNB, BNB Chain, Binance Smart Chain) addresses you ALREADY HAVE: each address's
current BNB balance (the coin that pays gas) - for filtering a known set of wallets down to the funded
ones, e.g. an airdrop cohort.
To discover holders you do not have yet, use bsc_token_holders. NOT one address's transfer history → use bsc_address_flow_summary.
Pass the addresses separated by "|" (0x..) - up to 50; addresses after the
50th distinct one are ignored (compare Addresses_Requested with Addresses_Used), so split
a longer list into several calls.
WINDOW: only balances UPDATED within the last `since_days` days (default 7) are read, so an address
that has not moved its native coin in that window returns NO row. Use the same window you searched for
activity - e.g. the window of bsc_token_senders - because an active wallet's balance is always
fresh there; a wider window costs more for no gain on active wallets.
Native_Balance is in BNB (18 decimals); Native_Balance_Raw is the exact integer amount (wei);
Balance_As_Of is when that balance was last updated. To identify the addresses, pass them to
labels_for_addresses.
Each row: Address, Native_Balance, Native_Balance_Raw, Balance_As_Of, Addresses_Requested, Addresses_Used.
Bsc token holders
TOP HOLDERS of a BSC (bsc, BNB, BNB Chain, Binance Smart Chain) token by CURRENT on-chain balance — holder address +
balance, largest first. Use for token analysis: whales, holder concentration,
distribution. Pass the token CONTRACT address (not a wallet). Label the returned
holders with labels_for_addresses to spot EXCHANGE wallets; team / LP / bridge
wallets are rarely labeled on this chain, so expect many unlabeled holders. This is
real on-chain balance, NOT DEX-trade PnL — for trader profitability use
profitable_traders_by_token / trader_positions. Balances exclude NFTs (fungible only).
SCOPE. days=0 (default) ranks EVERY holder over the token's whole history, and
Holders_In_Window is then the token's holder count (positive balances). A very
widely held token - a major stablecoin, for example - has too much history for that:
the call answers at once with one Status=TOO_LARGE row instead of timing out. Then
call with days=30 (days=7 if that is still TOO_LARGE): it ranks the holders whose
balance CHANGED in that window, and their balances are still exact current balances.
A holder that did not move the token in the window is absent, so on such a token the
page is the top of the ACTIVE holders, not a guaranteed global top. To reach quieter
holders pass Next_Cursor as cursor: each page covers the next older window of `days`
and lists only holders whose LAST balance change falls inside it, so no holder
appears on two pages and the top N of all pages merged is the global top N. Each
page also checks all later activity up to today, so paging far back on a very busy
token ends in TOO_LARGE - stop there and say the list covers only the windows read.
Next_Cursor is empty when the token has nothing older. Window_From / Window_To are
the dates a page covers (Window_From empty = whole history). A row with an empty
Holder is a status row: read Status (TOO_LARGE / NO_HOLDERS / BAD_CURSOR).
Balance is in the token's OWN units, never USD - no USD value is available in
this data, so there is no usd filter and balances of different tokens are not
comparable. `Decimals` gives the scale. Holders whose recorded balance is NEGATIVE
are dropped and counted in Negative_Balances_Excluded: the transfer history behind
them is inconsistent (typically a transfer recorded twice or missing), so that
balance cannot be trusted - and the same kind of error can inflate a positive
balance of that token. A balance far above the token's total supply is such an
artifact, not a whale: check it with token_supply or the holder's transfers before
reporting it.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
Bsc token senders
TOKEN SENDERS COHORT on BSC (bsc, BNB, BNB Chain, Binance Smart Chain): the addresses that SENT a given token at least `min_transfers`
times inside a time window, most recently active first - "wallets that actively use this token",
"build a cohort or airdrop list of recent senders of this token".
NOT one wallet's own outgoing transfers → use bsc_transfers_out.
This counts SENDERS of the token, one row per sender; it does not value or label them - pass the
returned addresses to labels_for_addresses, and to bsc_native_balances to keep only funded
wallets. By default only normal user wallets (EOAs) that sent the token in their OWN transaction count (eoa_only=1); set eoa_only=0 to include contract senders.
Pass the token's CONTRACT address in token (0x-hex (case-insensitive)); a symbol also matches clone tokens, so
pin the exact contract.
WINDOW: the last `days` days (default 1, at most 30) ending at before_time or now;
after_time sets the start instead. A sender must reach `min_transfers` sends WITHIN this window, so a
short recent window keeps only clearly-active wallets - the recency the cohort wants. There is no
full-history mode: to go further back, page with before_time.
PAGING: newest-active first, at most `limit` rows. If the result has `limit` rows there may be more -
set before_time to the oldest Last_Transfer_Time returned and call again, then combine and
de-duplicate the pages.
COST grows with the token's volume times the window: widen `days` step by step. A row-limit error
("Limit for rows ... exceeded") means the token is too busy for that window - shorten days.
Each row: Address, Transfers, First_Transfer_Time, Last_Transfer_Time.
Bsc trace dominant path
AUTO-WALK the dominant (largest-total-amount) OUTGOING edge of ONE token from a
BSC (bsc, BNB, BNB Chain, Binance Smart Chain) address, hop by hop, up to 5 hops — collapses ~5 manual
bsc_trace_next_hop calls into one. Every hop returns Hop*_To (the address that
received), Hop*_Token (the contract of the token that moved) and Hop*_Edge_Total, plus
Hops_Found (how many hops resolved) and Path_Status for the walk itself.
Hop*_Edge_Total is NOT the amount that travelled along the path: it is the ALL-TIME
total of EVERY transfer of that token between that hop's sender and receiver, so it
can be orders of magnitude larger than the sum you are tracing and the hop totals are
not comparable with each other. To break one edge down — its transfer count
(Transfers), first/last seen, and the full ranking of that address's edges — call
bsc_trace_next_hop on the hop's sender.
The walk NEVER goes back to an address it has already visited (the seed included), so
it cannot bounce back and forth between the same two wallets — each hop is the largest
edge to a NEW address.
READ Path_Status FIRST — NO_MATCH means the token filter matched nothing (wrong symbol,
or that symbol belongs to a different token — pass `contract`), PATH_END means the
trail really ran out, DEPTH_LIMIT means it may continue past hop 5. All-NULL hops with
NO_MATCH are a filter problem, not a dead end.
Pass the hop addresses to labels_for_addresses and read down to the FIRST labeled
address (CEX / mixer / bridge) — that's the destination.
Pin the token with `contract` whenever you know it — a SYMBOL is not unique, clone
tokens reuse popular symbols, and with a symbol alone the hops can drift between
look-alike tokens; compare the per-hop token contract to spot that.
LIMITS: follows only the single biggest edge per hop (misses splits / fan-outs), fixed
depth 5, and transfers to the burn address are not followed. For branching / adaptive
tracing call bsc_trace_next_hop hop by hop, identify each hop with
labels_for_addresses and choose the next address yourself (prompt_playbook with
playbook=money_flow returns the full step-by-step procedure); for one hop's full ranking use
bsc_trace_next_hop. Heavy multi-hop walk — can time out on a very busy address; retry,
or narrow it with `contract` / a less-busy token.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
BNB moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Bsc trace next hop
CONVERGENCE primitive for BSC (bsc, BNB, BNB Chain, Binance Smart Chain) tracing:
aggregate an address's OUTGOING flow by counterparty (Σ amount, count, first/last
seen), largest first. Answers "where did the bulk of the funds go" in one shot. Narrow
with currency (recommended), after_time (= when funds reached this hop), min_amount.
NOT edges for a diagram → use bsc_flow_edges.
NOT an automatic walk along the largest edge → use bsc_trace_dominant_path.
Pass the top counterparties to labels_for_addresses to spot an EXCHANGE deposit or hot
wallet (= the destination, stop there). Exchange coverage here is deep, but mixer and
bridge labels are effectively absent on this chain — an unlabeled hop is NOT evidence
that the funds went nowhere notable. One row per (counterparty, TOKEN); identify a
token by Contract, not Currency. On a very high-traffic address (an exchange or bridge
hub) this aggregates a lot of history and can take tens of seconds — narrow it with
contract or currency to one token, and with after_time to one period, which is far
faster than one wide call.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
BNB moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Returns up to top_n rows (default 10, at most 10000), largest Total_Amount first; no rows = nothing matched.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Each row: Counterparty, Currency, Symbol_NonAscii, Contract, Total_Amount, Transfers, First_Seen, Last_Seen.
Bsc transactions
Paginated TRANSACTION HISTORY of a BSC (bsc, BNB, BNB Chain, Binance Smart Chain) address — every transaction it
sent or received directly (its own From or To; a token it received inside
someone else's transaction is in bsc_transfers_in), newest first, deep-pageable. To page back,
pass the last Tx of the previous page as `before` (returns strictly older
transactions; an unknown hash returns an empty page). `until` bounds the
other side (only transactions newer than that tx). NOT a token-transfer
list — for token/BNB movements use bsc_transfers_out / bsc_transfers_in;
to see what ONE transaction did, pass its hash to bsc_tx_transfers.
Value and Fee are in BNB.
Each row also carries the exact fee: Fee_Wei is the fee in the smallest unit as a decimal
string (Fee is the same amount in BNB, rounded to 8 decimals); Fee_Usd is its value at the
BNB price at the time of the transaction. Fee_Price_Status says how far to trust that
price: ok; no_price (Fee_Usd is empty - never read it as zero); suspect (the price is more than twice, or less than half, the price a day earlier AND a day
later - a likely data glitch, so Fee_Usd is left empty). A
failed transaction (Success = 0) still paid its fee: treat it as a fee-only row.
The fee was paid by the sender (From): count it for this address only on rows where From is the address.
Fee_Status is ok on this chain.
Returns up to limit transactions per page (default 25, at most 10000), newest first, failed transactions
(Success = 0) included unless only_successful=1; a page shorter than limit is the last one.
An unknown `until` hash is not applied (no lower bound); `before` and `until` together bound one range.
With after_time / before_time only that period is read, so the cost follows the period, not the
address's whole history; pass the same pair with every page.
Each row: Tx, Time, Block, TxIndex, From, To, Value, Success, Fee, Fee_Status, Fee_Wei, Fee_Usd, Fee_Price_Status.
Bsc transfers in
INCOMING BSC (bsc, BNB, BNB Chain, Binance Smart Chain) transfers to an address —
where this wallet received funds from.
NOT the opposite direction → use bsc_transfers_out.
NOT totals per sender → use bsc_address_flow_summary.
Returns up to limit transfers (default 20, at most 10000), newest first by default; page back with the
last row's Cursor.
Use
to trace the source of funds backwards. For an address with many transfers set
min_amount or sort='amount', else large sources hide behind recent dust. Query WITHOUT
a currency filter to see where the bulk of funds originated. To identify
counterparties, pass the returned addresses to labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. BNB and the major tokens are priced to 5 minutes, every other token has ONE
price per day, so the value of a small token is approximate. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
Each row: Time, Sender, Currency, Symbol_NonAscii, Contract, Amount, Internal, Tx, Cursor, Amount_Raw, Decimals, Block, Tx_Index, Price_Status, Price_Usd, Value_Usd.
Bsc transfers out
OUTGOING BSC (bsc, BNB, BNB Chain, Binance Smart Chain) transfers from an address —
where this wallet sent funds. Narrow with after_time (flows after funds arrived),
currency (follow one asset), min_amount (drop dust). For an aggregated "where did the
bulk go" view use bsc_trace_next_hop; for incoming use bsc_transfers_in. For an
address with many transfers set min_amount or sort='amount', else large counterparties
hide behind recent dust. Query WITHOUT a currency filter to surface the token → USDT
off-ramp. Page back through history with cursor: pass the Cursor value of the LAST row
of a page to get the next one — unlike before_time it never skips rows that share a
timestamp. To identify counterparties, pass the returned addresses to
labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. BNB and the major tokens are priced to 5 minutes, every other token has ONE
price per day, so the value of a small token is approximate. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
Bsc transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the BSC (Binance Smart Chain) transfers database. The
Bitquery MCP specialized bsc_* tools are the PRIORITY; use this ONLY when none of them
can answer (e.g. an uncovered table). No query optimizer here — naive SQL full-scans
huge tables and JOINs time out.
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
FAST-QUERY RULES: filter on the indexed key tables — `bsc_api.transfers_sender` (by
sender / outgoing), `bsc_api.transfers_receiver` (by receiver / incoming),
`bsc_api.transfers_tx` (by tx hash); NEVER JOIN big tables — use `WHERE col IN (SELECT …)`
(use `GLOBAL IN` when the subquery is referenced inside another subquery, otherwise its
result is not available where it is used). A subquery that itself reads a transfers table (`IN (SELECT Transfer_Sender FROM …transfers_… WHERE …)`) is re-run for every shard and rescans that table — run it as its OWN query first, then pass the result back as a literal list (`IN (unhex('a'), unhex('b'))`). To filter transfers by a specific token, read `transfers_currency` (keyed by the token contract + `Block_Time`); `transfers_sender` / `transfers_receiver` are keyed by address, so filtering those by a token contract scans the table.
Addresses are RAW BYTES `FixedString(20)` in `Transfer_Sender` / `Transfer_Receiver`
(there are NO plain string address columns) →
`Transfer_Sender = unhex(substring(lower('0x…'),3))`, output `concat('0x',lower(hex(col)))`.
Tx hash is `Transaction_Hash` `FixedString(32)` (same unhex/hex pattern).
A SET of hashes or addresses must have the column's exact type:
`Transaction_Hash IN (SELECT toFixedString(unhex(h), 32) FROM …)`, `toFixedString(…, 20)` for
an address. A plain `unhex(…)` set, or a JOIN on a String key, silently misses every value
ending in `00`; `=` and a literal list `IN (unhex('a'), unhex('b'))` are safe.
Currency symbol + decimals are INLINE columns (no dictionaries):
amount = `toFloat64(Transfer_Amount) / pow(10, Transfer_Currency_Decimals)`;
symbol = `Transfer_Currency_Symbol`; token contract = `Transfer_Currency_SmartContract` — itself RAW BYTES in a `String` column (not text), so filter it `= unhex('<40 hex, no 0x>')` and read it back `concat('0x',lower(hex(…)))`; a `'0x…'` text literal matches nothing.
Always add `AND Transfer_Success = 1`. `Transfer_Type`: 'token' = a token transfer,
'transaction' = a plain native-coin send, 'call' = native coin moved by a call. A
transaction's OWN value transfer is stored either as 'transaction' or as a 'call' with
`Call_Index = 0`; only a 'call' with `Call_Index != 0` is an INTERNAL transfer (made by
contract code deeper inside the transaction). For top-level transfers filter
`(Transfer_Type IN ('token','transaction') OR (Transfer_Type = 'call' AND Call_Index = 0))` -
`Transfer_Type IN ('token','transaction')` alone drops a large share of ordinary sends. Time =
`Block_Time`. Date-time values come back as ISO-8601 UTC, e.g. 2026-09-21T15:04:18Z (toString() of a date-time gives 2026-09-21 15:04:18). Other `bsc_api.*` tables (calls, transactions, balances) are reachable with
an explicit db prefix. Counterparty labels are NOT in this database — use
labels_for_addresses. Read-only; always add a LIMIT of at most 10,000 — a larger answer fails with an error, so aggregate (GROUP BY, count) instead. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x).
Exact table and column names first: chain_list_tables, chain_describe_table and chain_search_columns with database=bsc_api.
Bsc tx events
ALL EVENT LOGS in one or more BSC (bsc, BNB, BNB Chain, Binance Smart Chain)
transactions, including decoded arguments plus raw topics and data. Use after
bsc_find_events identifies a transaction, or whenever a tx receipt's complete event
payload is needed. Accepts up to 50 transaction hashes separated by "|". `Parsed=0`
means no ABI matched: Event, Signature and Arguments can then be empty, but Topic0,
Topics and Data remain usable. Arguments are named objects with Name, Type, string
Value and Indexed; integers are decimal strings to avoid JSON-number precision loss;
use raw Topics/Data for values wider than the decoded numeric fields. Argument names come from one known ABI for the Signature and can be another contract's wording - Topics and Data are the log's own. By default,
reverted call-frame logs, removed logs and failed transactions are
excluded; set only_successful=0 to inspect them with the returned status fields.
NOT the value moved in a transaction → use bsc_tx_transfers.
Bsc tx transfers
All token & native transfers inside one OR SEVERAL BSC (bsc, BNB, BNB Chain, Binance Smart Chain) transactions
(sender → receiver, currency, amount) — pass one tx hash or several separated
by "|" to inspect a batch in a single call. Entry point for tracing when you
have tx hashes. Also returns the called Method signature per transfer.
NOT the event logs of a transaction → use bsc_tx_events.
For an address's flow over time use bsc_transfers_out / bsc_transfers_in.
To identify the addresses, pass them to labels_for_addresses.
FRESHNESS: transfers reach this data some minutes after the trade tools see a swap, so
a hash that trader_trades or tx_trades already shows can return NO rows here yet -
that is lag, not a missing transaction: retry in a few minutes.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
Btc address flow summary
ADDRESS FLOW SUMMARY / top counterparties of a Bitcoin (btc, BTC, mainnet) address in one call: who
it pays and who pays it, plus its lifetime profile and a computed Role. Call this FIRST when
triaging a hop; for raw rows use btc_sent_from_address / btc_address_received,
for one transaction btc_tx_flow.
NOT only the lifetime totals, without counterparties → use btc_address_profile.
PROFILE columns (Lifetime_*, First_Received, Last_Received, Last_Sent) cover the address's
WHOLE history.
Lifetime_Received_BTC / Lifetime_Sent_BTC are cumulative TURNOVER, not holdings: every
output ever paid to the address (including the change it pays back to itself inside its own
spending transactions) and every input it ever spent. The same coins are counted each time
they pass through, so a busy exchange wallet's totals can exceed the coin's total supply many
times over; Lifetime_Received minus Lifetime_Sent is the balance at this address.
Bitcoin totals come from a pre-aggregated table that holds a few duplicated records: on some
busy addresses the sent total exceeds the received total by a small amount, and a negative
balance is that artifact, not an overdraft.
Role covers the WHOLE history too, not the `days` window, and follows from the lifetime counts:
no_transfers (nothing received and nothing spent) / receive_only (it never spent anything — cold
storage or an unused deposit address) / send_only (spends with no recorded receipt) / hub (more
than 1,000 distinct senders AND more than 1,000 distinct receivers — an exchange or service,
don't trace deeper) / consolidator (distinct senders more than 3 times distinct receivers) /
distributor (distinct receivers more than 3 times distinct senders) / relay (none of these).
The TOP ARRAYS cover only the last `days` (default 90) and, inside that window, at most the
1,000 most recent transactions on each side. Spend_Txs_Scanned / Receipt_Txs_Scanned say how
many were read; Spend_Txs_Truncated / Receipt_Txs_Truncated = 1 means older transactions in
the window were left out. So the arrays do NOT add up to the Lifetime_* totals. Window_Days /
Window_From state the period covered: empty arrays for an address whose Last_Sent is long
ago mean nothing moved in the window, not that it never moved — raise days.
Top_Receivers = the non-change recipients of the transactions this address spent in; Amount =
BTC paid to that recipient. Top_Senders = the input addresses of the transactions that paid
this address (change excluded); Amount = BTC this address received in those transactions.
A transaction with several input addresses credits each of them in full (they are usually one
owner — see btc_related_addresses), so Amount can be far more than what moved between the
two addresses. pro_rata_amount is Amount scaled by the input share: how much of those
transactions this address paid (Top_Receivers) or that sender paid (Top_Senders). Both arrays
are RANKED by pro_rata_amount, largest first, and min_amount / max_amount filter on it — dust
and address-poisoning payments hidden inside a large co-signed transaction have a tiny share.
Window_Own_Input_BTC is what this address itself put into the spending transactions read,
the ceiling the Top_Receivers pro-rata amounts add up to. The arrays are built from a copy of
the transaction data that misses a few whole blocks (a handful a month), so a counterparty can
be absent.
READING THE TOP ARRAYS: positional 4-tuples [counterparty, amount, txs, pro_rata_amount]; the
Top_Fields column lists those names in the same order.
No address labels are returned here: identify the address and its counterparties with
labels_for_addresses(chain='bitcoin'), which knows millions of Bitcoin addresses
(exchanges, services, mixers, sanctioned entities) — pass Address and the Top_Receivers /
Top_Senders counterparties in ONE call; an empty answer there is a coverage gap, not a
clean address.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Btc address profile
Bitcoin (btc, BTC, mainnet) address PROFILE (coinpath summary): total received & sent (BTC), number
of distinct senders/receivers, receiving/spending counts, first/last activity. Use to
triage a BTC address during tracing — how much flowed and how connected.
NOTE: an aggregate profile, not hop-by-hop edges — btc_address_flow_summary returns the
top counterparties, btc_flow_edges and btc_tx_flow the edges.
Role from the ratio: Distinct_Senders ≫ Distinct_Receivers = consolidator; the reverse =
distributor; thousands of both = mega-hub (exchange — don't trace deeper).
Received_BTC / Sent_BTC are cumulative TURNOVER, not holdings: every output ever paid to the
address (including the change it pays back to itself inside its own spending
transactions) and every input it ever spent. The same coins are counted each time they
pass through, so a busy exchange wallet's totals can exceed the coin's total supply many
times over; Received_BTC minus Sent_BTC is the balance at this address.
Bitcoin totals come from a pre-aggregated table that holds a few duplicated records: on some
busy addresses the sent total exceeds the received total by a small amount, and a negative
balance is that artifact, not an overdraft.
No address labels are returned here: identify addresses with
labels_for_addresses(chain='bitcoin'), which knows millions of Bitcoin
addresses (exchanges, services, mixers, sanctioned entities) — pass many addresses in one
call; an empty answer there is a coverage gap, not a clean address.
Btc address received
INCOMING Bitcoin (btc, BTC, mainnet) outputs for an address — every coin received (tx, amount,
output type: payment/change, time), most recent first. Indexed by
address (fast). Use to see what a BTC address received and in which transactions.
NOT what this address spent → use btc_sent_from_address.
NOT sums over its whole history → use btc_address_flow_summary or btc_address_profile.
An address can receive several coins (outputs) in one transaction, each its own row.
Returns up to limit rows (default 20, at most 1000), newest first; page back with the last
row's Cursor - a page shorter than limit is the last one. Set sort='amount' for the largest
receipts instead: a top-N page with no Cursor.
NOTE: shows receiving events, not the sender addresses (a UTXO output has
no single sender). Hop-by-hop forward tracing is not available here — it would
need joins over very large tx tables that time out. This list reads a copy of the
transaction data that misses a few whole blocks (about 6 a month), so a receipt can be
absent; btc_tx_flow on the transaction is complete.
Each row: Time, Tx, Type, Amount_BTC, Cursor.
Btc flow edges
MONEYFLOW GRAPH EDGES out of a Bitcoin (btc, BTC, mainnet) address: Source → Target
(real recipients of the address's spends, excluding change), total Amount (BTC).
Building block for a MoneyFlow DIAGRAM — call per address/hop, collect edges, render
Mermaid `graph LR`. The edges carry no labels: identify the Targets with
labels_for_addresses(chain='bitcoin') (many addresses in one call) and stop at exchange /
mixer nodes. Merge same-owner Targets via btc_related_addresses.
NOT one transaction's outputs → use btc_tx_flow.
NOT its spending transactions one by one → use btc_sent_from_address.
Returns up to limit rows (default 20, at most 1000), one per recipient of its spends.
Amount is the FULL value of those outputs; Pro_Rata_Amount is the part of it this address paid
for - its own input value divided by the total input value of the same transaction. When the
address signs a transaction together with other addresses, every output of it is credited to
each of them in full, so Amount can be many times the money this address ever moved (over a
hundred times on an address that keeps co-signing with a large wallet). The rows are therefore
RANKED by Pro_Rata_Amount, and that is the figure to add up or to compare between Targets.
Own_Input_BTC on every row is what the address itself put into the transactions read: the
Pro_Rata_Amount of all its edges adds up to at most that, the rest being fees and change it paid
back to itself.
Amount_Usd values Pro_Rata_Amount (not Amount) at each transaction's hourly USD price, summed
over the scanned spends; Usd_Priced_Share is the share of Pro_Rata_Amount that was priced and
Unpriced_Transfers the number of spending transactions whose hour had no price. Amount_Usd is
null when nothing paid to that Target could be priced - never 0 - so an unpriced edge is not
read as worthless. First_Seen / Last_Seen are the first and last spend to that Target among the
scanned transactions. min_usd drops edges below a US-dollar floor (0 = keep all); order_by =
usd ranks by Amount_Usd with unpriced edges last, while amount (the default) keeps the
Pro_Rata_Amount ranking.
SCOPE: reads the address's most recent max_txs spending transactions (default 1000, at most
2000); Amount, Pro_Rata_Amount and Txs cover those transactions only. Two scope columns on
every row state what was covered: how many of those transactions were read and the time of the
oldest one. Next_Cursor is set whenever the batch
was full, so older transactions may exist - pass it as cursor (same address and max_txs) to
continue with the next older batch; an empty Next_Cursor means the history ends here. The
outputs of those transactions come from a copy of the transaction data that misses a few whole
blocks (a handful a month), so an edge can be absent; btc_tx_flow and
btc_sent_from_address read the complete data. When nothing matched in the transactions
read, ONE row comes back with an empty Target that carries only these scope columns - that
means no edge in this batch, not in the whole history.
Each row: Source, Target, Currency, Amount, Pro_Rata_Amount, Txs, Amount_Usd, Usd_Priced_Share, Unpriced_Transfers, First_Seen, Last_Seen, Own_Input_BTC, Spend_Txs_Scanned, Oldest_Spend_Time, Next_Cursor.
Btc related addresses
LIKELY SAME-OWNER Bitcoin (btc, BTC, mainnet) addresses (common-input-ownership heuristic): addresses that
co-signed inputs together with this address in the same transactions — a strong signal
they belong to the same wallet/entity.
NOT the addresses it paid → use btc_flow_edges.
Shared_Txs is how many txs they co-spent in, Co_Input_BTC the co-input volume.
Returns up to limit rows (default 20, at most 1000), most Shared_Txs first.
Use to expand an address into its cluster
during tracing. CAVEAT: CoinJoin/mixer txs break the heuristic (false positives) — treat
high-fan-in shared txs with caution. A shared input is evidence of one owner, not proof.
SCOPE: reads the address's most recent max_txs spending transactions (default 1000, at most
2000). Two scope columns on every row state what was covered: how many of those
transactions were read and the time of the oldest one.
Next_Cursor is set whenever the batch was full, so older transactions may exist - pass it as
cursor (same address and max_txs) to continue with the next older batch; an empty Next_Cursor
means the history ends here. The inputs of those transactions come from a copy of the
transaction data that misses a few whole blocks (a handful a month), so a transaction counted in
Spend_Txs_Scanned can contribute no related address; btc_tx_flow and
btc_sent_from_address read the complete data. When nothing matched in the transactions
read, ONE row comes back with an empty Related_Address that carries only these scope columns -
that means nothing in this batch, not in the whole history.
No address labels are returned here: identify addresses with
labels_for_addresses(chain='bitcoin'), which knows millions of Bitcoin
addresses (exchanges, services, mixers, sanctioned entities) — pass many addresses in one
call; an empty answer there is a coverage gap, not a clean address.
Each row: Related_Address, Shared_Txs, Co_Input_BTC, Spend_Txs_Scanned, Oldest_Spend_Time, Next_Cursor.
Btc sent from address
OUTGOING Bitcoin (btc, BTC, mainnet) — transactions where this address SPENT coins (its inputs): tx,
amount, time, and the prior tx that funded each input. Indexed by address (fast).
NOT what this address received → use btc_address_received.
Page back through history with cursor: pass the Cursor value of the LAST row of a
page to get the next one — unlike before_time it never skips rows that share a
timestamp (a busy address can spend hundreds of inputs in the same second).
Set sort='amount' to surface the largest spends instead of the newest.
To see WHERE the funds went, take a Spend_Tx and call btc_tx_flow — its non-change
outputs are the recipients. (bitcoin.inputs_by_address)
Btc transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Bitcoin transfers databases (`bitcoin`,
`bitcoin_flow`). Bitquery MCP btc_* tools are the PRIORITY; use this ONLY when none
can answer. No query optimizer here: query the per-key
tables and NEVER JOIN big tables (use `IN (SELECT …)`, the only way to "follow" across
txs).
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
This data runs on an older release of the engine: some functions and syntax in that reference
(map() and toJSONString() among them) do not exist here — when a statement is refused for an
unknown function or setting, use the forms shown in this description.
Addresses & tx ids: `address` is a plain string (base58/bech32); `tx_id_bin =
unhex('<64hex>')`, output `hex(tx_id_bin)`; `value` is Decimal(18,8), already in BTC.
Date-times come back as 'YYYY-MM-DD hh:mm:ss' UTC; select formatDateTime(tx_time, '%FT%TZ')
for ISO-8601 (2026-09-21T15:04:18Z), the shape the other tools return. Key
tables (db `bitcoin`): inputs_by_address / outputs_by_address (by address), inputs_by_tx (by
tx; cols address, tx_id_bin, value, output_tx_id_bin, output_index) / outputs_by_tx (by tx; cols
address, tx_id_bin, output_index, value and direction, an Enum
unknown/not_change/change/likely_not_change/likely_change/mining/fee),
omni_transfers_* ; (db `bitcoin_flow`): address_transfers (AggregateFunction → -Merge).
Address labels: none in this data — use labels_for_addresses(chain='bitcoin').
Read-only; JSONEachRow. A result of more than 25,000 rows is not cut off - the whole query
fails with an error - so aggregate (GROUP BY, count) or add a LIMIT of at most 25,000.
64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as
cityHash64(...) or any other 64-bit id as toString(x).
Btc tx flow
Full flow of one or several Bitcoin (btc, BTC, mainnet) transactions: all INPUT addresses (senders) and
OUTPUT addresses (receivers) with amounts, each annotated. Note shows change/not_change
on outputs — the real payment is the non-change output(s). THE hop primitive for BTC
tracing: follow a non-change recipient to its own spends (btc_sent_from_address) and
repeat. tx_hash is the 64-hex id as returned by the other btc tools; pass several ids
separated by "|" (up to 50; ids past the 50th are ignored) to expand a batch in one call — the Tx column attributes each row.
Side is input, output, fee (the miner fee of the transaction — one row per transaction, 0 on a
block reward) or not_found (a requested id that does not exist here — check the id and the
chain). Index is the position of the input or output inside the transaction, and Funded_By_Tx on
an input row is the transaction that created the coins being spent — pass it back to this tool
to trace one hop backwards. An output whose address is also one of the transaction's OWN input
addresses is marked change_to_input_address: the wallet paid itself, so it is not a payment to
someone else.
(bitcoin.inputs_by_tx + outputs_by_tx)
No address labels are returned here: identify addresses with
labels_for_addresses(chain='bitcoin'), which knows millions of Bitcoin
addresses (exchanges, services, mixers, sanctioned entities) — pass many addresses in one
call; an empty answer there is a coverage gap, not a clean address.
Btc wallet ledger
WALLET LEDGER of a set of Bitcoin (btc, BTC, mainnet) addresses — one row per transaction that
touches the client's addresses, NETTED over the whole set: what the set received, what it
spent and the difference, so change paid back to one of the client's own addresses is neither
income nor a payment. Built for accounting and tax ledgers, wallet statements and
reconciliation. NOT one address's raw outputs or inputs — use btc_address_received /
btc_sent_from_address; NOT the addresses inside one transaction — use btc_tx_flow.
Pass EVERY address of the wallet in `addresses` (up to 50 per call). Netting covers only the
addresses passed: an address of the same wallet that is left out looks like an outside party —
its change shows as a payment out and its inputs as someone else's (Fee_Shared = 1 is the
usual sign). btc_related_addresses suggests addresses that sign together with a known one.
Direction: in (the set funded no input — a receipt), out (the set funded inputs and at least
one output went elsewhere), self (the set funded inputs and every output came back to it — a
consolidation or an internal move, only the fee left). Net_BTC = Received_BTC − Spent_BTC,
negative on a payment; on an outgoing payment the amount that went to others is −Net −
Fee_Paid. On a transaction funded together with other addresses (Fee_Shared = 1) Net can be
positive although Direction is out or self — read the sign of Net. Received_Raw / Spent_Raw /
Net_Raw / Fee_Raw / Fee_Paid_Raw are the same amounts as exact integer strings in the smallest
unit (1 BTC = 100,000,000 units) — use them when every digit matters; the decimal columns are
JSON numbers.
Fee_BTC is the miner fee of the whole transaction. Fee_Paid_BTC is the set's part of it: all
of it when the set funded every input, nothing when it funded none (a receipt costs the
receiver no fee), and — when other addresses funded inputs too (Fee_Shared = 1) — the fee
split by input value (fee × spent ÷ all inputs, rounded half up to the smallest unit),
Input_Share being the set's share of the transaction's inputs; what the other parties paid is
Fee − Fee_Paid. A shared fee is an estimate: either addresses of the wallet are missing from
`addresses`, or several parties built the transaction together. Is_Coinbase = 1 marks a block
reward (newly mined coins).
Fee_Status is exact, or unknown when the transaction's totals are not available — the fee
columns are then null and a spend's Direction reads unknown.
Price_Usd is the USD price of BTC at the start of the transaction's hour (hourly market data).
Value_Usd = Net × Price_Usd, signed like Net, and Fee_Usd = Fee_Paid × Price_Usd.
Price_Status: ok; no_price (no market price for that hour — the newest hour or two have none
yet — Price_Usd and the USD columns are null, never a guess and never today's price); suspect
(the price is more than twice, or less than half, the price one day earlier AND one day later
— a likely data glitch, so Value_Usd and Fee_Usd are left empty).
Rows come newest first in block order (Block, then Tx_Index). The window is the last `days`
(default 365), or after_time … before_time for a fixed period such as a tax year. Page with
cursor: pass the Cursor of the LAST row, with every other argument unchanged, to get the next
older page. after_time and before_time bound every page, so no page leaves the period. With
after_time set, a page shorter than `limit` is the end of the period; without it each page
looks `days` back from its cursor, so a walk continues into older history until a page comes
back short. Addresses_Requested / Addresses_Used on every row say how many distinct addresses
were passed and how many were read. No rows = no transaction of these addresses in the window.
Counterparties are not listed: pass a Tx to btc_tx_flow.
SCAN COST grows with the window and with the number of addresses, not with limit: prefer a
fixed period to a very large `days`. A window in which the addresses have more than 200,000
inputs or outputs (an exchange-size address) is refused — narrow it.
Chain capabilities
INDEX of the per-blockchain tracing tools — which capabilities exist for which chain,
with the chain's aliases and its tool-name prefix.
One row per chain, sorted by name; Not_Available lists the capabilities that chain lacks.
CALL THIS FIRST when you are unsure
whether a tool exists for a chain, or which name it has, instead of guessing a name or
concluding from a failed call that a capability is missing. Covers the 19 traced chains
(Ethereum, BSC, Polygon, Arbitrum, Base, Optimism, Robinhood, Arc, Tron, Solana, Bitcoin,
Zcash, Litecoin, Dogecoin, Dash, Bitcoin Cash, Cardano, XRP Ledger, Stellar) and Hyperliquid,
an exchange chain with its own market / trader tool family. Coverage says what a row offers:
tracing (per-chain tools under Tool_Prefix) or exchange (Hyperliquid); a chain covered by the
market tools only would show market_data, one listed only for its price price_only
(Capabilities then names the plain tools and Notes the exact currency_id), one listed with no
data none. A name that matches no row
returns ONE row with Chain "No match" and Coverage unknown that lists the traced chains: check
the spelling or try an alias - a chain that is not in this index has no transfer, address or
transaction data here. Tool names are "<prefix><capability>", e.g. prefix "eth_" +
"address_flow_summary" = eth_address_flow_summary. The market/price, trending, trader and
label tools are NOT per-chain — they take a `blockchain` parameter instead and are not
listed here. They carry token and swap data for every chain in this matrix EXCEPT Bitcoin,
Zcash, Litecoin, Dogecoin, Dash, Bitcoin Cash, Cardano, the XRP Ledger and Stellar, which
have no token or DEX data there (nor does Hyperliquid, which has its own hyperliquid_* tools).
Most of their native coins are still priced, as currencies rather than tokens (currency_price
/ currency_ohlcv with currency_id "bid:bitcoin", "zec", "ltc", "doge", "bch", "ada" or "xrp"
— price only; BTC's recorded supply and market cap there are wrong by more than 100x); DASH
and XLM are not in the currency tools: price_at (chain=dash / chain=xlm, asset native) prices
them, as it prices any traced chain's coin or token at a past moment. Each of these chains'
Notes says how to price it.
Filter with `chain` (name, alias or prefix), or leave it empty for the whole matrix.
One family is deliberately NOT chain-prefixed: the prediction-market tools are named
polymarket_* and cover Polygon only — see the Polygon row's Notes.
Hyperliquid has no transfer tracing at all: its row lists the hyperliquid_* tools under the
same capability column.
Answers instantly and never depends on a blockchain data service being reachable. The matrix
lists what the server has: a connection limited to part of the tools (for example one without
the raw-SQL or market tools) does not offer every tool named here - use the ones in your tool list.
Each row: Chain, Coverage, Aliases, Tool_Prefix, Capabilities, Not_Available, Notes.
Chain describe table
COLUMNS of one table in a per-chain transfer database — the DESCRIBE TABLE equivalent for
eth_api, bsc_api, matic_api, arbitrum_api, base_api, optimism_api, robinhood_api, arc_api, tron_api,
solana, bitcoin, bitcoin_flow, ripple, ripple_flow, cardano, cardano_flow, altcoin,
altcoin_flow, bitcash, bitcash_flow and stellar: exact column name (case-sensitive), type, default kind and
expression, comment, and whether the column is part of the sort key (filter on those first)
or the partition key. Call it before writing SQL for <chain>_transfers_raw_sql: guessed
column names fail, and the column sets differ between chains (tron has
Transaction_FeePayer and no Transaction_From; solana, bitcoin and the other non-EVM databases use lower-case names).
`table` is a name from chain_list_tables, e.g. transfers_sender, calls_to, events_tx,
transfers_to, inputs_by_address; a "<database>." prefix is accepted. An EMPTY result means
that database has no such table — call chain_list_tables. For trading_rt use
describe_table.
Chain list tables
TABLES of one per-chain transfer database (list the tables of eth, bsc, polygon, tron, solana,
bitcoin …) — the SHOW TABLES equivalent for eth_api, bsc_api,
matic_api (Polygon), arbitrum_api, base_api, optimism_api, robinhood_api, arc_api, tron_api, solana,
bitcoin, bitcoin_flow, ripple / ripple_flow (XRP Ledger), cardano / cardano_flow,
altcoin / altcoin_flow (Litecoin, Dogecoin and Dash in one database), bitcash / bitcash_flow
(Bitcoin Cash) and stellar — with each table's engine, sort key, partition key and approximate
row count (Total_Rows; empty for most solana, bitcoin, ripple, cardano, altcoin and stellar
tables, where no quick count exists). Only the tables you should query are listed, under the name to use in SQL.
The sort key is what makes raw SQL fast: filter on its LEADING columns first (e.g. the
address of transfers_sender / transfers_receiver, the transaction hash of the *_tx tables);
a query that skips them scans far more data and may time out.
Next steps: chain_describe_table for one table's columns, chain_search_columns to find which
table has a column, then that chain's <chain>_transfers_raw_sql to run the SQL (bitcoin and
bitcoin_flow → btc_transfers_raw_sql, matic_api → matic_transfers_raw_sql, ripple* →
xrp_transfers_raw_sql, cardano* → ada_transfers_raw_sql, altcoin* → ltc_ / doge_ /
dash_transfers_raw_sql with the chain's blockchain_id filter, bitcash* → bch_transfers_raw_sql,
stellar → xlm_transfers_raw_sql). Prefer a
specialized per-chain tool whenever one answers the question — chain_capabilities lists them.
For trading_rt (DEX trades, prices, OHLC bars) use list_tables; list_databases describes
every database.
Chain search columns
FIND COLUMNS by name inside one per-chain transfer database (eth_api, bsc_api, matic_api,
arbitrum_api, base_api, optimism_api, robinhood_api, arc_api, tron_api, solana, bitcoin,
bitcoin_flow, ripple, ripple_flow, cardano, cardano_flow, altcoin, altcoin_flow, bitcash,
bitcash_flow, stellar) — which table has a column like "fee", "signature", "topic", "balance" or
"prediction", with its exact name and type. `query` is a case-insensitive substring of the
column name ("_" is literal), or a LIKE pattern when it contains % (e.g. "Transaction_%");
`table` optionally narrows the search to table names matched the same way (e.g. "events").
Returns at most 100 rows — exactly 100 means there are more, so narrow `query` or `table`.
Then call chain_describe_table for the full column list of one table and
<chain>_transfers_raw_sql to query it. Searches one database per call; for trading_rt use
search_columns. Before hand-written SQL, check chain_capabilities: holders, contract calls
and events, transaction history and flow tracing already have specialized tools.
Counterparties
COUNTERPARTIES / who an address set paid and was paid by, in one call: one row
per counterparty with the USD value received from it and sent to it, the transfer
counts each way, the first and last time they transacted, and how many of those
transfers could not be priced. Counterparties are ranked by total USD (received
plus sent) and the top ones are returned; everything below the cutoff is summed
into one below_cutoff bucket, so the returned rows plus that bucket account for
the whole flow. Pass one address or a set (up to 50); a transfer between two
members of the set is left out. It can instead TOTAL the whole flow by the
counterparty's label TYPE (group_by=label_type): the SHARE of inflow and outflow
from exchanges, bridges, sanctioned or other entity types (e.g. "62% of inflow
came from exchanges, 3% from sanctioned addresses"). Every counterparty row carries
its on-chain LABELS. NOT a risk score -> use address_risk_report; NOT
the labels of one address -> use labels_for_addresses; NOT a single address's
asset totals -> use eth_address_flow_summary.
USD is the value at the time of each transfer, from the chain's price store, and
is null (never zero) for a side whose transfers could not be priced; a transfer
in a token the price gate does not cover is counted but left unpriced. usd_total
(received plus sent) is the ranking key, not a net balance: a pass-through
counterparty counts on both sides. The window is the last 90 days by default; set
after_time / before_time for a fixed period, which the answer echoes.
format json (ask for it) returns the full object: every returned row with usd_total
and the per-side unpriced-transfer counts, the below_cutoff bucket, how many
addresses were requested and used (and invalid, when any were), and the cost -
statements, rows and bytes read, and timing_ms. format markdown (the default) is a
shorter summary and counterparty table to read - the counterparty, its USD in and
out, the transfer counts, and first and last seen - without the cost or the per-row
unpriced counts.
Currency ohlcv
PRICE HISTORY of a well-known ASSET as OHLC / OHLCV candles, aggregated
across all its tokens and chains (open, high, low, close, volume + market
cap per candle). Use to chart a well-known coin (USDC, ETH, BTC, WETH, …)
over time when NO chain or contract is pinned — a more robust, fewer-gaps
series than token_ohlcv on a single contract. For a single contract use
token_ohlcv; for one pair use pair_ohlcv.
Covers Ethereum, Arbitrum, Base, Matic, Optimism, Binance Smart Chain, Tron,
Solana, Robinhood and Arc.
Use `find_currencies` first to resolve the correct Currency_Id if
you only have a symbol or name.
CANDLE SIZE: `interval_seconds` is one of 1, 3, 5, 10, 30, 60, 300, 900,
1800, 3600 (anything else is rejected). For 4h / 1d candles request 3600
and aggregate.
WINDOW: `after_time` / `before_time` (UTC — "2026-09-15 08:00:00", a date,
or unix seconds) select an absolute period: candles that start at or after
after_time and before before_time. Without after_time the window is the
`window_hours` before before_time (or before now); after_time takes
precedence. History reaches back about 30 days. Rows are newest first
(`order` = oldest for oldest first), at most `limit` per asset — to page
further back, pass the oldest returned Time as before_time.
BATCH: several ids separated by `|` (up to 50); rows are grouped per id in
the order given, and every row carries its Currency_Id; `limit`
applies per id, at most 10000 candles per call. Ids after the 50th
distinct one are ignored, not refused: every row carries
Currencies_Requested and Currencies_Used — when they differ, call again
with the rest — plus Currencies_Found (ids used that have a candle in the
window) and Currencies_Not_Found (the ids used that have none, or no such
id — resolve a name with find_currencies; when nothing is found the result is empty, so no row carries the list). Ids are
matched case-insensitively (USDC = usdc), except a Solana / Tron address inside an id.
LATEST TICK: for the price right now pass interval_seconds=1 and
window_hours=1 and take the first row — 1 s is the finest granularity.
One row per candle start (re-written copies of an open candle are
collapsed to the newest). A candle's High and Low cover EVERY swap
in it, however small and in whichever token, chain or pool, and a swap's
price is worked out from its own two amounts, so one tiny or unusual swap
can stretch them far past anything that could actually be traded at — the
closes are the robust series. The per-candle `Market_Cap_Usd` is
circulating-supply based and `null` when no circulating supply is known;
`Fdv_Usd` is the total-supply valuation — call it FDV, never market cap.
Both are `null` for an asset that carries no supply figures at this
aggregated level (several major stablecoins — use `token_ohlcv` on one
contract then) or whose supply is not credible; call `currency_price` to
see which reason applies.
Volume is 0 for the major USD stablecoins (usdc, usdt, dai, …): the
currency-level aggregation records no volume for them — not a sign that
they are untraded; their tokens carry the volume (token_ohlcv).
Currency price
Latest single-point price / market cap / supply / FDV for a well-known
ASSET (or up to 50 assets), aggregated across all its tokens and chains
(USDC, USDT, WETH, WBTC, BTC, ETH, SOL, DAI, …). NOT the Hyperliquid perp
price of an asset — that is hyperliquid_price. Use when NO chain or
contract is pinned — it beats a single token_price / pair_price (one
contract on one chain). NOT a time series — use currency_ohlcv.
Returns one row per Currency_Id with the most recent aggregated USD
price, market cap, total / circulating / max supply, fully-diluted
valuation and last-seen hour — aggregated across all tokens of that
currency on every chain Bitquery covers (Ethereum, Arbitrum, Base, Matic,
Optimism, Binance Smart Chain, Tron, Solana, Robinhood, Arc). BATCH: several
ids separated by `|` (up to 50); rows keep the order given, and an id
with no data in the last 7 days returns no row. Ids after the 50th
distinct one are ignored, not refused: every row carries
Currencies_Requested and Currencies_Used — when they differ, call again
with the rest — plus Currencies_Found (ids used that returned a row) and
Currencies_Not_Found (the ids used that did not: no data in the last 7
days, or no such id — resolve a name with find_currencies; when nothing is found the result is empty, so no row carries the list).
Ids are matched case-insensitively (USDC = usdc), except a Solana / Tron address inside an id.
VALUATION PRICE — `Market_Cap_Usd` and `Fdv_Usd` are
`Valuation_Price_Usd` x the supply, so every valuation in a row can be
recomputed from a price in the same row. `Valuation_Price_Usd` is the
average price of the newest hour in which real volume changed hands, NOT
the latest single swap: one odd or tiny swap prints a price nobody could
trade at, and an hour can close with no real volume behind it at all, which
was putting valuations out by a factor of thousands.
`Last_Price_Usd` is still that latest swap, so it can sit far from
`Valuation_Price_Usd` — when it does, the asset last really traded at the
valuation price and the latest print is an outlier or an hour with no
real volume. Quote `Valuation_Price_Usd` whenever you quote a market cap
or an FDV, and say so when the latest price differs from it.
The same basis is used by `token_price`, `token_supply`, `currency_price`,
`currency_supply`, `find_tokens`, `find_token_by_address`,
`trending_tokens`, `new_tokens` and `launch_cohort`, so a valuation does
not change from one of them to the next. Which hour counts as real volume
is judged against the volume of the period a tool reads, so a tool that
looks further back can pick an older hour than one reading only the last
few hours; for something whose recent trading is thin the two valuations
can differ, and the wider one is the better-supported figure.
MARKET CAP vs FDV — `Market_Cap_Usd` is circulating-supply based and is
returned ONLY when a circulating supply is actually known for the asset;
otherwise it is `null`. Most long-tail assets have no circulating-supply
figure, so `null` is normal and does NOT mean the asset is untraded — read
`Fdv_Usd` (the total-supply valuation) instead, and call it FDV, never
"market cap". BOTH numbers are `null` when the asset carries no supply
figures at this aggregated level — the case for several major stablecoins;
resolve one contract with `find_tokens` and use `token_price` for a valuation
then. A supply figure that is not known is `null` (unknown), never 0. A
circulating supply reported above the total supply is capped at the total,
and the market cap then equals the FDV.
BOTH valuations are also WITHHELD (`null`, with a non-empty
`Valuation_Warning`) when the supply behind them is not credible: a supply
far larger than any real asset, or a resulting valuation larger than any
plausible market. Mint-and-burn tokens report exactly that — supply parked
on a burn address (`0x…dead`, `0x0`) still counts in `Total_Supply`, so the
raw valuation lands many orders of magnitude above anything real. When
`Valuation_Warning` is set, report the valuation as unavailable and say
why — do NOT rebuild it yourself from supply x price.
`Symbol_NonAscii` = 1 flags a `Currency_Symbol` that is not plain ASCII.
That is normal for CJK / emoji token names, but it is also how a scam token
impersonates a major one: Cyrillic or Greek look-alike letters make a fake
`USDT` / `SOL` / `BTC` read identically to a human. Never treat such an
asset as the one it resembles — say the symbol is a look-alike.
Use `find_currencies` first if you only have a name / symbol and need
to resolve the correct Currency_Id.
IF THE USER EXPLICITLY WANTS A REAL-TIME / UP-TO-THE-SECOND QUOTE
("right now", "current price", "latest tick"), this tool reads from
the 1-hour bucket and can lag up to 1 hour. Call `currency_ohlcv`
with `interval_seconds=1` and `window_hours=1` instead and take the
first row — 1 s is the finest granularity Bitquery stores.
Names longer than 128 characters and symbols longer than 32 are cut and end
in `…` (spam tokens carry names of up to 34,000 characters).
Currency supply
Latest SUPPLY only (total / circulating / max), market cap and FDV for a
well-known ASSET (or up to 50) aggregated across all chains (Currency_Id).
Use when the user asks ONLY about supply / market cap of a well-known coin
(USDC, WETH, BTC, ETH, …) with NO chain or contract pinned — wider coverage
than a single token_supply row. Does NOT return price / OHLC / volume — use
currency_price for price, currency_ohlcv for a series; for a single contract
use token_supply.
Covers Ethereum, Arbitrum, Base, Matic, Optimism, Binance Smart Chain, Tron,
Solana, Robinhood and Arc.
BATCH: several ids separated by `|` (up to 50); one row per id in the
order given, and an id with no data in the last 7 days returns no row.
Ids after the 50th distinct one are ignored, not refused: every row
carries Currencies_Requested and Currencies_Used — when they differ, call
again with the rest — plus Currencies_Found (ids used that returned a
row) and Currencies_Not_Found (the ids used that did not: no data in the
last 7 days, or no such id — resolve a name with find_currencies;
when nothing is found the result is empty, so no row carries the list). Ids are matched case-insensitively (USDC = usdc), except a Solana / Tron address inside an id.
VALUATION PRICE — `Market_Cap_Usd` and `Fdv_Usd` are
`Valuation_Price_Usd` x the supply, so every valuation in a row can be
recomputed from a price in the same row. `Valuation_Price_Usd` is the
average price of the newest hour in which real volume changed hands, NOT
the latest single swap: one odd or tiny swap prints a price nobody could
trade at, and an hour can close with no real volume behind it at all, which
was putting valuations out by a factor of thousands.
It can therefore differ from the `Last_Price_Usd` that `currency_price` returns
for the same asset — that one is the latest swap. Quote
`Valuation_Price_Usd` whenever you quote a market cap or an FDV.
The same basis is used by `token_price`, `token_supply`, `currency_price`,
`currency_supply`, `find_tokens`, `find_token_by_address`,
`trending_tokens`, `new_tokens` and `launch_cohort`, so a valuation does
not change from one of them to the next. Which hour counts as real volume
is judged against the volume of the period a tool reads, so a tool that
looks further back can pick an older hour than one reading only the last
few hours; for something whose recent trading is thin the two valuations
can differ, and the wider one is the better-supported figure.
MARKET CAP vs FDV — `Market_Cap_Usd` is circulating-supply based and is
returned ONLY when a circulating supply is actually known for the asset;
otherwise it is `null`. Most long-tail assets have no circulating-supply
figure, so `null` is normal and does NOT mean the asset is untraded — read
`Fdv_Usd` (the total-supply valuation) instead, and call it FDV, never
"market cap". BOTH numbers are `null` when the asset carries no supply
figures at this aggregated level — the case for several major stablecoins;
resolve one contract with `find_tokens` and use `token_supply` for a valuation
then. A supply figure that is not known is `null` (unknown), never 0. A
circulating supply reported above the total supply is capped at the total,
and the market cap then equals the FDV.
BOTH valuations are also WITHHELD (`null`, with a non-empty
`Valuation_Warning`) when the supply behind them is not credible: a supply
far larger than any real asset, or a resulting valuation larger than any
plausible market. Mint-and-burn tokens report exactly that — supply parked
on a burn address (`0x…dead`, `0x0`) still counts in `Total_Supply`, so the
raw valuation lands many orders of magnitude above anything real. When
`Valuation_Warning` is set, report the valuation as unavailable and say
why — do NOT rebuild it yourself from supply x price.
`Symbol_NonAscii` = 1 flags a `Currency_Symbol` that is not plain ASCII.
That is normal for CJK / emoji token names, but it is also how a scam token
impersonates a major one: Cyrillic or Greek look-alike letters make a fake
`USDT` / `SOL` / `BTC` read identically to a human. Never treat such an
asset as the one it resembles — say the symbol is a look-alike.
Use `find_currencies` first if you only have a symbol / name and
need to resolve the correct Currency_Id.
Names longer than 128 characters and symbols longer than 32 are cut and end
in `…` (spam tokens carry names of up to 34,000 characters).
Dash address flow summary
ADDRESS FLOW SUMMARY / top counterparties of a Dash (dash, DASH, mainnet) address in one call: who
it pays and who pays it, plus its lifetime profile and a computed Role. Call this FIRST when
triaging a hop; for raw rows use dash_sent_from_address / dash_address_received,
for one transaction dash_tx_flow.
NOT only the lifetime totals, without counterparties → use dash_address_profile.
PROFILE columns (Lifetime_*, First_Received, Last_Received, Last_Sent) cover the address's
WHOLE history.
Lifetime_Received_DASH / Lifetime_Sent_DASH are cumulative TURNOVER, not holdings: every
output ever paid to the address (including the change it pays back to itself inside its own
spending transactions) and every input it ever spent. The same coins are counted each time
they pass through, so a busy exchange wallet's totals can exceed the coin's total supply many
times over; Lifetime_Received minus Lifetime_Sent is the balance at this address.
Dash totals come from a pre-aggregated table that holds a few duplicated and a few missing
records. They match the transactions exactly on an ordinary address; on a busy one they can be
off in either direction by up to a fraction of a percent (a Litecoin exchange address: 10
receiving outputs and 78 LTC too many, 0.14 %), so a negative balance, or a remainder on an
emptied address, can be that artifact rather than real funds. For an exact figure on a single
transaction use dash_tx_flow.
Role covers the WHOLE history too, not the `days` window, and follows from the lifetime counts:
no_transfers (nothing received and nothing spent) / receive_only (it never spent anything — cold
storage or an unused deposit address) / send_only (spends with no recorded receipt) / hub (more
than 1,000 distinct senders AND more than 1,000 distinct receivers — an exchange or service,
don't trace deeper) / consolidator (distinct senders more than 3 times distinct receivers) /
distributor (distinct receivers more than 3 times distinct senders) / relay (none of these).
The TOP ARRAYS cover only the last `days` (default 90) and, inside that window, at most the
1,000 most recent transactions on each side. Spend_Txs_Scanned / Receipt_Txs_Scanned say how
many were read; Spend_Txs_Truncated / Receipt_Txs_Truncated = 1 means older transactions in
the window were left out. So the arrays do NOT add up to the Lifetime_* totals. Window_Days /
Window_From state the period covered: empty arrays for an address whose Last_Sent is long
ago mean nothing moved in the window, not that it never moved — raise days.
Top_Receivers = the recipients of the transactions this address spent in; Amount =
DASH paid to that recipient. Top_Senders = the input addresses of the transactions that paid
this address (change cannot be excluded on Dash); Amount = DASH this address received in those transactions.
A transaction with several input addresses credits each of them in full (they are usually one
owner — see dash_related_addresses), so Amount can be far more than what moved between the
two addresses. pro_rata_amount is Amount scaled by the input share: how much of those
transactions this address paid (Top_Receivers) or that sender paid (Top_Senders). Both arrays
are RANKED by pro_rata_amount, largest first, and min_amount / max_amount filter on it — dust
and address-poisoning payments hidden inside a large co-signed transaction have a tiny share.
Window_Own_Input_DASH is what this address itself put into the spending transactions read,
the ceiling the Top_Receivers pro-rata amounts add up to. The arrays are built from a copy of
the transaction data that misses a few whole blocks (a handful a month), so a counterparty can
be absent.
READING THE TOP ARRAYS: positional 4-tuples [counterparty, amount, txs, pro_rata_amount]; the
Top_Fields column lists those names in the same order.
Address labels are not available for this chain, so exchange / mixer / service nodes
cannot be recognized from this data.
A counterparty shown as m-… or d-… is a script placeholder, not an address: it cannot be
traced further.
Change detection is not available on Dash: no output is classified as change (nearly every
Note is unknown), so the change a wallet pays to another of its own addresses counts as a
payment - Targets, Top_Receivers and tx_flow outputs can include such change. Outputs back to
the address itself are still left out; dash_related_addresses shows likely same-owner
addresses, and dash_tx_flow marks an output paid back to one of the transaction's own input
addresses as change_to_input_address, which is the only change signal Dash has.
Amounts are in DASH; no USD price for DASH is available here.
A first call on an address can take a minute or more while its transactions are fetched;
repeated calls answer in seconds.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Dash address profile
Dash (dash, DASH, mainnet) address PROFILE (lifetime summary): total received & sent (DASH),
number of distinct senders/receivers, receiving/spending counts, first/last activity. Use to
triage a DASH address during tracing — how much flowed and how connected.
NOTE: an aggregate profile, not hop-by-hop edges — dash_address_flow_summary returns the top
counterparties, dash_flow_edges and dash_tx_flow the edges.
Role from the ratio: Distinct_Senders ≫ Distinct_Receivers = consolidator; the reverse =
distributor; thousands of both = mega-hub (exchange — don't trace deeper).
Received_DASH / Sent_DASH are cumulative TURNOVER, not holdings: every output ever paid to the
address (including the change it pays back to itself inside its own spending
transactions) and every input it ever spent. The same coins are counted each time they
pass through, so a busy exchange wallet's totals can exceed the coin's total supply many
times over; Received_DASH minus Sent_DASH is the balance at this address.
Dash totals come from a pre-aggregated table that holds a few duplicated and a few missing
records. They match the transactions exactly on an ordinary address; on a busy one they can be
off in either direction by up to a fraction of a percent (a Litecoin exchange address: 10
receiving outputs and 78 LTC too many, 0.14 %), so a negative balance, or a remainder on an
emptied address, can be that artifact rather than real funds. For an exact figure on a single
transaction use dash_tx_flow.
Address labels are not available for this chain, so exchange / mixer / service nodes
cannot be recognized from this data.
Amounts are in DASH; no USD price for DASH is available here.
Dash address received
INCOMING Dash (dash, DASH, mainnet) outputs for an address — every coin received (tx, amount,
output type: payment (change is not detected on Dash), time), most recent first. Indexed by
address (fast). Use to see what a DASH address received and in which transactions.
NOT what this address spent → use dash_sent_from_address.
NOT sums over its whole history → use dash_address_flow_summary or dash_address_profile.
An address can receive several coins (outputs) in one transaction, each its own row.
Returns up to limit rows (default 20, at most 1000), newest first; page back with the last
row's Cursor - a page shorter than limit is the last one. Set sort='amount' for the largest
receipts instead: a top-N page with no Cursor.
NOTE: shows receiving events, not the sender addresses (a UTXO output has no single sender) —
pass a Tx to dash_tx_flow to see the addresses that funded it, or call
dash_address_flow_summary for the top senders. A small share of outputs is missing from this
list (a few whole blocks a month, under 0.1 % on busy addresses, a few % in some months of
2023), so it can hold a few rows fewer than dash_address_profile counts; dash_tx_flow on the
transaction is complete.
Each row: Time, Tx, Type, Amount_DASH, Cursor.
Dash flow edges
MONEYFLOW GRAPH EDGES out of a Dash (dash, DASH, mainnet) address: Source → Target (recipients
of the address's spends; change outputs to other addresses are included, see below), total
Amount (DASH). Building block for a MoneyFlow DIAGRAM — call per address/hop, collect edges,
render Mermaid `graph LR`. Merge same-owner Targets via dash_related_addresses.
NOT one transaction's outputs → use dash_tx_flow.
NOT its spending transactions one by one → use dash_sent_from_address.
Returns up to limit rows (default 20, at most 1000), one per recipient of its spends.
Address labels are not available for this chain, so exchange / mixer / service nodes cannot be
flagged and there is no label-based stop condition.
A counterparty shown as m-… or d-… is a script placeholder, not an address: it cannot be
traced further.
Change detection is not available on Dash: no output is classified as change (nearly every
Note is unknown), so the change a wallet pays to another of its own addresses counts as a
payment - Targets, Top_Receivers and tx_flow outputs can include such change. Outputs back to
the address itself are still left out; dash_related_addresses shows likely same-owner
addresses, and dash_tx_flow marks an output paid back to one of the transaction's own input
addresses as change_to_input_address, which is the only change signal Dash has.
Amount is the FULL value of those outputs; Pro_Rata_Amount is the part of it this address paid
for - its own input value divided by the total input value of the same transaction. When the
address signs a transaction together with other addresses, every output of it is credited to
each of them in full, so Amount can be many times the money this address ever moved (over a
hundred times on an address that keeps co-signing with a large wallet). The rows are therefore
RANKED by Pro_Rata_Amount, and that is the figure to add up or to compare between Targets.
Own_Input_DASH on every row is what the address itself put into the transactions read: the
Pro_Rata_Amount of all its edges adds up to at most that, the rest being fees and change it paid
back to itself.
SCOPE: reads the address's most recent max_txs spending transactions (default 1000, at most
2000); Amount, Pro_Rata_Amount and Txs cover those transactions only. Two scope columns on
every row state what was covered: how many of those transactions were read and the time of the
oldest one. Next_Cursor is set whenever the batch
was full, so older transactions may exist - pass it as cursor (same address and max_txs) to
continue with the next older batch; an empty Next_Cursor means the history ends here. The
outputs of those transactions come from a copy of the transaction data that misses a few whole
blocks (a handful a month), so an edge can be absent; dash_tx_flow and
dash_sent_from_address read the complete data. When nothing matched in the transactions
read, ONE row comes back with an empty Target that carries only these scope columns - that
means no edge in this batch, not in the whole history.
Each row: Source, Target, Currency, Amount, Pro_Rata_Amount, Txs, Own_Input_DASH, Spend_Txs_Scanned, Oldest_Spend_Time, Next_Cursor.
Dash related addresses
LIKELY SAME-OWNER Dash (dash, DASH, mainnet) addresses (common-input-ownership heuristic): addresses that
co-signed inputs together with this address in the same transactions — a strong signal
they belong to the same wallet/entity.
NOT the addresses it paid → use dash_flow_edges.
Shared_Txs is how many txs they co-spent in, Co_Input_DASH the co-input volume.
Returns up to limit rows (default 20, at most 1000), most Shared_Txs first.
Use to expand an address into its cluster
during tracing. CAVEAT: CoinJoin/mixer txs break the heuristic (false positives) — treat
high-fan-in shared txs with caution. A shared input is evidence of one owner, not proof.
SCOPE: reads the address's most recent max_txs spending transactions (default 1000, at most
2000). Two scope columns on every row state what was covered: how many of those
transactions were read and the time of the oldest one.
Next_Cursor is set whenever the batch was full, so older transactions may exist - pass it as
cursor (same address and max_txs) to continue with the next older batch; an empty Next_Cursor
means the history ends here. The inputs of those transactions come from a copy of the
transaction data that misses a few whole blocks (a handful a month), so a transaction counted in
Spend_Txs_Scanned can contribute no related address; dash_tx_flow and
dash_sent_from_address read the complete data. When nothing matched in the transactions
read, ONE row comes back with an empty Related_Address that carries only these scope columns -
that means nothing in this batch, not in the whole history.
Address labels are not available for this chain, so exchange / mixer / service nodes
cannot be recognized from this data.
Each row: Related_Address, Shared_Txs, Co_Input_DASH, Spend_Txs_Scanned, Oldest_Spend_Time, Next_Cursor.
Dash sent from address
OUTGOING Dash (dash, DASH, mainnet) — transactions where this address SPENT coins (its inputs): tx,
amount, time, and the prior tx that funded each input. Indexed by address (fast).
NOT what this address received → use dash_address_received.
Page back through history with cursor: pass the Cursor value of the LAST row of a
page to get the next one — unlike before_time it never skips rows that share a
timestamp (a busy address can spend hundreds of inputs in the same second).
Set sort='amount' to surface the largest spends instead of the newest.
To see WHERE the funds went, take a Spend_Tx and call dash_tx_flow — its
outputs are the recipients.
Dash transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Dash transfers data. The dash_* tools are
the PRIORITY; use this ONLY when none of them can answer. No query optimizer here: filter on
the per-key tables and NEVER JOIN big tables (use `IN (SELECT …)`, the only way to "follow"
across txs).
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
This data runs on an older release of the engine: some functions and syntax in that reference
(map() and toJSONString() among them) do not exist here — when a statement is refused for an
unknown function or setting, use the forms shown in this description.
Every table has a `blockchain_id` column and also holds rows of other blockchain_id values:
filter `blockchain_id = 7` (Dash) on EVERY table you read, inside each IN (SELECT …) as well —
block numbers are not unique across blockchain_id values, so an unfiltered read mixes in rows
that are not Dash's. Query the plain names of db `altcoin`, NEVER a `_storage` table (each
holds only part of the data).
Tables (db `altcoin`): `altcoin.inputs_by_address` / `outputs_by_address` (by address),
`altcoin.inputs_by_tx` (by tx; cols address, tx_id_bin, value, output_tx_id_bin, output_index)
and `altcoin.outputs_by_tx` (by tx; cols address, tx_id_bin, output_index, value and
direction, an Enum
unknown/not_change/change/likely_not_change/likely_change/mining/fee/minting/genesis; on Dash
nearly every output is unknown - there is no change detection), `altcoin.transactions` (one
row per tx: tx_date, input_value, output_value, fee_value, is_coinbase; look a hash's tx_date
up here first). Every `altcoin` table is partitioned by month on `tx_date` — add a `tx_date`
bound whenever you can: a read by address or tx alone probes every month since the chain
began. Db `altcoin_flow`: address_transfers (keyed by blockchain_id, address;
AggregateFunction → -Merge; its count / sum totals hold a few duplicated and missing records —
take exact totals from the `altcoin` tables), outputs_to_address (by address), tx_inputs /
tx_outputs (by block, tx_index; a few whole blocks are missing).
Addresses & tx ids: `address` is a plain string (X… / 7… base58; m-… / d-… placeholders for
bare multisig / non-standard scripts; empty for coinbase inputs and fee rows); `tx_id_bin =
unhex('<64hex>')`, output `hex(tx_id_bin)`; `value` is Decimal(18,8), already in DASH (a JSON
number: above about 1e8 it loses its last decimals - return toString(value) when every decimal
matters). Date-times come back as 'YYYY-MM-DD hh:mm:ss' UTC; select formatDateTime(tx_time,
'%FT%TZ') for ISO-8601 (2026-09-21T15:04:18Z), the shape the other tools return. Address
labels are not available for this chain. Read-only; JSONEachRow. A result of more than 25,000
rows is not cut off - the whole query fails with an error - so aggregate (GROUP BY, count) or
add a LIMIT of at most 25,000. 64-bit integers come back as JSON numbers, exact only up to
2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x).
Dash tx flow
Full flow of one or several Dash (dash, DASH, mainnet) transactions: all INPUT addresses (senders) and
OUTPUT addresses (receivers) with amounts, each annotated. Note is unknown on nearly
every Dash output — change is not detected, so any output can be the payment. THE hop primitive for DASH
tracing: follow a recipient to its own spends (dash_sent_from_address) and
repeat. tx_hash is the 64-hex id as returned by the other dash tools; pass several ids
separated by "|" (up to 50; ids past the 50th are ignored) to expand a batch in one call — the Tx column attributes each row.
Side is input, output, fee (the miner fee of the transaction — one row per transaction, 0 on a
block reward) or not_found (a requested id that does not exist here — check the id and the
chain). Index is the position of the input or output inside the transaction, and Funded_By_Tx on
an input row is the transaction that created the coins being spent — pass it back to this tool
to trace one hop backwards. An output whose address is also one of the transaction's OWN input
addresses is marked change_to_input_address: the wallet paid itself, so it is not a payment to
someone else.
Outputs whose script has no standard address carry a placeholder instead of an address: m-… (a
bare multisig script) or d-… (a data or other non-standard script; one d-… value can stand for
many unrelated outputs). A placeholder cannot be looked up with the address tools — the
visible trail ends there.
Change detection is not available on Dash: no output is classified as change (nearly every
Note is unknown), so the change a wallet pays to another of its own addresses counts as a
payment - Targets, Top_Receivers and tx_flow outputs can include such change. Outputs back to
the address itself are still left out; dash_related_addresses shows likely same-owner
addresses, and dash_tx_flow marks an output paid back to one of the transaction's own input
addresses as change_to_input_address, which is the only change signal Dash has.
Address labels are not available for this chain, so exchange / mixer / service nodes
cannot be recognized from this data.
Dash wallet ledger
WALLET LEDGER of a set of Dash (dash, DASH, mainnet) addresses — one row per transaction that
touches the client's addresses, NETTED over the whole set: what the set received, what it
spent and the difference, so change paid back to one of the client's own addresses is neither
income nor a payment. Built for accounting and tax ledgers, wallet statements and
reconciliation. NOT one address's raw outputs or inputs — use dash_address_received /
dash_sent_from_address; NOT the addresses inside one transaction — use dash_tx_flow.
Pass EVERY address of the wallet in `addresses` (up to 50 per call). Netting covers only the
addresses passed: an address of the same wallet that is left out looks like an outside party —
its change shows as a payment out and its inputs as someone else's (Fee_Shared = 1 is the
usual sign). dash_related_addresses suggests addresses that sign together with a known one.
Direction: in (the set funded no input — a receipt), out (the set funded inputs and at least
one output went elsewhere), self (the set funded inputs and every output came back to it — a
consolidation or an internal move, only the fee left). Net_DASH = Received_DASH − Spent_DASH,
negative on a payment; on an outgoing payment the amount that went to others is −Net −
Fee_Paid. On a transaction funded together with other addresses (Fee_Shared = 1) Net can be
positive although Direction is out or self — read the sign of Net. Received_Raw / Spent_Raw /
Net_Raw / Fee_Raw / Fee_Paid_Raw are the same amounts as exact integer strings in the smallest
unit (1 DASH = 100,000,000 units) — use them when every digit matters; the decimal columns are
JSON numbers.
Fee_DASH is the miner fee of the whole transaction. Fee_Paid_DASH is the set's part of it: all
of it when the set funded every input, nothing when it funded none (a receipt costs the
receiver no fee), and — when other addresses funded inputs too (Fee_Shared = 1) — the fee
split by input value (fee × spent ÷ all inputs, rounded half up to the smallest unit),
Input_Share being the set's share of the transaction's inputs; what the other parties paid is
Fee − Fee_Paid. A shared fee is an estimate: either addresses of the wallet are missing from
`addresses`, or several parties built the transaction together. Is_Coinbase = 1 marks a block
reward (newly mined coins).
Fee_Status is exact, or unknown when the transaction's totals are not available — the fee
columns are then null and a spend's Direction reads unknown.
Price_Usd is the USD price of DASH at the start of the transaction's hour (hourly market
data). Value_Usd = Net × Price_Usd, signed like Net, and Fee_Usd = Fee_Paid × Price_Usd.
Price_Status: ok; no_price (no market price for that hour — the newest hour or two have none
yet — Price_Usd and the USD columns are null, never a guess and never today's price); suspect
(the price is more than twice, or less than half, the price one day earlier AND one day later
— a likely data glitch, so Value_Usd and Fee_Usd are left empty).
Rows come newest first in block order (Block, then Tx_Index). The window is the last `days`
(default 365), or after_time … before_time for a fixed period such as a tax year. Page with
cursor: pass the Cursor of the LAST row, with every other argument unchanged, to get the next
older page. after_time and before_time bound every page, so no page leaves the period. With
after_time set, a page shorter than `limit` is the end of the period; without it each page
looks `days` back from its cursor, so a walk continues into older history until a page comes
back short. Addresses_Requested / Addresses_Used on every row say how many distinct addresses
were passed and how many were read. No rows = no transaction of these addresses in the window.
Counterparties are not listed: pass a Tx to dash_tx_flow.
SCAN COST grows with the window and with the number of addresses, not with limit: prefer a
fixed period to a very large `days`. A window in which the addresses have more than 200,000
inputs or outputs (an exchange-size address) is refused — narrow it.
Data coverage
FRESHNESS and HISTORY DEPTH of the trading data (DEX trades, token / pair /
currency price bars) per network — "is the data up to date", "is Solana
lagging", "how far back can I query", "which chains are covered", "why is
there nothing before <date>". Call it before concluding that a token has no
recent trades, when numbers look stale, or before asking any tool for a
period older than about a month. No parameters; one call, a couple of
seconds.
One row per (Dataset, Network):
- trades — individual DEX trades, per network. Read by the trade-level tools
(trader and top-trader analytics, early_buyers, token_launch_stats,
token_trade_bars, token_dex_venues, pool_recent_trades, tx_trades).
- token_bars — token price / volume bars (1 second to 1 hour), per network.
Read by the discovery tools (find_tokens, find_token_by_address,
trending_tokens, new_tokens, token_chains) and token_price / token_ohlcv /
token_supply.
- pair_bars — pair (token vs quote token, per DEX) bars, all networks in one
row. Read by pair_price / pair_ohlcv.
- currency_bars — cross-chain currency bars, all networks in one row. Read by
find_currencies and the currency_* tools.
Columns: Newest_Time (UTC time of the newest data point), Data_Lag_Minutes
(now minus Newest_Time), Oldest_Time (the oldest data still kept — trades are
kept in whole days, bars in whole hours; about 30 days for all four),
History_Days (days from Oldest_Time to now; check Status too, since a stale
network still shows the full span although its data stops at Newest_Time),
Status (ok = lag ≤ 30 min, delayed ≤ 6 h, stale = older,
no_recent_data = no trade on that network since the start of yesterday, UTC),
Tables (the underlying tables, for execute_sql) and Checked_At.
Reading it: a chain with little DEX activity can show a lag of several
minutes while fully up to date — compare with the busy chains before calling
it an outage. A network whose Oldest_Time is recent started being indexed
then (earlier history does not exist here). A network missing from the list
has had no priced trading in the last 30 days. An empty answer for a period
older than Oldest_Time is expected, not an error. The networks listed here
are the ones with DEX trading data; they are not a list of per-chain transfer
or tracing tools — call chain_capabilities for which chain has which tool.
Describe table
COLUMNS of one trading_rt table — what columns a table has (e.g. the trades tables), the DESCRIBE
TABLE equivalent: exact column name
(case-sensitive), type, default kind and expression, comment, and whether the column is part
of the sort key (filter on those first) or the partition key. Call it before writing SQL for
execute_sql: guessed or lower-cased column names fail with "Missing columns".
`table` is a name from list_tables, e.g. trades_by_token_address, trades_by_trader_address,
tokens_by_address; a "trading_rt." prefix is accepted. An EMPTY result means trading_rt has no
such table — call list_tables. To find which table carries a column, use search_columns.
Only trading_rt can be described here; tables of the per-chain databases (eth_api, solana,
bitcoin, …) are described with chain_describe_table.
Doge address flow summary
ADDRESS FLOW SUMMARY / top counterparties of a Dogecoin (doge, DOGE, mainnet) address in one call: who
it pays and who pays it, plus its lifetime profile and a computed Role. Call this FIRST when
triaging a hop; for raw rows use doge_sent_from_address / doge_address_received,
for one transaction doge_tx_flow.
NOT only the lifetime totals, without counterparties → use doge_address_profile.
PROFILE columns (Lifetime_*, First_Received, Last_Received, Last_Sent) cover the address's
WHOLE history.
Lifetime_Received_DOGE / Lifetime_Sent_DOGE are cumulative TURNOVER, not holdings: every
output ever paid to the address (including the change it pays back to itself inside its own
spending transactions) and every input it ever spent. The same coins are counted each time
they pass through, so a busy exchange wallet's totals can exceed the coin's total supply many
times over; Lifetime_Received minus Lifetime_Sent is the balance at this address.
Dogecoin totals come from a pre-aggregated table that holds a few duplicated and a few missing
records. They match the transactions exactly on an ordinary address; on a busy one they can be
off in either direction by up to a fraction of a percent (a Litecoin exchange address: 10
receiving outputs and 78 LTC too many, 0.14 %), so a negative balance, or a remainder on an
emptied address, can be that artifact rather than real funds. For an exact figure on a single
transaction use doge_tx_flow.
Role covers the WHOLE history too, not the `days` window, and follows from the lifetime counts:
no_transfers (nothing received and nothing spent) / receive_only (it never spent anything — cold
storage or an unused deposit address) / send_only (spends with no recorded receipt) / hub (more
than 1,000 distinct senders AND more than 1,000 distinct receivers — an exchange or service,
don't trace deeper) / consolidator (distinct senders more than 3 times distinct receivers) /
distributor (distinct receivers more than 3 times distinct senders) / relay (none of these).
The TOP ARRAYS cover only the last `days` (default 90) and, inside that window, at most the
1,000 most recent transactions on each side. Spend_Txs_Scanned / Receipt_Txs_Scanned say how
many were read; Spend_Txs_Truncated / Receipt_Txs_Truncated = 1 means older transactions in
the window were left out. So the arrays do NOT add up to the Lifetime_* totals. Window_Days /
Window_From state the period covered: empty arrays for an address whose Last_Sent is long
ago mean nothing moved in the window, not that it never moved — raise days.
Top_Receivers = the non-change recipients of the transactions this address spent in; Amount =
DOGE paid to that recipient. Top_Senders = the input addresses of the transactions that paid
this address (change excluded); Amount = DOGE this address received in those transactions.
A transaction with several input addresses credits each of them in full (they are usually one
owner — see doge_related_addresses), so Amount can be far more than what moved between the
two addresses. pro_rata_amount is Amount scaled by the input share: how much of those
transactions this address paid (Top_Receivers) or that sender paid (Top_Senders). Both arrays
are RANKED by pro_rata_amount, largest first, and min_amount / max_amount filter on it — dust
and address-poisoning payments hidden inside a large co-signed transaction have a tiny share.
Window_Own_Input_DOGE is what this address itself put into the spending transactions read,
the ceiling the Top_Receivers pro-rata amounts add up to. The arrays are built from a copy of
the transaction data that misses a few whole blocks (a handful a month), so a counterparty can
be absent.
READING THE TOP ARRAYS: positional 4-tuples [counterparty, amount, txs, pro_rata_amount]; the
Top_Fields column lists those names in the same order.
No address labels are returned here: identify the address and its counterparties with
labels_for_addresses(chain='dogecoin'), which knows about 40,000 Dogecoin addresses, almost
all of them exchange reserve wallets, plus a few sanctioned entities — pass Address and the
Top_Receivers / Top_Senders counterparties in ONE call; an empty answer there is a coverage
gap, not a clean address.
A counterparty shown as m-… or d-… is a script placeholder, not an address: it cannot be
traced further.
Amounts are in DOGE; for a USD value use currency_price with currency_id "doge". Amounts above
about 100 million DOGE lose their last decimal places in the JSON answer (it carries them as
floating-point numbers).
A first call on an address can take a minute or more while its transactions are fetched;
repeated calls answer in seconds.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Doge address profile
Dogecoin (doge, DOGE, mainnet) address PROFILE (lifetime summary): total received & sent
(DOGE), number of distinct senders/receivers, receiving/spending counts, first/last activity.
Use to triage a DOGE address during tracing — how much flowed and how connected.
NOTE: an aggregate profile, not hop-by-hop edges — doge_address_flow_summary returns the top
counterparties, doge_flow_edges and doge_tx_flow the edges.
Role from the ratio: Distinct_Senders ≫ Distinct_Receivers = consolidator; the reverse =
distributor; thousands of both = mega-hub (exchange — don't trace deeper).
Received_DOGE / Sent_DOGE are cumulative TURNOVER, not holdings: every output ever paid to the
address (including the change it pays back to itself inside its own spending
transactions) and every input it ever spent. The same coins are counted each time they
pass through, so a busy exchange wallet's totals can exceed the coin's total supply many
times over; Received_DOGE minus Sent_DOGE is the balance at this address.
Dogecoin totals come from a pre-aggregated table that holds a few duplicated and a few missing
records. They match the transactions exactly on an ordinary address; on a busy one they can be
off in either direction by up to a fraction of a percent (a Litecoin exchange address: 10
receiving outputs and 78 LTC too many, 0.14 %), so a negative balance, or a remainder on an
emptied address, can be that artifact rather than real funds. For an exact figure on a single
transaction use doge_tx_flow.
No address labels are returned here: identify addresses with
labels_for_addresses(chain='dogecoin'), which knows about 40,000 Dogecoin addresses, almost
all of them exchange reserve wallets, plus a few sanctioned entities — pass many addresses in
ONE call; an empty answer there is a coverage gap, not a clean address.
Amounts are in DOGE; for a USD value use currency_price with currency_id "doge". Amounts above
about 100 million DOGE lose their last decimal places in the JSON answer (it carries them as
floating-point numbers).
Doge address received
INCOMING Dogecoin (doge, DOGE, mainnet) outputs for an address — every coin received (tx, amount,
output type: payment/change, time), most recent first. Indexed by
address (fast). Use to see what a DOGE address received and in which transactions.
NOT what this address spent → use doge_sent_from_address.
NOT sums over its whole history → use doge_address_flow_summary or doge_address_profile.
An address can receive several coins (outputs) in one transaction, each its own row.
Returns up to limit rows (default 20, at most 1000), newest first; page back with the last
row's Cursor - a page shorter than limit is the last one. Set sort='amount' for the largest
receipts instead: a top-N page with no Cursor.
NOTE: shows receiving events, not the sender addresses (a UTXO output has no single sender) —
pass a Tx to doge_tx_flow to see the addresses that funded it, or call
doge_address_flow_summary for the top senders. A small share of outputs is missing from this
list (a few whole blocks a month, under 0.1 % on busy addresses, a few % in some months of
2023), so it can hold a few rows fewer than doge_address_profile counts; doge_tx_flow on the
transaction is complete.
Each row: Time, Tx, Type, Amount_DOGE, Cursor.
Doge flow edges
MONEYFLOW GRAPH EDGES out of a Dogecoin (doge, DOGE, mainnet) address: Source → Target (real
recipients of the address's spends, excluding change), total Amount (DOGE). Building block for
a MoneyFlow DIAGRAM — call per address/hop, collect edges, render Mermaid `graph LR`. Merge
same-owner Targets via doge_related_addresses.
NOT one transaction's outputs → use doge_tx_flow.
NOT its spending transactions one by one → use doge_sent_from_address.
Returns up to limit rows (default 20, at most 1000), one per recipient of its spends.
The edges carry no labels: identify the Targets with labels_for_addresses(chain='dogecoin')
(many addresses in one call) and stop at exchange / mixer nodes.
A counterparty shown as m-… or d-… is a script placeholder, not an address: it cannot be
traced further.
Amount is the FULL value of those outputs; Pro_Rata_Amount is the part of it this address paid
for - its own input value divided by the total input value of the same transaction. When the
address signs a transaction together with other addresses, every output of it is credited to
each of them in full, so Amount can be many times the money this address ever moved (over a
hundred times on an address that keeps co-signing with a large wallet). The rows are therefore
RANKED by Pro_Rata_Amount, and that is the figure to add up or to compare between Targets.
Own_Input_DOGE on every row is what the address itself put into the transactions read: the
Pro_Rata_Amount of all its edges adds up to at most that, the rest being fees and change it paid
back to itself.
SCOPE: reads the address's most recent max_txs spending transactions (default 1000, at most
2000); Amount, Pro_Rata_Amount and Txs cover those transactions only. Two scope columns on
every row state what was covered: how many of those transactions were read and the time of the
oldest one. Next_Cursor is set whenever the batch
was full, so older transactions may exist - pass it as cursor (same address and max_txs) to
continue with the next older batch; an empty Next_Cursor means the history ends here. The
outputs of those transactions come from a copy of the transaction data that misses a few whole
blocks (a handful a month), so an edge can be absent; doge_tx_flow and
doge_sent_from_address read the complete data. When nothing matched in the transactions
read, ONE row comes back with an empty Target that carries only these scope columns - that
means no edge in this batch, not in the whole history.
Each row: Source, Target, Currency, Amount, Pro_Rata_Amount, Txs, Own_Input_DOGE, Spend_Txs_Scanned, Oldest_Spend_Time, Next_Cursor.
Doge related addresses
LIKELY SAME-OWNER Dogecoin (doge, DOGE, mainnet) addresses (common-input-ownership heuristic): addresses that
co-signed inputs together with this address in the same transactions — a strong signal
they belong to the same wallet/entity.
NOT the addresses it paid → use doge_flow_edges.
Shared_Txs is how many txs they co-spent in, Co_Input_DOGE the co-input volume.
Returns up to limit rows (default 20, at most 1000), most Shared_Txs first.
Use to expand an address into its cluster
during tracing. CAVEAT: CoinJoin/mixer txs break the heuristic (false positives) — treat
high-fan-in shared txs with caution. A shared input is evidence of one owner, not proof.
SCOPE: reads the address's most recent max_txs spending transactions (default 1000, at most
2000). Two scope columns on every row state what was covered: how many of those
transactions were read and the time of the oldest one.
Next_Cursor is set whenever the batch was full, so older transactions may exist - pass it as
cursor (same address and max_txs) to continue with the next older batch; an empty Next_Cursor
means the history ends here. The inputs of those transactions come from a copy of the
transaction data that misses a few whole blocks (a handful a month), so a transaction counted in
Spend_Txs_Scanned can contribute no related address; doge_tx_flow and
doge_sent_from_address read the complete data. When nothing matched in the transactions
read, ONE row comes back with an empty Related_Address that carries only these scope columns -
that means nothing in this batch, not in the whole history.
No address labels are returned here: identify addresses with
labels_for_addresses(chain='dogecoin'), which knows about 40,000 Dogecoin addresses, almost
all of them exchange reserve wallets, plus a few sanctioned entities — pass many addresses in
ONE call; an empty answer there is a coverage gap, not a clean address.
Each row: Related_Address, Shared_Txs, Co_Input_DOGE, Spend_Txs_Scanned, Oldest_Spend_Time, Next_Cursor.
Doge sent from address
OUTGOING Dogecoin (doge, DOGE, mainnet) — transactions where this address SPENT coins (its inputs): tx,
amount, time, and the prior tx that funded each input. Indexed by address (fast).
NOT what this address received → use doge_address_received.
Page back through history with cursor: pass the Cursor value of the LAST row of a
page to get the next one — unlike before_time it never skips rows that share a
timestamp (a busy address can spend hundreds of inputs in the same second).
Set sort='amount' to surface the largest spends instead of the newest.
To see WHERE the funds went, take a Spend_Tx and call doge_tx_flow — its non-change
outputs are the recipients.
Doge transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Dogecoin transfers data. The doge_* tools
are the PRIORITY; use this ONLY when none of them can answer. No query optimizer here: filter
on the per-key tables and NEVER JOIN big tables (use `IN (SELECT …)`, the only way to "follow"
across txs).
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
This data runs on an older release of the engine: some functions and syntax in that reference
(map() and toJSONString() among them) do not exist here — when a statement is refused for an
unknown function or setting, use the forms shown in this description.
Every table has a `blockchain_id` column and also holds rows of other blockchain_id values:
filter `blockchain_id = 8` (Dogecoin) on EVERY table you read, inside each IN (SELECT …) as
well — block numbers are not unique across blockchain_id values, so an unfiltered read mixes
in rows that are not Dogecoin's. Query the plain names of db `altcoin`, NEVER a `_storage`
table (each holds only part of the data).
Tables (db `altcoin`): `altcoin.inputs_by_address` / `outputs_by_address` (by address),
`altcoin.inputs_by_tx` (by tx; cols address, tx_id_bin, value, output_tx_id_bin, output_index)
and `altcoin.outputs_by_tx` (by tx; cols address, tx_id_bin, output_index, value and
direction, an Enum
unknown/not_change/change/likely_not_change/likely_change/mining/fee/minting/genesis),
`altcoin.transactions` (one row per tx: tx_date, input_value, output_value, fee_value,
is_coinbase; look a hash's tx_date up here first). Every `altcoin` table is partitioned by
month on `tx_date` — add a `tx_date` bound whenever you can: a read by address or tx alone
probes every month since the chain began. Db `altcoin_flow`: address_transfers (keyed by
blockchain_id, address; AggregateFunction → -Merge; its count / sum totals hold a few
duplicated and missing records — take exact totals from the `altcoin` tables),
outputs_to_address (by address), tx_inputs / tx_outputs (by block, tx_index; a few whole
blocks are missing).
Addresses & tx ids: `address` is a plain string (D… / A… / 9… base58; m-… / d-… placeholders
for bare multisig / non-standard scripts; empty for coinbase inputs and fee rows); `tx_id_bin
= unhex('<64hex>')`, output `hex(tx_id_bin)`; `value` is Decimal(18,8), already in DOGE (a
JSON number: above about 1e8 it loses its last decimals - return toString(value) when every
decimal matters). Date-times come back as 'YYYY-MM-DD hh:mm:ss' UTC; select
formatDateTime(tx_time, '%FT%TZ') for ISO-8601 (2026-09-21T15:04:18Z), the shape the other
tools return. Address labels: none in this data — use labels_for_addresses(chain='dogecoin').
Read-only; JSONEachRow. A result of more than 25,000 rows is not cut off - the whole query
fails with an error - so aggregate (GROUP BY, count) or add a LIMIT of at most 25,000. 64-bit
integers come back as JSON numbers, exact only up to 2^53: return a hash such as
cityHash64(...) or any other 64-bit id as toString(x).
Doge tx flow
Full flow of one or several Dogecoin (doge, DOGE, mainnet) transactions: all INPUT addresses (senders) and
OUTPUT addresses (receivers) with amounts, each annotated. Note shows change/not_change
on outputs — the real payment is the non-change output(s). THE hop primitive for DOGE
tracing: follow a non-change recipient to its own spends (doge_sent_from_address) and
repeat. tx_hash is the 64-hex id as returned by the other doge tools; pass several ids
separated by "|" (up to 50; ids past the 50th are ignored) to expand a batch in one call — the Tx column attributes each row.
Side is input, output, fee (the miner fee of the transaction — one row per transaction, 0 on a
block reward) or not_found (a requested id that does not exist here — check the id and the
chain). Index is the position of the input or output inside the transaction, and Funded_By_Tx on
an input row is the transaction that created the coins being spent — pass it back to this tool
to trace one hop backwards. An output whose address is also one of the transaction's OWN input
addresses is marked change_to_input_address: the wallet paid itself, so it is not a payment to
someone else.
Outputs whose script has no standard address carry a placeholder instead of an address: m-… (a
bare multisig script) or d-… (a data or other non-standard script; one d-… value can stand for
many unrelated outputs). A placeholder cannot be looked up with the address tools — the
visible trail ends there.
No address labels are returned here: identify addresses with
labels_for_addresses(chain='dogecoin'), which knows about 40,000 Dogecoin addresses, almost
all of them exchange reserve wallets, plus a few sanctioned entities — pass many addresses in
ONE call; an empty answer there is a coverage gap, not a clean address.
Doge wallet ledger
WALLET LEDGER of a set of Dogecoin (doge, DOGE, mainnet) addresses — one row per transaction
that touches the client's addresses, NETTED over the whole set: what the set received, what it
spent and the difference, so change paid back to one of the client's own addresses is neither
income nor a payment. Built for accounting and tax ledgers, wallet statements and
reconciliation. NOT one address's raw outputs or inputs — use doge_address_received /
doge_sent_from_address; NOT the addresses inside one transaction — use doge_tx_flow.
Pass EVERY address of the wallet in `addresses` (up to 50 per call). Netting covers only the
addresses passed: an address of the same wallet that is left out looks like an outside party —
its change shows as a payment out and its inputs as someone else's (Fee_Shared = 1 is the
usual sign). doge_related_addresses suggests addresses that sign together with a known one.
Direction: in (the set funded no input — a receipt), out (the set funded inputs and at least
one output went elsewhere), self (the set funded inputs and every output came back to it — a
consolidation or an internal move, only the fee left). Net_DOGE = Received_DOGE − Spent_DOGE,
negative on a payment; on an outgoing payment the amount that went to others is −Net −
Fee_Paid. On a transaction funded together with other addresses (Fee_Shared = 1) Net can be
positive although Direction is out or self — read the sign of Net. Received_Raw / Spent_Raw /
Net_Raw / Fee_Raw / Fee_Paid_Raw are the same amounts as exact integer strings in the smallest
unit (1 DOGE = 100,000,000 units) — use them when every digit matters; the decimal columns are
JSON numbers.
Fee_DOGE is the miner fee of the whole transaction. Fee_Paid_DOGE is the set's part of it: all
of it when the set funded every input, nothing when it funded none (a receipt costs the
receiver no fee), and — when other addresses funded inputs too (Fee_Shared = 1) — the fee
split by input value (fee × spent ÷ all inputs, rounded half up to the smallest unit),
Input_Share being the set's share of the transaction's inputs; what the other parties paid is
Fee − Fee_Paid. A shared fee is an estimate: either addresses of the wallet are missing from
`addresses`, or several parties built the transaction together. Is_Coinbase = 1 marks a block
reward (newly mined coins).
Fee_Status is exact, or unknown when the transaction's totals are not available — the fee
columns are then null and a spend's Direction reads unknown.
Price_Usd is the USD price of DOGE at the start of the transaction's hour (hourly market
data). Value_Usd = Net × Price_Usd, signed like Net, and Fee_Usd = Fee_Paid × Price_Usd.
Price_Status: ok; no_price (no market price for that hour — the newest hour or two have none
yet — Price_Usd and the USD columns are null, never a guess and never today's price); suspect
(the price is more than twice, or less than half, the price one day earlier AND one day later
— a likely data glitch, so Value_Usd and Fee_Usd are left empty).
Rows come newest first in block order (Block, then Tx_Index). The window is the last `days`
(default 365), or after_time … before_time for a fixed period such as a tax year. Page with
cursor: pass the Cursor of the LAST row, with every other argument unchanged, to get the next
older page. after_time and before_time bound every page, so no page leaves the period. With
after_time set, a page shorter than `limit` is the end of the period; without it each page
looks `days` back from its cursor, so a walk continues into older history until a page comes
back short. Addresses_Requested / Addresses_Used on every row say how many distinct addresses
were passed and how many were read. No rows = no transaction of these addresses in the window.
Counterparties are not listed: pass a Tx to doge_tx_flow.
SCAN COST grows with the window and with the number of addresses, not with limit: prefer a
fixed period to a very large `days`. A window in which the addresses have more than 200,000
inputs or outputs (an exchange-size address) is refused — narrow it.
Amounts above about 100 million DOGE lose their last decimal places in the JSON numbers; the
_Raw strings are exact.
Early buyers
EARLY BUYERS / SNIPERS of ONE token — the wallets that traded it in the
first `seconds` after its FIRST trade, with each wallet's buy USD, the sell
USD it already took back inside that same window, its net token amount and
how many seconds after the launch it arrived. Answers "who sniped this
launch", "first buyers", "who was in at zero", "bots on this mint". NOT an
all-time trader ranking — top_traders_by_token measures a window ending
NOW, not one starting at the launch. To find launches to run this on, use
new_tokens. For a one-row summary of the launch (trades, buyers, wallets in
the first block and first 10 seconds, supply at launch, top 20 wallets) use
token_launch_stats, for one token or a given list of up to 50
(`addresses`; the top 20 wallets only for one token).
Covers rare / long-tail / newly-launched tokens.
Trader_Address is the transaction SIGNER on the EVM chains (a
transaction relayed for a smart account counts for that account). On
Solana it is the signer that owns the tokens of this swap or of another
swap in the same transaction — on a gas-sponsored swap (an app pays the
fee and the user co-signs) the user, not the fee payer — else the fee
payer. On Tron it is often a router or other contract the swap passed
through, not the signing account. A bot may sign while its own contract holds
and moves the tokens — to find that contract, open one of
the wallet's Tx_Hash values (trader_trades lists them) with the chain's
tx_transfers tool (eth_tx_transfers, bsc_tx_transfers, …); transfer
tools run on the signer then show few or no outgoing transfers.
The launch anchor is the token's EARLIEST recorded trade on that chain and
comes back as Launch_Time — check it: a token that has been trading longer
than the retained history anchors at the start of that history, not at its
real launch. Arc trades begin on 2026-09-16, so an Arc token whose Launch_Time
falls on that day may be older than that. The window covers `seconds` whole
seconds starting at
Launch_Time; its end is exclusive. An empty result means the token has no
trades on that chain (wrong address or wrong blockchain).
Wallets that only SOLD inside the window are listed too (Buys = 0, Sells >
0): they dumped tokens they did not buy in the window — received from the
deployer, an allocation or a transfer. Under the default buy_usd ranking they
come after every buyer, so the top of the list is the same buyers as
before; sort=first_offset shows them in arrival order among the buyers; a
min_usd above 0 excludes them, because it filters on buy USD.
Reading the rows: First_Trade_Offset_Sec is the wallet's lag behind the
launch — single-digit values are bots. Window_Realized_Usd = sell USD minus
buy USD inside the window, a cash flow, not profit; near zero with many buys AND sells is a flipper,
strongly negative means the wallet is still holding what it bought at the
end of the window. Net_Base is in the token's own units. Unpriced_Trades
counts trades where neither leg carried a USD price, so the USD columns
understate that wallet.
Follow a wallet up with trader_profile / trader_positions, and the token
itself with token_trade_bars, token_ohlcv or top_traders_by_token.
Symbols longer than 32 characters are cut and end in `…` (spam tokens carry
symbols of up to 32,000 characters).
Eth address flow summary
ADDRESS FLOW SUMMARY / top counterparties: who an Ethereum (eth, ETH, mainnet, L1) address sends funds TO and receives funds FROM, in one call — profile
(sent/received transfer counts, distinct receivers/senders) + TOP receivers AND TOP
senders. Collapses address_profile + trace_next_hop(out) + an incoming convergence
into a single call — call this FIRST when triaging a hop. Returns a computed Role:
receive_only (no outgoing transfer in the period) / send_only (no incoming one) /
no_transfers (neither) / consolidator (senders ≫ receivers) / distributor (receivers ≫
senders) / hub (thousands of both — don't trace deeper) / relay. The profile counts
and Role ALWAYS cover all tokens: currency and contract narrow only the top arrays
(eth_address_profile applies them to every count). Pass the returned counterparties to
labels_for_addresses to identify them. For raw rows use eth_transfers_in/out; for one
direction's full ranking use eth_trace_next_hop. READING THE TOP ARRAYS: one entry per
(counterparty, TOKEN) — the same address repeats once per token it moved. Symbols are
not unique; identify a token by `contract`. On a very high-traffic address (an
exchange or bridge hub) this aggregates a lot of history and can take tens of seconds
— narrow it with contract or currency to one token to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
after_time / before_time bound BOTH the profile counts and the top arrays to one period
(without them both cover the whole history).
Counts and arrays are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with eth_tx_transfers, then trace that address
(eth_transactions lists where this account's transactions go).
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Eth address profile
Ethereum (eth, ETH, mainnet, L1) address STATISTICS — successful transfer counts
out/in and distinct counterparties (receivers/senders), across all tokens. Fast triage of an address
during tracing. For one-call triage that ALSO returns the top counterparties,
prefer eth_address_flow_summary.
Role from the ratio (cheap triage before flow_edges): senders ≫ receivers =
consolidator / sweep; receivers ≫ senders = distributor; ~1↔1 = relay (layering);
thousands of both = mega-hub (exchange / treasury — don't trace deeper). No outgoing transfers at all =
receive-only and no incoming = send-only, not a consolidator / distributor.
First_Sent / Last_Sent / First_Received / Last_Received = first and last transfer in each
direction. Bound a period with after_time / before_time; restrict to one token with
contract (or currency) to also get Sent_Amount / Received_Amount in that token's units -
without a token filter the amounts are NULL, because different tokens cannot be added.
currency / contract (like after_time / before_time) narrow EVERY count, time and
amount here - unlike eth_address_flow_summary, whose profile counts always cover
all tokens.
The counts are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with eth_tx_transfers, then trace that address
(eth_transactions lists where this account's transactions go).
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Eth contract creator
WHO CREATED an Ethereum (eth, ETH, mainnet, L1) contract, and what a creator deployed. Answers "who created / deployed
this token", "who is behind this contract", "what else did this deployer launch", and
"were these tokens made by the same person" (serial deployers, rug and clone farms).
NOT who funded a wallet → use eth_first_funder.
On this chain a token IS a contract, so pass the TOKEN'S CONTRACT ADDRESS in contracts.
TWO WAYS TO CALL IT, pick one - setting both is refused, because the two answer different questions and their shared-creator counters would be mixed:
contracts="0x..|0x.." - up to 50 contracts, one row each: Creator (the address whose
code ran CREATE), Signer, Created_At, Block_Number, Tx, Deploy_Value, Gas_Used and
Deploy_Success. Rows whose creator or signer is SHARED come first: Creator_Shared /
Signer_Shared count how many of the requested contracts have that same creator / signer, which
is what exposes one person behind many tokens. A longer list is not an error: the first
50 distinct addresses are used and the rest ignored - compare Contracts_Requested
with Contracts_Used and split a longer list into several calls.
creator="0x.." - the contracts THAT address deployed, newest first, inside the window (days,
after_time, before_time), at most `limit` rows. Use it on the Creator or Signer a first call
returned, to see the rest of that deployer's output. Creator_Shared is empty in this form -
every row has the same creator by construction, so the counter would only repeat the row count.
Creator_Is_Contract = 1 means the contract was deployed BY OTHER CONTRACT CODE - a
token factory, a launchpad or a DEX pair factory - and then Creator is that factory, which is the
SAME address for every token it ever made, while Signer is the person who asked for it. On a
factory-made token read Signer, not Creator. Deploy_Depth is how deep inside the transaction the
deployment happened (0 = the transaction itself) and Call_Index is the deployment's position in
that transaction - one transaction can deploy several contracts, and Call_Index is what tells
those rows apart when everything else about them looks the same.
Status = NOT_FOUND means no deployment is recorded for that address: it is a plain wallet, not a
contract, or the deployment is older than the recorded history of this chain. Creations is
normally 1; a higher number means the address was created more than once (destroyed and
redeployed), and the row describes the EARLIEST creation.
THE CREATOR'S STORY IS NOT IN THIS TOOL - build it from the returned addresses:
labels_for_addresses (is the creator a known entity, exchange or scammer), eth_first_funder
(who funded the creator, and whether several creators share one sponsor), eth_address_profile
and eth_transfers_in / eth_transfers_out (what that wallet does), eth_flows_between
(what moved between the creator and the token). The token's own name, symbol, price and market
cap come from find_token_by_address; its first buyers from early_buyers.
Amounts are the native coin, never USD. COST: a contract lookup has to walk every call that address
ever received, so a handful of ordinary tokens answer in a second or two while one exchange-scale
contract can take ~20 s on its own. If you already know roughly when the contract appeared, bound it
with after_time / before_time - that alone took one busy token from 21 s to 2 s. A row-limit error
("Limit for rows ... exceeded") means the batch is too busy: bound it that way, or split the list.
Eth find calls
FIND SMART-CONTRACT CALLS on one Ethereum (eth, ETH, mainnet, L1) contract by method — "who called method X on contract Y, when, did it succeed"
in one filtered query.
NOT event logs a contract emitted → use eth_find_events.
NOT what one address signed or received → use eth_transactions.
Returns up to limit calls (default 20, at most 10000), newest first; page back with the last row's
Cursor - each page covers the days window ending there.
Match by method name (e.g. "transfer"), full signature
("transfer(address,uint256)"), or raw 4-byte selector (e.g. "a9059cbb");
optionally restrict to one caller. Searches the last 7 days by default —
set after_time to reach further back. Includes reverted calls when
only_successful=0 (with error text). Then inspect a transaction's fund
movements with eth_tx_transfers.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Calls inside one transaction come back in no particular order - sort them by
CallPath if you need execution order.
Each row carries the call's decoded input Arguments (Name, Type, Value; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). A method the decoder does not recognise has
no Arguments.
Value is the ETH attached to the call.
Each row: Tx, Time, Block, Caller, Method, Signature, Selector, CallPath, Value, Success, Reverted, Error, GasUsed, Cursor, Arguments, ArgumentCount, ArgumentsTruncated.
Eth find events
FIND EVENT LOGS on one Ethereum (eth, ETH, mainnet, L1) contract by event name — e.g. every
"Transfer", or a rare custom event. `contract` matches logs that contract
EMITTED ITSELF (a proxy token is found by its public address), plus — when
it is a proxy's implementation — the logs its code emitted for that proxy.
Logs emitted by OTHER contracts it calls are NOT included: a DEX router's
swaps are logged by the pair/pool it calls, not by the router, so
contract=<router> with event=Swap returns NOTHING even when the router
executed thousands of swaps. An empty result for a router, aggregator or
smart wallet does NOT mean there was no activity. To get those logs, pass
the pair/pool (or token) address as `contract`; if it is unknown, list the
router's transactions with eth_find_calls (contract=<router>) and pass their
Tx hashes (up to 50, "|"-separated) to eth_tx_events with event=Swap — its
CallPath shows which call produced each log. Narrow matched rows to
one emitting contract with `emitter`. Match by event
name or full signature (case-insensitive). Searches the last 7 days by
default — set after_time to reach further back, or page back with cursor:
pass the Cursor value of the LAST row of a page to get the next one, and
that page covers the same number of days ending at that row. Unlike
before_time, a cursor never skips rows that share a timestamp — a busy
contract can emit hundreds of logs in one second. Then inspect a
transaction's fund movements with eth_tx_transfers. For finding the CALLS
themselves (method, selector, revert info) use eth_find_calls.
Each row carries the log's decoded Arguments (Name, Type, Value, Indexed; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). Parsed=0 rows have no Arguments. Argument NAMES
come from one known ABI for the Signature: a contract that emits the same Signature with
other parameter names gets those names too, so a Name can be wrong for this contract -
identify an argument by its position and Type, and check a doubtful one against the raw
Topics/Data. For raw
Topics/Data, or the rest of a cut list, pass the Tx to eth_tx_events. Unrecognized events can be found here by `topic0`.
ONE ROW = ONE EVENT LOG. A contract can be called many times inside a single
transaction and each of those internal calls can emit its own logs, so the same
event name legitimately repeats within one transaction - that is NOT duplication.
Rows are told apart by CallIndex (which internal call emitted the log) together
with LogInCall (the log's position inside that call); that pair is unique within
a transaction. To COUNT events, count the returned rows - never de-duplicate on
Tx/Event/Emitter, which would merge genuinely different logs into one.
Rows inside one transaction come back in no particular order - sort them by
CallIndex then LogInCall if you need emission order.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Eth first funder
FIRST FUNDER / COMMON SPONSOR of up to 50 Ethereum (eth, ETH, mainnet, L1) addresses: for each address the
EARLIEST incoming transfer INSIDE THE WINDOW (by default the last 180 days - not necessarily
the first ever, see WINDOW) - who sent it (Funder), who signed that transaction (Tx_From), when
(First_Time), how much of which token, and the Tx. Answers "who funded these wallets" and "do
these wallets share a sponsor" (sybil, sniper and airdrop-farming clusters).
NOT who deployed a contract → use eth_contract_creator.
Pass the addresses separated by "|". A longer list is not an error: the first 50 distinct addresses are
used and the rest are ignored - every row reports Addresses_Requested / Addresses_Used, so compare
them and split a longer list into several calls. One row per used address, and rows whose funder is shared come FIRST:
Funder_Shared = how many of the requested addresses have that same first funder,
Tx_From_Shared = the same count for the transaction's signer - it catches wallets funded
through a public batch-sending contract, where Funder is the contract and the signer is the real
sponsor. Funder_In_Set = 1 when the funder is itself one of the requested addresses (a funding
chain). Via_Internal_Call = 1 marks funding sent by contract code deeper inside a transaction; the transfer a transaction makes itself is top-level, so it reads 0. Incoming_In_Window = how many qualifying incoming transfers the address had in
the window.
WHAT COUNTS AS FUNDING: by default native ETH only (asset_type="native"), including ETH sent by contract code (include_internal=1); set
asset_type="token" or "all", or pin one token with contract, to look at token funding instead.
Zero-amount transfers, mints and self-transfers never count; raise min_amount to skip dust.
WINDOW: the first funding INSIDE the last `days` days (default 180, at most 730)
ending at before_time or now, or starting at after_time within the same limit.
Status = FIRST_IN_WINDOW: the earliest qualifying funding between Window_From and Window_To. It is
the address's first-ever funding ONLY if the address had no activity before Window_From, and this
tool does not check that. To check one address, compare First_Time with the First_Received of
eth_address_profile for it (an earlier First_Received means it already received something
before the window). To look further back, call again with before_time set to the row's
Window_From. Status = NO_INCOMING_IN_WINDOW means nothing qualifying
arrived in the window: call again for those addresses with before_time set to their Window_From
to look further back.
COST grows with the number of addresses times the length of the window: for dozens of
addresses keep days at 180 and page back with before_time rather than widening
days. A row-limit error ("Limit for rows ... exceeded") means an address in the list is too busy (an
exchange, bridge or popular contract) or the window is too long - drop that address or shorten
days. Amounts are TOKEN UNITS, never USD. To identify funders, pass them to
labels_for_addresses; to see everything that moved between the funders and the wallets, use
eth_flows_between.
Eth flow edges
MONEYFLOW GRAPH EDGES out of an Ethereum (eth, ETH, mainnet, L1) address: one row per
counterparty — Source → Target, total Amount, Currency.
NOT choosing which counterparty to follow next → use eth_trace_next_hop.
Building block for a MoneyFlow
DIAGRAM. HOW TO DRAW: call this per address/hop, collect the edges, and emit a Mermaid
`graph LR` (one node per address; each edge labeled with Amount+Currency). Pass the
Target addresses to labels_for_addresses to flag CEX / mixer / bridge nodes and STOP
expanding those branches. Pass a currency to avoid spam-token noise; call WITHOUT a
currency filter to spot a token → USDT off-ramp at the edge. For raw per-transfer rows
use eth_transfers_out. Each edge carries the token Contract — pin one exact token with
the contract param. On a very high-traffic address (an exchange or bridge hub) this
aggregates a lot of history and can take tens of seconds — narrow it with contract or
currency to one token to make it far faster.
Amount is in TOKEN UNITS and totals for different tokens must not be compared or
added together. Amount_Usd values the edge in US dollars (to the cent) at each
transfer's own time, summed over the period; it is set only for the native coin
and a few major tokens, and is empty - never zero - for any other token, or when
the stored price looks unreliable. Usd_Priced_Share is the share of the edge's
amount that could be priced (0 to 1); when it is below 1 Amount_Usd covers only
that priced part, and Unpriced_Transfers counts the transfers left unpriced.
Filter edges by US dollars with min_usd, and set order_by=usd to rank by
Amount_Usd, unpriced edges last, instead of by token amount. For a token-unit
ranking pin ONE token with contract, or bound the range with min_amount /
max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
Bound one period with after_time / before_time. First_Seen / Last_Seen give each
edge's first and last transfer.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
NOT a multi-hop trace - this is ONE address's direct outgoing edges. To FOLLOW the money across up to 3 hops in a single call (USD-valued, labelled, with exchange / mixer / bridge stops), use flow_graph (chain=ethereum).
Eth flows between
FLOWS BETWEEN TWO ADDRESS SETS on Ethereum (eth, ETH, mainnet, L1): every successful transfer (tokens and native
ETH) from any address of set A to any address of set B, and back, in ONE call - "did these
wallets ever pay those wallets", "how much moved between my suspects and the exchange
wallets", "which of these deposit addresses sent to that hot wallet". Pass up to
50 addresses per set separated by "|" (0xabc…|0xdef…). A longer list is not an error:
the first 50 distinct addresses of each set are used and the rest are ignored -
every row reports A_Addresses_Requested / A_Addresses_Used and B_Addresses_Requested /
B_Addresses_Used, so compare them and split a longer set into several calls. Leave addresses_b EMPTY to get every
counterparty of the A set, both directions, grouped per A address - the multi-address form of
eth_flow_edges.
mode="summary" (default) returns one row per (Direction, Sender, Receiver, token) with
Transfers, total Amount, First_Time, Last_Time and the latest Tx, ordered by `sort`.
mode="rows" returns the individual transfers newest first; page with cursor: pass the Cursor
value of the LAST row, with all other arguments unchanged, to get the next page (a summary row
carries no Cursor). A rows-mode row is a LEDGER LINE: besides the amount it carries Amount_Raw (the
exact integer amount in the token's smallest unit) with Decimals, Block and Tx_Index, and Price_Usd
(the token's USD price at the time of the transfer), Value_Usd = Amount x Price_Usd and
Price_Status - "ok"; "no_price" = no price is known for this token at that time, so Price_Usd and
Value_Usd are empty (never read that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check it with
price_at. ETH and the major tokens are priced to 5 minutes, every other token has ONE price per day, so the value of a small token is approximate. On a summary row those seven columns are empty: a total over a
period has no single price. Self = 1 (both modes) marks a movement whose counterparty is another
address of set A - a move inside the set, not income and not spending.
Direction A_TO_B = sent by an A address to a B address, B_TO_A = sent by a B
address to an A address; an address listed in both sets appears in both directions. With
addresses_b empty the same holds for a transfer between two A addresses: it is listed as A_TO_B
for its sender AND as B_TO_A for its receiver, so never add rows of both directions together.
WINDOW: the last `days` days (default 30, at most 366) ending at before_time, or now;
after_time sets the start instead, within the same 366-day limit. Window_From / Window_To
on every row show the range searched; for an older period set before_time. An empty result means
no transfer between the sets in that window.
COST: the search is keyed on set A, so put the SMALLER and less busy set in addresses_a -
individual wallets, not exchange hot wallets, bridges or token contracts. If the call fails
with a row-limit error ("Limit for rows ... exceeded"), swap the two sets, shorten days, or
split set A. Cost also grows with the number of addresses in set A times the window.
Each row carries the token Contract (empty for native ETH); a symbol alone can match
look-alike clones, so pin one token with contract, or restrict to native or tokens with
asset_type. Amount is in TOKEN UNITS: totals of different tokens must not be compared or added
together, there is no usd filter (min_amount is in token units), and sort="amount" is only
meaningful with one token pinned. To identify the addresses, pass them to
labels_for_addresses.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Eth native balances
NATIVE COIN BALANCE of up to 50 Ethereum (eth, ETH, mainnet, L1) addresses you ALREADY HAVE: each address's
current ETH balance (the coin that pays gas) - for filtering a known set of wallets down to the funded
ones, e.g. an airdrop cohort.
To discover holders you do not have yet, use eth_token_holders. NOT one address's transfer history → use eth_address_flow_summary.
Pass the addresses separated by "|" (0x..) - up to 50; addresses after the
50th distinct one are ignored (compare Addresses_Requested with Addresses_Used), so split
a longer list into several calls.
WINDOW: only balances UPDATED within the last `since_days` days (default 7) are read, so an address
that has not moved its native coin in that window returns NO row. Use the same window you searched for
activity - e.g. the window of eth_token_senders - because an active wallet's balance is always
fresh there; a wider window costs more for no gain on active wallets.
Native_Balance is in ETH (18 decimals); Native_Balance_Raw is the exact integer amount (wei);
Balance_As_Of is when that balance was last updated. To identify the addresses, pass them to
labels_for_addresses.
Each row: Address, Native_Balance, Native_Balance_Raw, Balance_As_Of, Addresses_Requested, Addresses_Used.
Eth token holders
TOP HOLDERS of an Ethereum (eth, ETH, mainnet, L1) token by CURRENT on-chain balance — holder address +
balance, largest first. Use for token analysis: whales, holder concentration,
distribution. Pass the token CONTRACT address (not a wallet). Label the returned
holders with labels_for_addresses to spot CEX / team / LP / bridge wallets. This is
real on-chain balance, NOT DEX-trade PnL — for trader profitability use
profitable_traders_by_token / trader_positions. Balances exclude NFTs (fungible only).
SCOPE. days=0 (default) ranks EVERY holder over the token's whole history, and
Holders_In_Window is then the token's holder count (positive balances). A very
widely held token - a major stablecoin, for example - has too much history for that:
the call answers at once with one Status=TOO_LARGE row instead of timing out. Then
call with days=30 (days=7 if that is still TOO_LARGE): it ranks the holders whose
balance CHANGED in that window, and their balances are still exact current balances.
A holder that did not move the token in the window is absent, so on such a token the
page is the top of the ACTIVE holders, not a guaranteed global top. To reach quieter
holders pass Next_Cursor as cursor: each page covers the next older window of `days`
and lists only holders whose LAST balance change falls inside it, so no holder
appears on two pages and the top N of all pages merged is the global top N. Each
page also checks all later activity up to today, so paging far back on a very busy
token ends in TOO_LARGE - stop there and say the list covers only the windows read.
Next_Cursor is empty when the token has nothing older. Window_From / Window_To are
the dates a page covers (Window_From empty = whole history). A row with an empty
Holder is a status row: read Status (TOO_LARGE / NO_HOLDERS / BAD_CURSOR).
Balance is in the token's OWN units, never USD - no USD value is available in
this data, so there is no usd filter and balances of different tokens are not
comparable. `Decimals` gives the scale. Holders whose recorded balance is NEGATIVE
are dropped and counted in Negative_Balances_Excluded: the transfer history behind
them is inconsistent (typically a transfer recorded twice or missing), so that
balance cannot be trusted - and the same kind of error can inflate a positive
balance of that token. A balance far above the token's total supply is such an
artifact, not a whale: check it with token_supply or the holder's transfers before
reporting it.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
Eth token senders
TOKEN SENDERS COHORT on Ethereum (eth, ETH, mainnet, L1): the addresses that SENT a given token at least `min_transfers`
times inside a time window, most recently active first - "wallets that actively use this token",
"build a cohort or airdrop list of recent senders of this token".
NOT one wallet's own outgoing transfers → use eth_transfers_out.
This counts SENDERS of the token, one row per sender; it does not value or label them - pass the
returned addresses to labels_for_addresses, and to eth_native_balances to keep only funded
wallets. By default only normal user wallets (EOAs) that sent the token in their OWN transaction count (eoa_only=1); set eoa_only=0 to include contract senders.
Pass the token's CONTRACT address in token (0x-hex (case-insensitive)); a symbol also matches clone tokens, so
pin the exact contract.
WINDOW: the last `days` days (default 1, at most 30) ending at before_time or now;
after_time sets the start instead. A sender must reach `min_transfers` sends WITHIN this window, so a
short recent window keeps only clearly-active wallets - the recency the cohort wants. There is no
full-history mode: to go further back, page with before_time.
PAGING: newest-active first, at most `limit` rows. If the result has `limit` rows there may be more -
set before_time to the oldest Last_Transfer_Time returned and call again, then combine and
de-duplicate the pages.
COST grows with the token's volume times the window: widen `days` step by step. A row-limit error
("Limit for rows ... exceeded") means the token is too busy for that window - shorten days.
Each row: Address, Transfers, First_Transfer_Time, Last_Transfer_Time.
Eth trace dominant path
AUTO-WALK the dominant (largest-total-amount) OUTGOING edge of ONE token from an
Ethereum (eth, ETH, mainnet, L1) address, hop by hop, up to 5 hops — collapses ~5 manual
eth_trace_next_hop calls into one. Every hop returns Hop*_To (the address that
received), Hop*_Token (the contract of the token that moved) and Hop*_Edge_Total, plus
Hops_Found (how many hops resolved) and Path_Status for the walk itself.
Hop*_Edge_Total is NOT the amount that travelled along the path: it is the ALL-TIME
total of EVERY transfer of that token between that hop's sender and receiver, so it
can be orders of magnitude larger than the sum you are tracing and the hop totals are
not comparable with each other. To break one edge down — its transfer count
(Transfers), first/last seen, and the full ranking of that address's edges — call
eth_trace_next_hop on the hop's sender.
The walk NEVER goes back to an address it has already visited (the seed included), so
it cannot bounce back and forth between the same two wallets — each hop is the largest
edge to a NEW address.
READ Path_Status FIRST — NO_MATCH means the token filter matched nothing (wrong symbol,
or that symbol belongs to a different token — pass `contract`), PATH_END means the
trail really ran out, DEPTH_LIMIT means it may continue past hop 5. All-NULL hops with
NO_MATCH are a filter problem, not a dead end.
Pass the hop addresses to labels_for_addresses and read down to the FIRST labeled
address (CEX / mixer / bridge) — that's the destination.
Pin the token with `contract` whenever you know it — a SYMBOL is not unique, clone
tokens reuse popular symbols, and with a symbol alone the hops can drift between
look-alike tokens; compare the per-hop token contract to spot that.
LIMITS: follows only the single biggest edge per hop (misses splits / fan-outs), fixed
depth 5, and transfers to the burn address are not followed. For branching / adaptive
tracing call eth_trace_next_hop hop by hop, identify each hop with
labels_for_addresses and choose the next address yourself (prompt_playbook with
playbook=money_flow returns the full step-by-step procedure); for one hop's full ranking use
eth_trace_next_hop. Heavy multi-hop walk — can time out on a very busy address; retry,
or narrow it with `contract` / a less-busy token.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Eth trace next hop
CONVERGENCE primitive for Ethereum (eth, ETH, mainnet, L1) tracing: aggregate an
address's OUTGOING flow by counterparty (Σ amount, count, first/last seen), largest
first. Answers "where did the bulk of the funds go" in one shot. Narrow with currency
(recommended), after_time (= when funds reached this hop), min_amount. Pass the top
counterparties to labels_for_addresses to spot a CEX / mixer / bridge (= the
destination, stop there). One row per (counterparty, TOKEN); identify a token by
Contract, not Currency. On a very high-traffic address (an exchange or bridge hub)
this aggregates a lot of history and can take tens of seconds — narrow it with
contract or currency to one token, and with after_time to one period, which is far
faster than one wide call.
NOT edges for a diagram → use eth_flow_edges.
NOT an automatic walk along the largest edge → use eth_trace_dominant_path.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Returns up to top_n rows (default 10, at most 10000), largest Total_Amount first; no rows = nothing matched.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Each row: Counterparty, Currency, Symbol_NonAscii, Contract, Total_Amount, Transfers, First_Seen, Last_Seen.
Eth transactions
Paginated TRANSACTION HISTORY of an Ethereum (eth, ETH, mainnet, L1) address — every transaction it
sent or received directly (its own From or To; a token it received inside
someone else's transaction is in eth_transfers_in), newest first, deep-pageable. To page back,
pass the last Tx of the previous page as `before` (returns strictly older
transactions; an unknown hash returns an empty page). `until` bounds the
other side (only transactions newer than that tx). NOT a token-transfer
list — for token/ETH movements use eth_transfers_out / eth_transfers_in;
to see what ONE transaction did, pass its hash to eth_tx_transfers.
Value and Fee are in ETH.
Each row also carries the exact fee: Fee_Wei is the fee in the smallest unit as a decimal
string (Fee is the same amount in ETH, rounded to 8 decimals); Fee_Usd is its value at the
ETH price at the time of the transaction. Fee_Price_Status says how far to trust that
price: ok; no_price (Fee_Usd is empty - never read it as zero); suspect (the price is more than twice, or less than half, the price a day earlier AND a day
later - a likely data glitch, so Fee_Usd is left empty). A
failed transaction (Success = 0) still paid its fee: treat it as a fee-only row.
The fee was paid by the sender (From): count it for this address only on rows where From is the address.
Fee_Status is ok on this chain.
Returns up to limit transactions per page (default 25, at most 10000), newest first, failed transactions
(Success = 0) included unless only_successful=1; a page shorter than limit is the last one.
An unknown `until` hash is not applied (no lower bound); `before` and `until` together bound one range.
With after_time / before_time only that period is read, so the cost follows the period, not the
address's whole history; pass the same pair with every page.
Each row: Tx, Time, Block, TxIndex, From, To, Value, Success, Fee, Fee_Status, Fee_Wei, Fee_Usd, Fee_Price_Status.
Eth transfers in
INCOMING Ethereum (eth, ETH, mainnet, L1) transfers to an address — where this wallet
received funds from.
NOT the opposite direction → use eth_transfers_out.
NOT totals per sender → use eth_address_flow_summary.
Returns up to limit transfers (default 20, at most 10000), newest first by default; page back with the
last row's Cursor.
Use to trace the
source of funds backwards. For an address with many transfers set min_amount or
sort='amount', else large sources hide behind recent dust. Query WITHOUT a currency
filter to see where the bulk of funds originated. To identify counterparties,
pass the returned addresses to labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. ETH and the major tokens are priced to 5 minutes, every other token has ONE
price per day, so the value of a small token is approximate. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
Each row: Time, Sender, Currency, Symbol_NonAscii, Contract, Amount, Internal, Tx, Cursor, Amount_Raw, Decimals, Block, Tx_Index, Price_Status, Price_Usd, Value_Usd.
Eth transfers out
OUTGOING Ethereum (eth, ETH, mainnet, L1) transfers from an address — where this
wallet sent funds. Narrow with after_time (flows after funds arrived), currency
(follow one asset), min_amount (drop dust). For an aggregated "where did the bulk go"
view use eth_trace_next_hop; for incoming use eth_transfers_in. For an address with
many transfers set min_amount or sort='amount', else large counterparties hide behind
recent dust. Query WITHOUT a currency filter to surface the token → USDT off-ramp.
Page back through history with cursor: pass the Cursor value of the LAST row of a page
to get the next one — unlike before_time it never skips rows that share a timestamp.
To identify counterparties, pass the returned addresses to labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. ETH and the major tokens are priced to 5 minutes, every other token has ONE
price per day, so the value of a small token is approximate. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
Eth transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Ethereum transfers database. The
Bitquery MCP specialized eth_* tools are the PRIORITY; use this ONLY when none of them
can answer (e.g. an uncovered table). No query optimizer here — naive SQL full-scans
huge tables and JOINs time out.
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
FAST-QUERY RULES: filter on the indexed key tables — `eth_api.transfers_sender` (by
sender / outgoing), `eth_api.transfers_receiver` (by receiver / incoming),
`eth_api.transfers_tx` (by tx hash); NEVER JOIN big tables — use `WHERE col IN (SELECT …)`
(use `GLOBAL IN` when the subquery is referenced inside another subquery, otherwise its
result is not available where it is used). A subquery that itself reads a transfers table (`IN (SELECT Transfer_Sender FROM …transfers_… WHERE …)`) is re-run for every shard and rescans that table — run it as its OWN query first, then pass the result back as a literal list (`IN (unhex('a'), unhex('b'))`). To filter transfers by a specific token, read `transfers_currency` (keyed by the token contract + `Block_Time`); `transfers_sender` / `transfers_receiver` are keyed by address, so filtering those by a token contract scans the table.
Addresses are RAW BYTES `FixedString(20)` in `Transfer_Sender` / `Transfer_Receiver`
(there are NO plain string address columns) →
`Transfer_Sender = unhex(substring(lower('0x…'),3))`, output `concat('0x',lower(hex(col)))`.
Tx hash is `Transaction_Hash` `FixedString(32)` (same unhex/hex pattern).
A SET of hashes or addresses must have the column's exact type:
`Transaction_Hash IN (SELECT toFixedString(unhex(h), 32) FROM …)`, `toFixedString(…, 20)` for
an address. A plain `unhex(…)` set, or a JOIN on a String key, silently misses every value
ending in `00`; `=` and a literal list `IN (unhex('a'), unhex('b'))` are safe.
Currency symbol + decimals are INLINE columns (no dictionaries):
amount = `toFloat64(Transfer_Amount) / pow(10, Transfer_Currency_Decimals)`;
symbol = `Transfer_Currency_Symbol`; token contract = `Transfer_Currency_SmartContract` — itself RAW BYTES in a `String` column (not text), so filter it `= unhex('<40 hex, no 0x>')` and read it back `concat('0x',lower(hex(…)))`; a `'0x…'` text literal matches nothing.
Always add `AND Transfer_Success = 1`. `Transfer_Type`: 'token' = a token transfer,
'transaction' = a plain native-coin send, 'call' = native coin moved by a call. A
transaction's OWN value transfer is stored either as 'transaction' or as a 'call' with
`Call_Index = 0`; only a 'call' with `Call_Index != 0` is an INTERNAL transfer (made by
contract code deeper inside the transaction). For top-level transfers filter
`(Transfer_Type IN ('token','transaction') OR (Transfer_Type = 'call' AND Call_Index = 0))` -
`Transfer_Type IN ('token','transaction')` alone drops a large share of ordinary sends. Time =
`Block_Time`. Date-time values come back as ISO-8601 UTC, e.g. 2026-09-21T15:04:18Z (toString() of a date-time gives 2026-09-21 15:04:18). Other `eth_api.*` tables (calls, transactions, balances) are reachable with
an explicit db prefix. Counterparty labels are NOT in this database — use
labels_for_addresses. Read-only; always add a LIMIT of at most 10,000 — a larger answer fails with an error, so aggregate (GROUP BY, count) instead. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x).
Exact table and column names first: chain_list_tables, chain_describe_table and chain_search_columns with database=eth_api.
Eth tx events
ALL EVENT LOGS in one or more Ethereum (eth, ETH, mainnet, L1) transactions, including
decoded arguments plus raw topics and data. Use after eth_find_events identifies a
transaction, or whenever a tx receipt's complete event payload is needed. Accepts up
to 50 transaction hashes separated by "|". `Parsed=0` means no ABI matched: Event,
Signature and Arguments can then be empty, but Topic0, Topics and Data remain usable.
NOT the value moved in a transaction → use eth_tx_transfers.
Arguments are named objects with Name, Type, string Value and Indexed; integer values
are decimal strings to avoid JSON-number precision loss; use raw Topics/Data for values
wider than the decoded numeric fields. Argument names come from one known ABI for the Signature and can be another contract's wording - Topics and Data are the log's own. By default, reverted call-frame
logs, removed logs and failed transactions are excluded; set only_successful=0 to inspect
them, using TxSuccess / CallSuccess / Reverted / Removed to interpret each row.
Eth tx transfers
All token & native transfers inside one OR SEVERAL Ethereum (eth, ETH, mainnet, L1) transactions
(sender → receiver, currency, amount) — pass one tx hash or several separated
by "|" to inspect a batch in a single call. Entry point for tracing when you
have tx hashes. Also returns the called Method signature per transfer.
NOT the event logs of a transaction → use eth_tx_events.
For an address's flow over time use eth_transfers_out / eth_transfers_in.
To identify the addresses, pass them to labels_for_addresses.
FRESHNESS: transfers reach this data some minutes after the trade tools see a swap, so
a hash that trader_trades or tx_trades already shows can return NO rows here yet -
that is lag, not a missing transaction: retry in a few minutes.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
Execute sql
ESCAPE HATCH — read-only SQL for what NO tool answers: custom cohort backtests beyond launch_cohort, multi-step joins, quantiles. Check the tools first; they are keyed and far cheaper:
- token_price, token_ohlcv, pair_ohlcv, currency_ohlcv, token_trade_bars (30 s to 1 h buy/sell bars)
- new_tokens, launch_cohort, token_launch_stats, early_buyers, token_dex_venues, pool_recent_trades
- trader_trades, trader_profile, trader_positions, trader_activity, top_traders_by_token
- list_tables, describe_table, search_columns before writing a query
- Hyperliquid (the perp exchange) is NOT in this database at all: its markets, funding, liquidations and traders are the hyperliquid_* tools, and its own hatch is hyperliquid_raw_sql
After a tool answers, keep going with tools; use SQL only for the step none can do.
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
Scope: only the trading_rt database — DEX trades and 1 s to 1 h bars per token, pair, pool and currency, last ~30 days, 10 chains. Other visible databases are internal and unsupported: do not query them. Address labels and per-chain transfers are not here: use the label and <chain>_ tools.
Rules:
- Names are case-sensitive, not GraphQL fields or tool output names: trades_* use Pair_Token_Address / Pair_Token_Network / Pair_Token_Symbol (quote side Pair_QuoteToken_*), tokens_* and pairs_* Token_*; confirm with describe_table.
- Use the *_by_<key> table that matches your filter, filter its leading sort keys, and on trades_* bound Block_Date too.
- Bars: Interval_VolumeBased = 0; Price_IsQuotedInUsd = 1 for USD.
- Windows on *_by_interval_start: enumerate the hour starts, Interval_Time_Start IN (SELECT arrayJoin(arrayMap(h -> toStartOfHour(now()) - toIntervalHour(h), range(24)))) AND Interval_Time_Duration = 3600; a >= range reads every duration.
- One tokens_* hour can be stored twice: on multi-token scans add Token_Did = '' AND NOT (Volume_Usd = 0 AND LeadingPool_MarketId = '') (never on a single-address lookup: those rows can be a token's only rows); take the current and previous hour as argMax(Volume_Usd, Indexing_Time) per token; never GROUP BY Token_Name / Token_Symbol.
- Amounts are decimal-adjusted; USD: AmountsInUsd_Base / AmountsInUsd_Quote / PriceInUsd; Side = what the trader received; Supply_MarketCap = the diluted value when Supply_CirculatingSupply = 0.
- EVM addresses are lowercase 0x-hex, Solana/Tron base58 case-sensitive. Use UNION ALL; always add a LIMIT. Dates and times come back as ISO-8601 UTC (a Date as T00:00:00Z).
Find currencies
Resolve a well-known asset by NAME or SYMBOL → Currency_Id, which
aggregates every token of that asset across all chains. CALL THIS FIRST
(then the currency_* tools) for well-known coins (USDC, USDT, WETH, WBTC,
BTC, ETH, SOL, DAI, …) when the user has NOT pinned a chain or contract —
currency-level aggregation gives a better price and wider coverage than any
single token_* / pair_* query. Only fall back to find_tokens / token_* /
pair_* when a specific chain ("USDC on Base") or contract is pinned.
Discover currencies by name or symbol substring (case-insensitive) among
those that traded in the last 24 hours. A "currency" is a coarser grouping
than a token — e.g. `usdc` is one currency backed by many USDC tokens across
chains; `bid:eth` is the native currency of Ethereum. Returns Currency_Id,
Currency_Name, Currency_Symbol and 24h USD volume aggregated across all
tokens of that currency.
AGGREGATED CURRENCIES FIRST: `Is_Canonical` = 1 marks an aggregated
currency — a named asset id (`usdc`, `doge`, `xrp`) or a chain's native
coin (`bid:eth`, `bid:solana`, `bid:bitcoin`). Every other row
(`bid:<chain>:<address>`) is ONE token that is mapped to no asset. Rows come
in this order: aggregated currencies whose id, symbol or name equals the
query; the other aggregated currencies; the other tokens; look-alikes last;
USD volume decides inside each group. Is_Canonical says the id aggregates,
not that it is the famous asset of that name: `bitcoin` is a meme token
(Bitcoin is `bid:bitcoin`, whose supply and market cap count only the
wrapped BTC on the indexed chains — do not report them as Bitcoin's), and
one asset can have several ids (`trx` and `bid:tron`; `matic`, `pol` and
`bid:matic`).
NO ROW WITH Is_Canonical = 1 means the asset has no aggregated currency
here — it is not covered, or it did not trade in the last 24 hours. The
rows are then separate tokens that merely carry its name (bridged, wrapped
or unrelated): say the asset is not covered and never quote such a row as
the asset's price. canonical_only=1 returns the aggregated currencies alone.
LOOK-ALIKES: `Symbol_Lookalike` = 1 means the token carries the symbol of an
aggregated currency — `Lookalike_Of` names that currency (look-alike letters
such as a Cyrillic `О` count as the same) — but is NOT part of it: never
present it as that asset or use it for its price; call currency_price with
the Lookalike_Of id instead. Tokens that merely share a common-word ticker
(SUN, GOAT, …) with a currency are flagged too. `Matched_Via` = 'alias'
marks an aggregated currency found because a token named exactly like the
query, with at least $10,000 of USD volume in the last 24 hours, carries its
symbol (e.g. "ripple" finds `xrp`); 'text' = its own name or symbol matched. `Symbol_NonAscii` = 1 flags a symbol that is not plain
ASCII (normal for CJK / emoji names).
`Volume_Usd_24h` is `null` when no volume is recorded at currency level —
the case for the major USD stablecoins (usdc, usdt, dai, …). That is a gap
of the aggregation, not a sign they are untraded; their tokens carry the
volume (find_tokens).
`Market_Cap_Usd` is circulating-supply based and is `null` when no
circulating supply is known for the asset — normal for most long-tail
assets, and not a sign the asset is untraded. `Fdv_Usd` (the total-supply
valuation) is returned alongside it; label that number FDV, never "market
cap", and treat a huge one with suspicion — supply that was minted and
then parked on a burn address (`0x…dead`, `0x0`) still counts in the total
supply behind it. `Fdv_Usd` is itself `null` when even the total supply is
unknown — BOTH are null for an asset that carries no supply figures at this
aggregated level, the case for several major stablecoins; resolve one
contract with `find_tokens` and use `token_price` for a valuation then. Both
are also WITHHELD (`null`, with a non-empty `Valuation_Warning`) when the
supply or valuation behind them is implausible — report the valuation as
unavailable.
LONG NAMES: a name longer than 256 characters or a symbol longer than 64 is
not searched (spam tokens that glue hundreds of asset names together).
Returned names are cut at 128 characters and symbols at 32, ending in `…`;
Name_Truncated / Symbol_Truncated = 1 marks a cut value.
Find label values
DISCOVER which label values exist — resolve a human term to the stored
label_type / label_value before calling `addresses_by_label` or
`labels_for_addresses`. Case-insensitive substring search over
label_value (e.g. "binance" -> cex-deposit-address:'binance-deposit';
"uni-v2" -> token-clone:'clone-uni-v2-…'). Returns each matching
label_type + label_value with how many addresses carry it. Optionally
restrict to one label_type.
Backed by directory.labels. Call this FIRST when the user names an entity
or category in words and you need the exact stored value. Counts are across ALL
chains unless you pass chain — pass it to judge how well one chain is covered
before relying on labels there.
Before concluding "no service links", sanity-check coverage against a known
entity (e.g. 'binance' → cex-deposit-address, hundreds of thousands of
addresses). A value matching a TOKEN name (token-contract / token-clone) is the
same-named token, NOT that exchange's wallet — don't conflate them.
Find token by address
Token lookup by CONTRACT / MINT ADDRESS: resolve a token address → Token_Id,
name, symbol, latest price, 24h and 7d volume. CALL THIS FIRST whenever the user pastes an on-chain
address (0x… hex, or a base58 Solana mint / Tron contract), before any price /
OHLC / trade query — never find_tokens, which matches names and symbols only.
`blockchain` is OPTIONAL: leave it empty when the chain is not known, and every
chain is checked in the same call. The same EVM address can exist on several
chains, so expect one row per chain; pick by chain or by Volume_Usd_7d.
MANY ADDRESSES (a watchlist, a list of mints, the tokens of an earlier result):
pass them all at once in `addresses` (up to 50, separated by `|`, `,` or
spaces) — one call instead of a loop, and no execute_sql needed for a name /
price / FDV lookup of a token list. Every row carries Addresses_Requested,
Addresses_Invalid and Addresses_Used; the rule is in the `addresses`
parameter.
Identifies rare / long-tail / freshly-deployed tokens (Ethereum, Arbitrum, Base,
Matic, Optimism, Binance Smart Chain, Tron, Solana, Robinhood, Arc).
Returns per (address, chain): the canonical Token_Id, Token_Name, Token_Symbol,
Currency_Id, the most recent USD price, Volume_Usd_24h and Volume_Usd_7d, market
cap / FDV, First_Interval_Start (the first hour with USD-priced trading inside
the 30-day history — the launch hour for a token younger than that, otherwise
simply the start of the history; not a first-trade timestamp),
Last_Interval_Start (the last hour the token traded), Addresses_Requested,
Addresses_Invalid and Addresses_Used (1, 0, 1 for one address; 0, 0, 0 for a
prefix) and Addresses_Not_Found (the addresses looked up that returned no
row; [] when every one was found or for a prefix; when nothing is found the
result is empty, so no row carries the list). One call covers the whole
30-day search history, so there is nothing older to page through: an EMPTY
result means the address had no USD-priced trading in the last 30 days, or the
address / chain is wrong. In a batch, an address listed in Addresses_Not_Found
is in that situation; addresses come back normalized (EVM lowercased), so match
them case-insensitively. Do not retry an address through find_tokens.
Also takes an address PREFIX ending in `%` to list the tokens whose address starts
with it, e.g. `Xs%` (the xStocks tokenized-stock mints on Solana) or `0x559b%`.
Rules: a single trailing `%`, at least 2 characters before it (not counting `0x`),
no `_`. A pattern outside these rules is refused. Rows are ordered by 7-day
USD volume, highest first.
Address formatting:
- EVM chains (Ethereum, Arbitrum, Base, Matic, Optimism, Binance Smart Chain, Robinhood, Arc)
use 0x-hex addresses; checksummed / upper-case input is fine, it is lowercased.
- Solana and Tron use base58 addresses, which are case-sensitive — pass them exactly.
VALUATION PRICE — `Market_Cap_Usd` and `Fdv_Usd` are
`Valuation_Price_Usd` x the supply, so every valuation in a row can be
recomputed from a price in the same row. `Valuation_Price_Usd` is the
average price of the newest hour in which real volume changed hands, NOT
the latest single swap: one odd or tiny swap prints a price nobody could
trade at, and an hour can close with no real volume behind it at all, which
was putting valuations out by a factor of thousands.
`Last_Price_Usd` is still that latest swap, so it can sit far from
`Valuation_Price_Usd` — when it does, the token last really traded at the
valuation price and the latest print is an outlier or an hour with no
real volume. Quote `Valuation_Price_Usd` whenever you quote a market cap
or an FDV, and say so when the latest price differs from it.
The same basis is used by `token_price`, `token_supply`, `currency_price`,
`currency_supply`, `find_tokens`, `find_token_by_address`,
`trending_tokens`, `new_tokens` and `launch_cohort`, so a valuation does
not change from one of them to the next. Which hour counts as real volume
is judged against the volume of the period a tool reads, so a tool that
looks further back can pick an older hour than one reading only the last
few hours; for something whose recent trading is thin the two valuations
can differ, and the wider one is the better-supported figure.
`Market_Cap_Usd` is circulating-supply based and is `null` when no
circulating supply is known for the token — normal for most long-tail
tokens, and not a sign the token is untraded. `Fdv_Usd` (the total-supply
valuation) is returned alongside it; label that number FDV, never "market
cap", and treat a huge one with suspicion — supply that was minted and
then parked on a burn address (`0x…dead`, `0x0`) still counts in the total
supply behind it. `Fdv_Usd` is itself `null` when even the total supply is
unknown, i.e. no valuation at all is available. Both, and the Asset_*
figures below, are also WITHHELD (`null`, with a non-empty
`Valuation_Warning`) when the supply or valuation behind them is
implausible — report the valuation as unavailable.
TOKEN vs ASSET — Market_Cap_Usd and Fdv_Usd are THIS token's own
valuation. They are `null` for a token that stands for a multi-chain or
bridged asset (WETH, WBTC, USDC, LINK on each of its chains, ETH on a
layer-2): the data holds only the whole asset's supply for it.
Asset_Currency_Id, Asset_Market_Cap_Usd and Asset_Fdv_Usd always hold the
whole asset's figures (equal to the token's own when the token is its own
asset) — say they are the asset's. When the asset exists on one chain
only (e.g. PUMP), Asset_Fdv_Usd is effectively this token's FDV. A bridged
copy listed under its own id but carrying the asset's supply also gets a
Valuation_Warning.
Names longer than 128 characters and symbols longer than 32 are cut and end
in `…`; Name_Truncated / Symbol_Truncated = 1 marks a cut value.
Find tokens
Token search by NAME or SYMBOL: find tokens matching words / a ticker and resolve
one → Token_Id + Token_Address + Token_Network (+ window USD volume to pick
between same-symbol tokens). CALL THIS
FIRST whenever the user names a token in words, before any price / OHLC / trade
query. NOT for Hyperliquid perpetuals / spot / HIP-3 markets — resolve those with
hyperliquid_markets. NOT for addresses: when the user gives a contract / mint address (0x… hex
or base58), call find_token_by_address instead — it needs no chain and checks
every chain in one call.
Covers rare / long-tail / newly-launched tokens (Ethereum, Arbitrum, Base, Matic,
Optimism, Binance Smart Chain, Tron, Solana, Robinhood, Arc — down to the second).
Discover tokens by name or symbol (case-insensitive, Unicode-aware),
optionally restricted to a single blockchain. The query supports OR over
several alternatives — separate them with `|` (e.g. `pepe|doge|shib`) — and,
with mode=like, SQL wildcard patterns on the name / symbol (`%` = any run,
`_` = one char), e.g. mode=like query=`pepe%` or `%inu` or `pepe%|%inu`. So
you do NOT need execute_sql for multi-term or wildcard name/symbol search.
Returns the canonical Token_Id plus Token_Address, Token_Network, Token_Name,
Token_Symbol and a window USD volume so callers can pick the right token when
several share a symbol (e.g. "PEPE" exists on many chains). Resolve it to a
Token_Id / Token_Address before running price, OHLC, or trade queries.
Pass blockchain='' to search across all chains. Results are ordered by window
USD volume DESC (highest first) — no need for execute_sql to sort — except
that look-alikes, and tokens with an implausible supply or valuation that
are not a recognised asset (below), come after all other rows.
Volume alone does not prove a market — two wallets swapping a token back and
forth print any volume they like. To check a candidate, pass its address (or
up to 50 addresses in one call) to token_dex_venues with group_by=token:
Trade_Count and Distinct_Traders show how many swaps and traders are behind
the volume.
SEARCH WINDOW — only tokens that traded inside the searched slice are found.
The slice is `window_days` long (default 7, max 30) and ends `offset_days` days
ago (default 0 = now). Search history reaches back 30 days. Volume_Usd_Window
and Last_Price_Usd describe that slice; use token_price for the current price.
For a fixed period pass after_time / before_time instead (UTC, "YYYY-MM-DD" or
"YYYY-MM-DD HH:MM"): they replace window_days / offset_days, edges round outward
to whole hours, and a period with no hour inside the last 30 days is an error.
Window_Start / Window_End (UTC, end exclusive) report the slice actually searched.
IF NOTHING (OR NOT THE RIGHT TOKEN) IS FOUND, the token may simply not have
traded recently — do NOT conclude that it does not exist. Search the next
older slice: call again with the same query and offset_days increased by
window_days (with the default window: offset_days 0 → 7 → 14 → 21 → 28), and
stop once offset_days reaches 30. One call with window_days=30 also covers
the whole history, but costs about as much as four 7-day slices, so step
through the slices when the token is likely to have traded recently.
VALUATION PRICE — `Market_Cap_Usd` and `Fdv_Usd` are
`Valuation_Price_Usd` x the supply, so every valuation in a row can be
recomputed from a price in the same row. `Valuation_Price_Usd` is the
average price of the newest hour in which real volume changed hands, NOT
the latest single swap: one odd or tiny swap prints a price nobody could
trade at, and an hour can close with no real volume behind it at all, which
was putting valuations out by a factor of thousands.
`Last_Price_Usd` is still that latest swap, so it can sit far from
`Valuation_Price_Usd` — when it does, the token last really traded at the
valuation price and the latest print is an outlier or an hour with no
real volume. Quote `Valuation_Price_Usd` whenever you quote a market cap
or an FDV, and say so when the latest price differs from it.
The same basis is used by `token_price`, `token_supply`, `currency_price`,
`currency_supply`, `find_tokens`, `find_token_by_address`,
`trending_tokens`, `new_tokens` and `launch_cohort`, so a valuation does
not change from one of them to the next. Which hour counts as real volume
is judged against the volume of the period a tool reads, so a tool that
looks further back can pick an older hour than one reading only the last
few hours; for something whose recent trading is thin the two valuations
can differ, and the wider one is the better-supported figure.
`Market_Cap_Usd` is circulating-supply based and is `null` when no
circulating supply is known for the token — normal for most long-tail
tokens, and not a sign the token is untraded. `Fdv_Usd` (the total-supply
valuation) is returned alongside it; label that number FDV, never "market
cap", and treat a huge one with suspicion — supply that was minted and
then parked on a burn address (`0x…dead`, `0x0`) still counts in the total
supply behind it. `Fdv_Usd` is itself `null` when even the total supply is
unknown, i.e. no valuation at all is available. Both, and the Asset_*
figures below, are also WITHHELD (`null`, with a non-empty
`Valuation_Warning`) when the supply or valuation behind them is
implausible — report the valuation as unavailable.
TOKEN vs ASSET — Market_Cap_Usd and Fdv_Usd are THIS token's own
valuation. They are `null` for a token that stands for a multi-chain or
bridged asset (WETH, WBTC, USDC, LINK on each of its chains, ETH on a
layer-2): the data holds only the whole asset's supply for it.
Asset_Currency_Id, Asset_Market_Cap_Usd and Asset_Fdv_Usd always hold the
whole asset's figures (equal to the token's own when the token is its own
asset) — say they are the asset's. When the asset exists on one chain
only (e.g. PUMP), Asset_Fdv_Usd is effectively this token's FDV. A bridged
copy listed under its own id but carrying the asset's supply also gets a
Valuation_Warning.
LOOK-ALIKES: `Symbol_Lookalike` = 1 means the token carries the symbol of an
established asset on the same chain (look-alike letters such as a Cyrillic
`О` count as the same) but is a DIFFERENT token from the one that symbol
denotes there — never present it as that asset or use it for its price.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII (normal for
CJK / emoji names).
IF THE USER ASKS ABOUT A WELL-KNOWN CRYPTOCURRENCY (USDC, USDT, WETH,
WBTC, BTC, ETH, SOL, DAI, …) AND HAS NOT NAMED A SPECIFIC BLOCKCHAIN
OR CONTRACT, prefer `find_currencies` + `currency_*` instead —
currency-level aggregation spans every token of that asset across
every indexed chain and yields a better price estimate and wider
coverage than any single `token_*` row.
LONG NAMES: a name longer than 256 characters or a symbol longer than 64 is
not searched (spam tokens that glue hundreds of asset names together) —
look such a token up with find_token_by_address. Returned names are cut at
128 characters and symbols at 32, ending in `…`; Name_Truncated /
Symbol_Truncated = 1 marks a cut value.
Flow graph
MONEYFLOW GRAPH / follow the money OUT of one or more addresses across up to 3 hops and
return the whole graph at once: the seed(s), every address the money reached, and the
USD-valued edges between them. The walk follows OUTGOING transfers at each node, values each
edge in US dollars at the time of each transfer, attaches the on-chain LABELS of every
address, and STOPS expanding a branch when it reaches an exchange, mixer or bridge (so the
trail ends where funds leave into a custodian) or a hub that pays very many counterparties.
Use it to see where an address's funds end up, spot an off-ramp into an exchange or mixer,
or draw a flow / Sankey diagram.
The result is the whole graph as structured data - one entry per node (its role: seed / hop /
stop / unexpanded; its primary label and every label type it carries; its total USD in and
out) and one per edge (from, to, token, amount, Amount_Usd, the share of the amount that could
be priced, transfer count, first and last seen) - plus a short text summary with the top edges
as CSV. Amount_Usd is the value at each transfer's own time and is empty - never zero - for a
token the price gate does not cover; a hub or the row budget can cut a branch short, and the
graph is then marked partial. Ranking is led by USD, so an unpriced token ranks last.
This is a neighbourhood graph, not a strict fund-trace: a node's hop edges are ALL of its
outgoing transfers in the window, not only those funded by money that arrived, and transfer
times are not ordered across hops; a node is flagged a hub only when the walk expands it, so a
last-hop leaf is never marked one.
Start with one address or a set of up to 10 (addresses); chain is ethereum or tron. hops is
1 to 3 (default 2). Narrow a heavy walk with a shorter window (after_time / before_time), a
single token, or a higher min_usd. NOT the single-hop totals per counterparty, or a set on
more chains -> use counterparties; NOT the direct outgoing edges of ONE address -> use
eth_flow_edges / tron_flow_edges; NOT a risk score -> use address_risk_report; NOT the labels
of one address -> use labels_for_addresses.
Hyperliquid action rejections
ACTIONS the exchange REJECTED — leverage changes, margin top-ups, transfers, referral
and scheduled-cancel settings, agent approvals — with the exchange's own reason text.
These never reach any trade or order feed: a rejected updateLeverage or
updateIsolatedMargin simply vanishes elsewhere. Use for "why can't this account change
leverage", bot diagnostics beyond order placement, abuse patterns (referral
self-referrals, scheduled-cancel limits). NOT rejected ORDERS — those are
hyperliquid_order_flow (status codes like iocCancelRejected, badAloPxRejected).
On-chain source — reconstructed from the signed actions in the blocks.
trader set: one row per rejected action of that account, newest first — Time,
Action_Type, Reason, Signer (the API wallet that signed, if different), Tx. trader
empty: totals per Action_Type — Rejections, Accounts, Top_Reasons. Order placements
and cancellations are excluded here on purpose (they are order rejections). Kept for
about 7 days — hours up to 168 (default 24).
Hyperliquid book makers
WHO PROVIDES THE LIQUIDITY on ONE Hyperliquid market — the accounts behind the resting
orders of the book, ranked by the USD they posted, with how many orders they placed
and pulled. The public order book is anonymous; this is the named version. Use for
market-maker discovery, "who is quoting X", spoofing suspicion (posted ≈ pulled with
few fills), liquidity concentration. NOT executed trades (hyperliquid_recent_trades),
NOT order rejections (hyperliquid_order_flow).
One row per account: Orders_Posted, Orders_Pulled, Orders_Updated, Distinct_Orders,
Posted_Usd (sum of price x size of the orders it placed), Buy_Orders / Sell_Orders,
Fills (how many of its orders traded in the window, from the trade tape). Book events
are kept for about 7 days and are the densest stream on the exchange — hours up to 24
(default 1); a busy market for 24 hours is a long query.
Hyperliquid book walls
The LARGEST RESTING ORDERS ("walls") in the order book of ONE Hyperliquid market WITH THEIR
OWNERS and their place in the queue — "who is behind the big bid at 75k", "biggest walls
near the price", "is that wall one account". The public book shows sizes only. NOT pending
stop-loss / take-profit orders → use hyperliquid_stop_map. NOT who posted and pulled orders
over a time window → use hyperliquid_book_makers.
Read from the newest complete snapshot of the exchange state (taken about every 12 minutes).
group_by = order (default): one row per resting limit order — Top_Owner is its owner,
Price_Level its limit price, Queue_Position its place in the queue at that price (1 = first to
fill), with Order_Type, Tif (Gtc / Alo / Ioc), Reduce_Only, Placed_Time, Oid and Signer (the
API wallet that placed it, when not the account itself). group_by = level: one row per price
level and side (bucket_pct 0 = exact prices; above 0 = buckets of about that percent of the
mid, Bucket_Width wide, rounded to 1, 2 or 5 x a power of ten) — Orders, Owners, and the
account with the most Usd there (Top_Owner, Top_Owner_Usd, Top_Owner_Share_Pct). Size is in
base units, Usd = Size x price, Distance_Pct from Mid_Price (the middle of the best bid and
ask). Only orders within range_pct of Mid_Price are counted (default 5 %); side buy / sell
narrows it; min_usd drops small rows.
Returns up to limit rows (default 50, at most 500), largest Usd first.
Each row: Snapshot_Time, Market, Mid_Price, Price_Level, Bucket_Width, Distance_Pct, Side, Orders, Size, Usd, Owners, Top_Owner, Top_Owner_Usd, Top_Owner_Share_Pct, Queue_Position, Order_Type, Tif, Reduce_Only, Placed_Time, Oid, Signer.
Hyperliquid builders
REVENUE and flow of the ECOSYSTEM around Hyperliquid — the BUILDERS (front-ends, bots
and apps that route orders and take a builder fee) and the HIP-3 DEPLOYERS (the
third-party venues that list their own perpetual markets, prefixed like xyz:NFLX, and
take a deployer fee). Use for "which apps drive Hyperliquid volume", "how much does
builder X earn", "biggest HIP-3 venues", ecosystem and competitive analysis. NOT
trader rankings (hyperliquid_top_traders), NOT markets (hyperliquid_markets).
group_by = builder (default): one row per builder address — Fills, Traders,
Volume_Usd, Builder_Fee_Usd, Markets. group_by = deployer: one row per HIP-3 venue
(Deployer = the market-id prefix) — Markets, Fills, Traders, Volume_Usd,
Deployer_Fee_Usd. Volume counts each fill once (taker side). Fees are what the
builder / deployer received, in USDC. window_hours up to 720.
Hyperliquid candles
OHLCV candle SERIES for ONE Hyperliquid market — for charts, volatility, "how did X
move today". NOT a single current price (hyperliquid_price). Bars of 1, 5, 15 or 60
minutes, built from every fill on the exchange (taker side, so volume is not doubled).
Volume is in base units of the market (BTC for BTC); Volume_Usd = sum of bar volume
x close, an approximation.
market is the exact market id from hyperliquid_markets (BTC, xyz:NFLX, @107, #<n>).
interval = 1m | 5m | 15m | 1h. Bars are returned newest first, up to limit, ending at
before_time (empty = now) — pass the oldest Time of a page as before_time to page back.
History reaches back about three weeks; a bar with no fills is simply absent (no
zero-fill).
Hyperliquid funding rates
HOURLY funding-rate and open-interest HISTORY of ONE Hyperliquid perpetual — for
"how has BTC funding moved this week", cost-of-carry, crowding over time. NOT the
cross-market snapshot (hyperliquid_open_interest), NOT a price series
(hyperliquid_candles).
One row per hourly settlement: Funding_Rate (per hour, signed: positive = longs pay),
Funding_Apr_Pct, Open_Interest (one side, base units), Long_Positions / Short_Positions,
Long_Accounts_Pct (share of accounts that are long), Funding_Paid_Usd (gross paid by the paying side; zero-sum across
accounts), Payers / Receivers, Implied_Price. Newest first. Spot and outcome markets have no funding.
Hyperliquid largest positions
The LARGEST OPEN POSITIONS on a Hyperliquid perpetual (or across the exchange) with entry
price, leverage, margin mode, unrealized PnL and funding since open — "who holds the biggest
BTC shorts", "whales under water", "largest leveraged longs". NOT the long / short totals →
use hyperliquid_market_positioning. NOT one account's whole book → use
hyperliquid_trader_portfolio.
Read from the newest complete snapshot of the exchange state (taken about every 12 minutes),
so every account's position is there, not only the ones that traded. One row per position:
Trader, Market, Side, Size (signed: negative = short), Entry_Price, Mark_Price, Value_Usd (at
the mark), Unrealized_Pnl_Usd, Return_On_Margin_Pct (= Unrealized_Pnl_Usd / Margin_Used_Usd),
Leverage, Is_Cross (1 cross margin, 0 isolated), Margin_Used_Usd, Funding_Since_Open_Usd and
Funding_All_Time_Usd (signed: + received, - paid), Is_Vault with Vault_Name when the account
is a vault. market empty = every perpetual of the exchange; side long / short narrows it;
min_usd drops small positions.
Returns up to limit positions (default 50, at most 500), largest Value_Usd first.
Each row: Snapshot_Time, Trader, Market, Side, Size, Entry_Price, Mark_Price, Value_Usd, Unrealized_Pnl_Usd, Return_On_Margin_Pct, Leverage, Is_Cross, Margin_Used_Usd, Funding_Since_Open_Usd, Funding_All_Time_Usd, Is_Vault, Vault_Name.
Hyperliquid linked accounts
ACCOUNTS CONTROLLED BY THE SAME OPERATOR as a given Hyperliquid account — linked
through the API wallets (agents) that sign for them, transitively: two accounts that
share a signer, or are connected through a chain of shared signers, belong to one
cluster. Use for sybil / farm detection, wash-trading suspicion, "does this whale
have other wallets", and to expand a wallet before summing its PnL. NOT labels from
the address directory (labels_for_addresses).
On-chain source — recovered from the signatures of the account's own actions.
Returns the account's cluster, one row per member account.
Trader is the account you asked about and Is_Self = 1 marks its own row, listed first;
Signers are the API wallets observed signing for the member Account.
Linked_Via_Signers lists accounts that share one of this account's API wallets today, taken from the
live signer graph; it can be ahead of the cluster above, so a Cluster_Size of 1 with a non-empty
Linked_Via_Signers means the account IS linked to others but is not clustered yet. Compare it as a set —
the order is not stable.
Linked_Via_Signers_Truncated = 1 when a very active shared wallet was left out of it, or the list hit
its cap.
Returns up to limit rows (default 100, at most 500); Cluster_Size always counts the whole
cluster. A cluster of size 1 means no other account is clustered with it (Linked_Via_Signers may still
list some). The graph accumulates from live activity, so an account that has not acted recently may not
be clustered yet.
Each row: Trader, Cluster_Id, Cluster_Size, Account, Is_Self, Signers, Linked_Via_Signers, Linked_Via_Signers_Truncated.
Hyperliquid liquidations
FORCED LIQUIDATIONS on Hyperliquid perpetuals — who was liquidated, on which market,
how much, at what mark price, and whether the exchange's backstop absorbed the
position. Use for liquidation cascades, "biggest liquidations today", a wallet's
liquidation history, market-stress screening. NOT ordinary trades
(hyperliquid_recent_trades / hyperliquid_trader_fills).
group_by = '' (default) lists individual liquidations newest first: Time, Market,
Liquidated_Trader, Position_Side (Long / Short that was closed), Price (execution),
Mark_Price (the mark at that moment), Size, Usd, Realized_Pnl of the closed part,
Leverage, Method (market = closed on the book; backstop = taken over by the exchange's
backstop liquidator, a sign of market stress). group_by = market or trader returns
totals: Liquidations, Usd, Long_Liquidations / Short_Liquidations, Backstop_Count.
market / trader filter; min_usd drops dust; hours up to 720.
Hyperliquid market positioning
LONGS versus SHORTS of ONE Hyperliquid perpetual from the full position snapshots — how many
accounts are on each side, their size, USD value, unrealized PnL, leverage and margin mode,
and the CROWD against the WHALES, now and as a history over the last days. For "is the
crowd long", "are whales short", "who is under water", "how did positioning change this
week". NOT the funding rate or the cross-market table → use hyperliquid_open_interest. NOT
the individual positions → use hyperliquid_largest_positions.
Every ~12 minutes the exchange's whole state is captured; one row per complete snapshot,
newest first. hours = 0 (default) returns the newest snapshot only, hours up to 168 the
history (kept 7 days, from 2026-10-27). Per side: Accounts, Size (base units, both sides
equal on a perpetual — every long is matched by a short), Value_Usd at the mark price,
Unrealized_Pnl_Usd, Avg_Leverage (mean over accounts), Cross_Pct (share of accounts on
cross margin). Long_Accounts_Pct is the crowd's lean. Whales are positions worth at least
whale_usd (default 1,000,000): Whale_Long_Value_Pct is the share of whale value that is
long, Crowd_Long_Accounts_Pct the share of the other accounts that are long — the two
diverge when the whales and the crowd disagree.
market is the exact perpetual id (BTC, xyz:NFLX), case-insensitive.
Returns up to limit snapshots (default 100, at most 1000), newest first.
Each row: Snapshot_Time, Block_Number, Market, Long_Accounts, Short_Accounts, Long_Accounts_Pct, Long_Size, Short_Size, Long_Value_Usd, Short_Value_Usd, Long_Unrealized_Pnl_Usd, Short_Unrealized_Pnl_Usd, Long_Avg_Leverage, Short_Avg_Leverage, Long_Cross_Pct, Short_Cross_Pct, Whale_Long_Accounts, Whale_Short_Accounts, Whale_Long_Value_Usd, Whale_Short_Value_Usd, Whale_Long_Value_Pct, Crowd_Long_Accounts_Pct.
Hyperliquid markets
LIST and RANK Hyperliquid markets (perps, HIP-3 perps, spot pairs, outcome markets) by
traded volume over a window — the entry point for "what is trading on Hyperliquid",
"most active markets", "find the market for ticker X", and to resolve a symbol into
the exact market id (Market) that every other hyperliquid_* tool takes. NOT a price
series (hyperliquid_candles), NOT the current price with its source (hyperliquid_price),
NOT open interest / funding (hyperliquid_open_interest).
One row per market: Market is the exact id to pass on (BTC; xyz:NFLX for a HIP-3
market; @107 for a spot pair; #<n> for an outcome market), Symbol the ticker, Kind one
of perp / hip3 / spot / outcome. A ticker is NOT unique across kinds (BTC on the native
perp and on a deployer's market) — always pin the market by Market, never by Symbol.
Volume_Usd counts each fill once (taker side). Trades_Count, Traders, Last_Price (the
last 1-minute bar close inside the window; every market is quoted in USDC, so outcome
markets read 0..1) and Price_Change_Pct over the window. An outcome (prediction) market also
carries its name: Headline (the market), Outcome (the answer) and Outcome_Side (the side's
name — Yes / No, Over / Under, team codes), taken from its own trades in the window, which
carry names from 2026-10-30 08:24 UTC on (NULL for a market with no named trade in the window);
for its odds and answers use hyperliquid_prediction_market.
PURR/USDC is a SPOT pair (no funding, no leverage). Rows the data source has not re-filed yet
still read Kind perp, so there kind=spot does not list it and kind=perp does - treat its rows
as spot either way. Its Market id is the name itself, PURR/USDC.
query matches the ticker, the market id or an outcome market's Headline, case-insensitive
substring (NFLX finds xyz:NFLX and every other deployer's NFLX). kind narrows to one market kind. sort = volume
(default), trades, traders, change (best gainers first) or change_asc (worst first).
window_hours up to 720 (30 days of data).
Terms used across the hyperliquid_* tools: perp = perpetual future; HIP-3 = a
perpetual listed by a third-party deployer on its own venue (market id prefixed, e.g.
xyz:NFLX); spot = a spot pair (@index, or PURR/USDC); outcome = a prediction market (#id, priced
0..1); funding = the hourly payment between longs and shorts; TWAP = an order executed
in time slices; builder = the app that routed an order and takes a fee; agent / API
wallet = a key that signs on an account's behalf; backstop liquidation = the exchange's
liquidator vault absorbed the position. For a TOKEN on Ethereum, Solana or another
chain use find_tokens / token_price instead — those tools do not see Hyperliquid.
Hyperliquid open interest
OPEN INTEREST, long/short skew and the current FUNDING RATE of every Hyperliquid
perpetual — for "where is the leverage", "which markets are crowded long", "funding APR",
basis-trade screening. NOT one market's funding history (hyperliquid_funding_rates), NOT
volume ranking (hyperliquid_markets), NOT one market's longs against shorts in detail or over
time (hyperliquid_market_positioning).
Open interest and the long / short counts come from the newest complete snapshot of the
exchange state (taken about every 12 minutes); the funding figures from the newest hourly funding settlement. Per market: Open_Interest (one
side of the book — every long is matched by a short — in base units), Open_Interest_Usd (at
Mark_Price, the exchange's mark), Long_Positions / Short_Positions (number of accounts),
Long_Accounts_Pct (share of accounts that are long: size is always 50/50 on a perpetual,
the account count is where the crowd shows), Funding_Rate (per hour, signed: positive =
longs pay shorts), Funding_Apr_Pct (rate x 24 x 365), Funding_Paid_Usd — the gross amount the
paying side handed over in that hour (funding is zero-sum, so the net across all accounts is
~0), Implied_Price (implied by that settlement), Funding_Time, Snapshot_Time. Markets with
nothing open are left out; spot and outcome markets pay no funding and do not appear.
query matches the ticker or market id, case-insensitive substring. sort = oi (default),
funding (highest rate first), funding_asc, long_share.
Returns up to limit markets (default 50, at most 500), by sort.
Each row: Market, Symbol, Kind, Snapshot_Time, Open_Interest, Open_Interest_Usd, Mark_Price, Long_Positions, Short_Positions, Long_Accounts_Pct, Funding_Rate, Funding_Apr_Pct, Funding_Paid_Usd, Implied_Price, Funding_Time.
Hyperliquid order flow
ORDER activity and REJECTIONS on Hyperliquid — how many orders an account or a market
placed, filled, cancelled and had REJECTED by the exchange, and why. Rejections never
appear in fills or on public tapes; this is the place for bot diagnostics ("why are
my orders failing"), spam / rejection-rate screening, and order-type mix. NOT fills
(hyperliquid_trader_fills), NOT the book itself.
Rows are totals per group_by: trader (default — accounts ranked by rejected orders),
market, or status (the exchange's own status codes: open, filled, canceled,
iocCancelRejected, badAloPxRejected, perpMarginRejected, minTradeNtlRejected,
reduceOnlyRejected, insufficientSpotBalanceRejected, selfTradeCanceled, triggered, …).
Columns: Orders, Rejected, Reject_Rate_Pct, Filled, Canceled, Open, Top_Reject_Reason,
Reduce_Only_Share_Pct. With group_by = market a live outcome (prediction) market also carries
Headline, Outcome and Outcome_Side (its names, from the newest state snapshot; NULL
otherwise). Filters: trader, market. Counts come from 10-minute roll-ups,
kept for about 30 days — hours up to 720 (default 24).
Hyperliquid prediction holders
HOLDERS of ONE SIDE of a Hyperliquid prediction market (HIP-4) with their average entry price
— "who is betting on Yes", "the biggest bettors on this team", "at what price did they buy".
NOT the odds of the market → use hyperliquid_prediction_market. NOT a ranking of markets →
use hyperliquid_prediction_markets.
Read from the newest complete snapshot of the exchange state (taken about every 12 minutes).
One row per account holding the side: Contracts held (each pays 1 USDC if the side wins),
On_Orders (part of it locked in open sell orders), Entry_Cost_Usd and Avg_Entry_Price (=
Entry_Cost_Usd / Contracts, 0..1), Price (mid of the best quotes, else the last trade) with
Value_Usd = Contracts x Price and Unrealized_Pnl_Usd = Value_Usd - Entry_Cost_Usd, Share_Pct
of all contracts held. Holders and Total_Contracts repeat the side's totals on every row.
The issuer's own system address (which carries the supply as a negative balance) is not a
holder and is left out. market is one side id (#<n>) from hyperliquid_prediction_market — the
other side of the same answer is a different market.
Returns up to limit holders (default 50, at most 500), largest Contracts first.
Each row: Snapshot_Time, Market, Headline, Outcome, Side_Title, Trader, Contracts, On_Orders, Entry_Cost_Usd, Avg_Entry_Price, Price, Value_Usd, Unrealized_Pnl_Usd, Share_Pct, Holders, Total_Contracts.
Hyperliquid prediction market
ANSWERS, SIDES and current ODDS of ONE Hyperliquid prediction market (HIP-4) — "what are the
odds that X", "who is the favourite", the order book of each answer. NOT a ranking of markets
→ use hyperliquid_prediction_markets. NOT who holds a side → use hyperliquid_prediction_holders.
Read from the newest complete snapshot of the exchange state (taken about every 12 minutes).
One row per side: a single market has one answer with two sides; a question has several
answers (Outcome), each with two sides, plus a fallback answer (Is_Fallback = 1, usually
"Other") that resolves when no listed answer does. Market is the side's own id (#<n>), Side 0
or 1, Side_Title its name — Yes / No, Over / Under or team codes, never assume Yes / No.
Prices are 0..1 and read as a probability: Best_Bid, Best_Ask, Mid_Price (both quotes
present), Last_Price, and Probability_Pct = Mid_Price, else Last_Price, x 100. A side that has
never traded can show a Last_Price of 0.5 with no orders — check Book_Orders and
Volume_24h_Usd before reading it as odds. Holders and Contracts (outstanding contracts of the
side) come from the same snapshot; Volume_24h_Usd counts each trade once (taker side), leaving
out the turning of USDC into a pair of sides and back and the settlement payout.
market is one side id from hyperliquid_prediction_markets (#<n>; any side of any answer
expands to the whole question) or a name substring (every market whose Headline contains it).
Returns up to limit sides (default 100, at most 500), by Headline, answer and Side.
Each row: Snapshot_Time, Headline, Question_Id, Is_Settled, Outcome_Id, Outcome, Is_Fallback, Market, Side, Side_Title, Best_Bid, Best_Ask, Mid_Price, Last_Price, Probability_Pct, Book_Orders, Holders, Contracts, Volume_24h_Usd.
Hyperliquid prediction markets
TOP Hyperliquid PREDICTION MARKETS (HIP-4 outcome markets) by traded volume over a window —
"what are people betting on", "most active prediction markets", "find the market about X".
NOT the answers and odds of one market → use hyperliquid_prediction_market. NOT who holds a
side → use hyperliquid_prediction_holders.
One row per market by its name (Headline). Market_Type is single (one yes/no market,
Question_Id 0) or question (several answers, each a yes/no market of its own, Question_Id
above 0). Market is an id to pass to hyperliquid_prediction_market: a single market's first
side, or for a question the first side of its most traded answer. Volume_Usd and Fills count
each fill once (taker side) and only trades between accounts: turning USDC into a pair of
sides and back, and the payout at settlement, are not trades and are left out. Traders
counts both sides; Outcomes_Traded is how many answers traded. Names are recorded on trades from 2026-10-30 08:24 UTC only: earlier trades are left
out, so a window reaching before that time counts only the named part.
query matches the Headline, case-insensitive substring. hours up to 720 (default 24).
Returns up to limit markets (default 30, at most 200), largest Volume_Usd first (or by sort).
Each row: Headline, Market_Type, Question_Id, Market, Outcomes_Traded, Volume_Usd, Fills, Traders, Last_Trade_Time.
Hyperliquid price
CURRENT price of ONE Hyperliquid market with the SOURCE it came from — the number to
use for "what is X trading at", USD valuation of a position, or a sanity check of a
quoted price. NOT a series (hyperliquid_candles), NOT a market list (hyperliquid_markets).
Hyperliquid publishes no single price feed for every market, so the tool reads up to
three and returns the FRESHEST as Price, with Price_Source and Price_Time (when that
source was observed; within the same minute mark wins over funding, funding over
last_trade):
- mark — the exchange's mark price. Available for deployer (HIP-3) markets only, and
republished even for a market nobody trades any more — check Stale.
- funding — implied from the last hourly funding settlement (|amount| / (|position| x
rate)). Available for every perpetual that had funding; within a fraction of a
percent of the mark on liquid markets, at most one hour old, so it wins only when the
market has not traded since.
- last_trade — the close of the newest 1-minute bar. Available wherever the market
traded; the only source for spot and outcome markets. Outcome markets read 0..1.
Every row also carries Mark_Price, Funding_Implied_Price and Last_Trade_Price for a
cross-check, Last_Trade_Time and Last_Trade_Age_Hours. Stale = 1 when the market has not
traded for more than 24 hours: its price (often a deployer's frozen mark) can be far from
where the asset trades on its live markets — use a row with Stale = 0 instead.
An outcome (prediction) market also carries Headline (the market's name), Outcome (the
answer) and Outcome_Side (the side's name), read from the newest state snapshot; NULL for
every other market. Its answers and odds: hyperliquid_prediction_market.
market is the exact market id from hyperliquid_markets (BTC, xyz:NFLX, @107, #<n>)
or a ticker — a ticker that names several markets returns one row per market: markets
that traded in the last 24 hours first, then native perpetual, spot, outcome, HIP-3.
For a token on Ethereum, Solana or another chain use token_price / currency_price —
this tool prices Hyperliquid markets only.
Hyperliquid raw sql
ESCAPE HATCH — arbitrary read-only SQL over the Hyperliquid data, ONLY for questions
none of the hyperliquid_* tools answers. PREFER THE SPECIALIZED TOOLS: they carry the
indexed filters and the data rules below already; ad-hoc SQL that misses them reads
billions of rows and times out. Every table below is in database hyperliquid_rt —
qualify names as hyperliquid_rt.<table>. Queries are limited to 60 seconds and 4 GB. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x). Date-time values come back as ISO-8601 UTC, e.g. 2026-09-21T15:04:18Z (toString() of a date-time gives 2026-09-21 15:04:18).
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
Data rules (each one silently breaks a naive query):
- Every amount is a DECIMAL STRING (Trade_Execution_Price, _Size, Trade_Fees_Fee,
Trade_Position_RealizedPnl, Funding_Amount, …): wrap in toFloat64OrZero() or use the
*_Decimal alias columns. Block_Time is epoch NANOSECONDS (Int64) — filter as
Block_Time >= toInt64(toUnixTimestamp(now() - INTERVAL 1 DAY)) * 1000000000, never
compare it to now64() directly (decimal overflow). Trade_Execution_EventTime is ms.
- ONE FILL = TWO ROWS in trades (maker + taker), joined by (Block_Number,
Trade_Market_CoinRaw, Trade_Execution_Tid). Market volume: Trade_Execution_IsAggressor = 1
only. An account's own activity: filter Trade_Trader_Address (one row per fill).
- Tid is an identifier, not an order. Fills of one block run in Trade_Execution_Index /
Liquidation_Execution_Index order (from 1, one sequence across trades and liquidations;
0 on older rows): order by (Block_Number, *_Execution_Index, *_Execution_Tid).
- Liquidation fills live ONLY in perp_liquidations (Liquidation_* columns, same shape).
- Market kinds share every table: Trade_Market_Kind in perp | hip3 | spot | outcome;
Trade_Market_IsPerp = 1 for perp + hip3. Identity is Trade_Market_CoinRaw (BTC,
xyz:NFLX, @107, #<n>); Trade_Market_Symbol is NOT unique. The SPOT pair with the id
PURR/USDC is Kind spot, but rows not re-filed yet still read Kind perp with IsPerp = 1 -
leave it out by id when a figure must cover perpetuals only, and include it by id (once)
in a spot figure.
- Empty string means UNKNOWN, not zero: Position_EntryPrice and
Position_Size (size after the fill) on rows with Execution_Index = 0. Position_Leverage,
Position_IsCross, Market_MaxLeverage and Trader_SignedAt are NULL when not known (0 on
rows written before the processor kept them Nullable).
- Trade_Fees_FeeToken is USDC on ~96% of rows; sum fees only where IN ('USDC','').
- Raw tables are ReplacingMergeTree: add FINAL. AggregatingMergeTree tables need the
-Merge combinators (argMaxMerge(Position_Size), argMaxMerge(Mark), …); ohlc is read with
min/max/sum, Open/Close as tupleElement(min(Ohlc_Open), 3) / tupleElement(max(Ohlc_Close), 3).
- Addresses are lowercase 0x strings everywhere except signed_actions (User, Signer:
raw bytes — concat('0x', lower(hex(User)))).
- Price: latest_mark / price_updates cover ONLY HIP-3 markets. A native perp's mark =
|Funding_Amount| / (|Funding_Size| x Funding_Rate) on the latest funding block;
otherwise the last candle close.
- Outcome (prediction) markets #<n>: the trade, funding and liquidation rows carry
*_Market_Outcome_{Headline,Title,SideTitle,Side,OutcomeId,Question_QuestionId,
Question_IsFallback,Question_IsSettled} (from 2026-10-30 08:24 UTC; empty before). The
directions Split Outcome / Merge Outcome / Negate Outcome / Merge Question / Settlement are
not trades between accounts (a split or merge is one row at a fixed 0.5): leave them out of
volumes and prices. A holding of side #<n> is the spot balance of token +<n>.
Tables (key columns first; retention):
- trades (Trade_Market_CoinRaw, Trade_Trader_Address, Block_Number) ~11 M rows/day,
30 days. Trade_Trader_{Address,Signer,Vault}, Trade_Market_{Symbol,Kind,Protocol,
CoinRaw,IsPerp}, Trade_Execution_{Side,Direction,IsAggressor,Price,Size,Oid,Tid,Hash,
EventTime,Index}, Trade_Fees_{Fee,FeeToken,BuilderFee,DeployerFee}, Trade_Position_{Side,
Size,SizeBefore,RealizedPnl,Leverage,IsCross}, Trade_Builder, Trade_IsTwap, Trade_TwapId;
aliases Trade_Execution_NotionalUSD, Trade_Trader_IsAgent, Trade_Position_IsClosing,
Trade_Position_IsWin, Trade_Position_NetPnl.
- trades_5m_aggr — 5-minute roll-up per market x trader x (IsAggressor, Side, FeeToken,
IsTwap, Builder, IsAgent, IsClosing, IsWin): Trade_Count, Trade_Execution_NotionalUSD,
Trade_Execution_Size, Trade_Position_RealizedPnl, Trade_Fees_Fee, Trade_Position_NetPnl
(sums, plain columns — GROUP BY and sum()), *_Max/_Min. USE THIS for counts,
volumes, leaderboards.
- perp_liquidations (Liquidation_Market_CoinRaw, Block_Number), 30 days: same shape
as trades plus Liquidation_MarkPx, Liquidation_Method (market|backstop),
Liquidation_LiquidatedUser.
- perp_fundings (Funding_Trader_Address, Block_Number), 30 days, one row per open perp
position per hour: Funding_Market_CoinRaw, Funding_Amount (signed, + received),
Funding_Rate (hourly), Funding_Size (signed position). Sum |Funding_Size| on the
latest block per market = open interest.
- order_updates (Order_Market_CoinRaw, Order_Trader_Address, Block_Number), 7 DAYS,
~11 B rows: Order_{Side,Status,IsReject,OrderType,Tif,ReduceOnly,LimitPx,Size,OrigSz,
TriggerPx,TriggerCondition,IsTrigger,Oid,Cloid,PlacedTime,EventTime,Index}. Statuses of
one order in a block share EventTime; Order_Index (from 1; 0 on older rows) orders them.
Never read without market + trader + a short window. order_updates_10m_aggr = roll-up per market
x trader x (Status, Tif, IsReject, OrderType, Side, ReduceOnly) with Order_Count.
- book_updates (BookUpdate_Market_CoinRaw, Block_Number), 7 days, ~8 B rows, per-order
book deltas with the OWNER (BookUpdate_Trader_Address, Oid, Side, Px, Kind new|update|
remove, Size, SizeBefore, Index). Same warning.
- twaps (Twap_Market_CoinRaw, Block_Number), 30 days: Twap_TwapId, Twap_Trader_Address,
Twap_Order_{Side,Size,ReduceOnly,Randomize}, Twap_Interval_{StartTime(ms),
DurationMinutes}, Twap_State_{Status,StatusError,ExecutedSize,ExecutedNotional}.
- price_updates (PriceUpdate_Market_CoinRaw, Block_Number), 30 days, HIP-3 only:
PriceUpdate_{Price,Kind(mark|oracle|extPerp|markInput|spotInput|extPerpInput),
UpdateClass,DailyPx,UpdateTime}. latest_mark = argMaxMerge(Mark) per Market_CoinRaw.
- ohlc (Market_Symbol, Interval_Time_Duration 60|300|900|3600, Interval_Time_Start,
Market_CoinRaw): Ohlc_Open / Ohlc_Close are (Block, Index, Price) of the first / last fill —
tupleElement(min(Ohlc_Open), 3), tupleElement(max(Ohlc_Close), 3); Ohlc_High (max),
Ohlc_Low (min), Ohlc_Volume (sum, taker side).
- current_positions (Trader_Address, Market_CoinRaw): argMaxMerge(Position_Size) (string,
signed), argMaxMerge(Position_Leverage) and argMaxMerge(Position_IsCross) (one-element
tuples, (20) / (1), (NULL) when not known; a plain number on a host not migrated yet),
sum(Position_RealizedPnl), sum(Position_Funding), max(LastTime) (any event, funding
included), max(LastTradeTime) (the last fill; 0 = none). Size includes the hourly
funding restatement (none in an hour of zero rate), so a perp size is exact even for a
position older than the data.
- trader_leverage_updates (LeverageUpdate_Trader_Address, Block_Number): accepted leverage
changes — LeverageUpdate_Market_CoinRaw, LeverageUpdate_Leverage, LeverageUpdate_IsCross.
- signed_actions (Block_Number, Bundle_Index, Bundle_ActionIndex), 7 days: what accounts
ASKED the exchange, incl. REJECTED actions (Status = 'err', reason in Response) and
the recovered Signer; only rejects and non-order action types are kept (User,
ActionType, Status, Action, Response raw JSON, Nonce, VaultAddress, Bundle_Hash).
- cluster_labels (node, label) / cluster_edges (src, dst) — the account—agent graph
behind hyperliquid_linked_accounts; operator_clusters view = (ClusterId, Account).
- State snapshots, 7 days, one about every 12 minutes: the whole state of every account.
Read ONLY complete ones, the height from the view in the SAME statement —
WITH (SELECT max(Block_Number) FROM hyperliquid_rt.snapshots WHERE IsComplete) AS h —
and always FINAL with Block_Number = h (or IN the complete heights). Tables by key:
snapshot_markets (Market_CoinRaw, Block_Number): OpenInterest (longs + shorts in coins,
twice one side), Prices_MarkPx, Book_BestBid / BestAsk / LastTradePx, Positions,
Market_Outcome_* (never the old Outcome_* columns); snapshot_positions (Market_CoinRaw,
Block_Number, Trader_Address) and snapshot_positions_by_trader: Position_Size (negative =
short), Position_EntryPrice, Position_Leverage, Position_IsCross,
Valuation_PositionValue / UnrealizedPnl, CumFunding_SinceOpen (positive = paid);
snapshot_orders (Market_CoinRaw, Block_Number, Oid) and _by_trader: resting orders
(IsTrigger = 0, QueuePosition) and pending stops (IsTrigger = 1, TriggerPx;
IsPositionTpsl = 1 has Size 0); snapshot_balances (Token, Block_Number, Trader_Address)
and _by_trader: Total, Hold, EntryNotional; snapshot_accounts (Trader_Address, Protocol,
Block_Number); snapshot_vaults, snapshot_vault_followers (Vault, …) and _by_trader;
snapshot_leverage_settings (Trader_Address, Market_CoinRaw, …) — read it by trader;
snapshot_earn_reserves / snapshot_earn_positions. ~2.5 M balances, ~640 K orders and
~410 K positions per snapshot against a 100,000-row result cap: aggregate or LIMIT.
Block_Time there is epoch ns too.
Always add a Block_Time bound and a LIMIT.
Hyperliquid recent trades
TAPE of individual trades on ONE Hyperliquid market, newest first — who took
liquidity, in which direction, at what price and size; whale spotting, "what just
happened on X". NOT a wallet's own history (hyperliquid_trader_fills), NOT forced
closes (hyperliquid_liquidations), NOT aggregated bars (hyperliquid_candles).
One row per matched trade (both sides merged): Taker is the account that crossed the
book and Side its direction (Buy / Sell), Taker_Action its effect on the taker's
position (Open Long, Close Short, …); Maker is the resting counterparty. Price, Size
(base units), Usd = Price x Size, Is_Twap marks a slice of a TWAP order. On an outcome
(prediction) market Headline, Outcome and Outcome_Side name the market, the answer and the
side, as recorded on the trade (from 2026-10-30 08:24 UTC on; NULL before and on every other
market). min_usd drops
dust; hours bounds the window, which ends at before_time or now (default 1, up to 720).
Returns up to limit trades (default 100, at most 500), newest first; page back with
cursor = the Cursor of the last row, keeping the other parameters unchanged (an empty
before_time ends each page's window at that call's own time — set it for a long walk).
The cursor value is only valid within the same tool: the cursors of a trade differ
between hyperliquid_recent_trades and hyperliquid_trader_fills. Liquidation fills are not here — see hyperliquid_liquidations. To identify addresses
use labels_for_addresses.
Hyperliquid stop map
MAP of the PENDING STOP orders (stop losses and take-profits) of ONE Hyperliquid market by
price level, with their owners — where the stop losses cluster, how much would be sold or
bought if the price reached a level, whose stops they are. Trigger orders wait off the book until their price is
hit, so no public order book shows them. NOT the resting limit orders of the book → use
hyperliquid_book_walls. NOT the positions → use hyperliquid_largest_positions.
Read from the newest complete snapshot of the exchange state (taken about every 12 minutes).
group_by = level (default): one row per price bucket and side — Price_Level is the bucket's
lower bound (Bucket_Width wide, about bucket_pct of the mark price, rounded to 1, 2 or 5 x a
power of ten), Side the direction the orders would trade when triggered (Sell = the stops of
longs, below the price to cut, above it to cash in), Orders, Size (base units), Usd (Size x
trigger price), Stop_Orders / Take_Profit_Orders by type, Owners, and the account with the
most Usd at the level (Top_Owner, Top_Owner_Usd). A stop attached to the WHOLE position
carries no size of its own: Whole_Position_Orders counts them, and their Size is the owner's
position size at the snapshot. group_by = order: one row per trigger order, the largest
first — Price_Level is its trigger price, Top_Owner its owner, with Order_Type,
Trigger_Condition, Limit_Price, Reduce_Only, Placed_Time and Oid. Trailing stops have no
fixed level and are left out. Only orders within range_pct of Mark_Price are counted
(default 10 %).
Returns up to limit rows (default 100, at most 500): levels from the highest price down,
orders by Usd.
Each row: Snapshot_Time, Market, Mark_Price, Price_Level, Bucket_Width, Distance_Pct, Side, Orders, Size, Usd, Stop_Orders, Take_Profit_Orders, Whole_Position_Orders, Owners, Top_Owner, Top_Owner_Usd, Order_Type, Trigger_Condition, Limit_Price, Reduce_Only, Placed_Time, Oid.
Hyperliquid token holders
HOLDERS of ONE Hyperliquid SPOT token (HYPE, PURR, UBTC, USDC …) by balance — "who holds the
most HYPE", "top holders of token X", concentration, how many accounts hold it. Balances on
the exchange's own ledger (HyperCore), all accounts. NOT holders of an ERC-20 on an EVM chain
→ use <chain>_token_holders. NOT holders of a prediction-market side → use
hyperliquid_prediction_holders.
Read from the newest complete snapshot of the exchange state (taken about every 12 minutes).
One row per account with a positive balance: Rank, Holder, Balance (in the token), On_Orders
(part of it locked in open orders), Entry_Cost_Usd and Avg_Entry_Price (the cost basis the
exchange keeps; 0 when unknown), Price_Usd (the token's USDC spot pair: mid of the best
quotes, else its last trade; 1 for USDC) and Value_Usd, Share_Pct of Total_Held. System and
burn addresses are labelled (Holder_Type system / burn, Holder_Name: the HYPE and the
per-token links to the HyperEVM, the Assistance Fund, the zero, 0xff…ff and 0x…dead burn
addresses) and left out unless include_system = 1; a vault is labelled vault with its name.
Holders, Total_Held and Share_Pct cover the listed set (with or without the system rows).
Returns up to limit holders (default 50, at most 500), largest Balance first.
Each row: Snapshot_Time, Token, Rank, Holder, Holder_Type, Holder_Name, Balance, On_Orders, Entry_Cost_Usd, Avg_Entry_Price, Price_Usd, Value_Usd, Share_Pct, Holders, Total_Held.
Hyperliquid top traders
LEADERBOARD of Hyperliquid accounts over a window — by net PnL (realized + funding -
fees), volume or fill count, across the exchange or on ONE market. Use for "best
traders on BTC this week", "biggest wallets", smart-money discovery, "who lost the
most". NOT one wallet's scorecard (hyperliquid_trader_summary), NOT positions
(hyperliquid_trader_positions).
Per account: Net_Pnl_Usd, Realized_Pnl_Usd (closes incl. liquidations), Funding_Usd,
Fees_Usd, Volume_Usd, Fills, Win_Rate_Pct, Markets, Taker_Share_Pct, Liquidations (times
the account itself was liquidated).
Unrealized PnL is NOT included — a wallet deep under water on an open position can
still rank high; pass its address to hyperliquid_trader_positions. sort = pnl
(default), pnl_asc (largest losses first), volume, fills. min_volume_usd (default
10,000) keeps dust wallets out of the PnL ranking; window_hours up to 720 (30 days),
cost grows with the window.
Returns up to limit accounts (default 50, at most 500), by sort. There is no offset: for rank N
pass limit=N and read the last row.
Hyperliquid trader fills
FILL HISTORY of ONE Hyperliquid account, newest first — every trade and forced
liquidation the wallet took part in, with direction, position effect, realized PnL and
fee per fill. Use for "what did this wallet trade", entries and exits, timing
analysis. NOT the current holdings (hyperliquid_trader_positions), NOT totals
(hyperliquid_trader_summary), NOT a market's tape (hyperliquid_recent_trades).
One row per fill of this account: Time, Market, Symbol (the ticker), Kind (perp / hip3 /
spot / outcome), Headline / Outcome / Outcome_Side (an outcome market's name, answer and
side as recorded on the fill — from 2026-10-30 08:24 UTC on; NULL before and elsewhere), Side (Buy / Sell), Action (Open Long, Close Short, …), Price, Size, Usd,
Realized_Pnl (non-zero only when the fill closed part of a position), Fee (signed;
negative = maker rebate; in Fee_Token), Is_Taker, Is_Twap, Is_Liquidation, Leverage,
Position_Before (signed size before the fill on perps; on spot the base-asset balance
before the fill; NULL only when the fill reports none, e.g. outcome markets), Signer (the
API wallet that signed, when different from the account), Tx_Hash, Block_Number,
Trade_Id, Cursor. Filter by market; days bounds the window (default 7, up to 30). Returns
up to limit fills (default 100, at most 500), newest first; page back with cursor = the
Cursor of the last row. The cursor value is only valid within the same tool: the cursors
of a trade differ between hyperliquid_trader_fills and hyperliquid_recent_trades. Tx_Hash
is NULL for TWAP slices, which have no own transaction.
Hyperliquid trader portfolio
The WHOLE BOOK of ONE Hyperliquid account as the exchange holds it — margin account per
venue, every open position with entry price and unrealized PnL, spot balances (prediction
market holdings included), open and pending orders, vault stakes and Earn lending / borrowing.
For "what does this wallet hold", "its account value", "its stop-losses", "which vaults is it
in"; also a vault's own book (pass the vault address). NOT the fill history → use
hyperliquid_trader_fills. NOT a period scorecard → use hyperliquid_trader_summary.
hyperliquid_trader_positions reconstructs positions from fills with realized PnL; this tool
reads the exchange's own state, so every position is there with its exact entry price.
Read from the newest complete snapshot of the exchange state (taken about every 12 minutes).
One row per item, Section first:
- account: one per perpetual venue the account uses (Venue: hypercore = the native perps, or
a HIP-3 deployer such as xyz) — Item the collateral token, Value_Usd the account value,
Margin_Used_Usd, Detail the open notional, maintenance margin and number of positions.
- position: Item the market, Side, Size (signed: negative = short), Price = entry price,
Mark_Price, Value_Usd, Pnl_Usd = unrealized PnL, Margin_Used_Usd, Leverage, Is_Cross,
Funding_Usd since the position was opened (+ received, - paid).
- spot: Item the token, Size the balance, Price = the average entry price the exchange keeps,
Mark_Price (the token's USDC spot pair, 1 for USDC; for a prediction-market side +<n> the
side #<n>, named in Name), Value_Usd, Pnl_Usd = Value_Usd - entry cost, Detail the part
locked in orders. USDC posted as perpetual margin is in the account rows, not here.
- order: Item the market, Side, Size, Price = limit price (trigger price for a pending stop /
take-profit), Value_Usd = Size x Price, Detail the order type, trigger condition, time in
force, reduce-only and queue place.
- vault: Item the vault address, Name its name, Value_Usd the stake, Pnl_Usd its all-time
PnL, Detail the share, net deposit and lockup.
- earn: Item the token, Side Supply or Borrow, Size in the token, Value_Usd at Mark_Price.
section narrows to one section; min_usd hides rows worth less (rows with no USD value stay).
Returns up to limit rows PER SECTION (default 50, at most 500), largest Value_Usd first.
Each row: Snapshot_Time, Trader, Section, Venue, Item, Name, Side, Size, Price, Mark_Price, Value_Usd, Pnl_Usd, Margin_Used_Usd, Leverage, Is_Cross, Funding_Usd, Detail.
Hyperliquid trader positions
CURRENT OPEN POSITIONS of ONE Hyperliquid account — size, side, leverage, margin mode,
USD exposure, average entry price and unrealized PnL where computable, realized PnL and
funding per market. The "what is this wallet holding right now"
tool. NOT the fill history (hyperliquid_trader_fills), NOT a period scorecard
(hyperliquid_trader_summary).
One row per market with a non-zero position: Position_Size (signed base units: positive
= long, negative = short), Side, Leverage (NULL = not observed), Is_Cross (1 cross
margin, 0 isolated, NULL with Leverage), Price and Price_Source (as hyperliquid_price), Notional_Usd,
Entry_Price, Unrealized_Pnl_Usd, Realized_Pnl_Usd and Funding_Usd accumulated on that
market within the available history (not lifetime), Last_Trade_Time (the account's last
fill on the market; NULL when it has none in the history).
Position_Size of a perpetual is exact even for a position opened before the history: the
exchange restates the open perpetual positions of a market each hour it charges funding.
Entry_Price is reconstructed from the account's fills and is exact only when the position
was opened from zero inside the available history (about a month) and those fills add up
to Position_Size;
Entry_Complete = 0 otherwise — Entry_Price and Unrealized_Pnl_Usd are then NULL, not
zero. Spot balances and
outcome-market holdings show as positions only when acquired through trades in the
history window; an outcome market's row carries Headline, Outcome and Outcome_Side (its
names, from the newest state snapshot; NULL elsewhere). The exchange's own book of the
account, with exact entry prices: hyperliquid_trader_portfolio. A PURR/USDC row is such a SPOT balance even where its Kind still reads perp: it
has no leverage and no funding - do not report it as a perpetual position.
Hyperliquid trader summary
PERIOD SCORECARD of ONE Hyperliquid account — realized PnL, funding, fees, net result,
volume, fill count, win rate, maker/taker split, markets traded — in total or per
market. Use for "how is this wallet doing", "is this trader profitable", comparing
wallets. NOT the fill list (hyperliquid_trader_fills), NOT open positions
(hyperliquid_trader_positions), NOT a ranking across wallets (hyperliquid_top_traders).
Net_Pnl_Usd = Realized_Pnl_Usd (closes, incl. liquidations) + Funding_Usd (signed; paid
funding is negative) - Fees_Usd (USDC fees; a maker rebate lowers them). Unrealized
PnL of open positions is NOT included — read hyperliquid_trader_positions for it.
Win_Rate_Pct = share of closing fills with positive realized PnL. Volume_Usd counts the
account's own fills once. Taker_Share_Pct, Twap_Share_Pct, Agent_Signed_Pct (fills
signed by an API wallet), Liquidations and Liquidated_Usd (only the times the account
itself was liquidated; a fill that took over a liquidated position counts in Fills and
Volume_Usd, not here). group_by = market splits the
same columns per market; there a live outcome (prediction) market also carries Headline,
Outcome and Outcome_Side (its names, from the newest state snapshot; NULL otherwise). hours up to 720 (30 days); most fields come from 5-minute
roll-ups, so a window is honoured at 5-minute granularity.
Hyperliquid twaps
TWAP orders on Hyperliquid — large orders being worked over minutes to hours: who is
accumulating or distributing what, how far along, and whether it finished, was
terminated or errored. An in-flight TWAP (status = activated) is a whale that has not
finished building its position.
NOT individual fills → use hyperliquid_recent_trades (TWAP slices appear there with Is_Twap = 1).
NOT ordinary (non-TWAP) orders → use hyperliquid_order_flow.
NOT accounts ranked by their results → use hyperliquid_top_traders.
One row per TWAP order (latest state).
Market is the exact market id, Symbol the ticker; Size is in base units; Status is
activated (= running), finished, terminated or error.
Returns up to limit rows (default 50, at most 500), largest Executed_Usd first, then the
latest update. Filters: market, trader, status; hours = how far back the order's last
update may be (default 24, up to 720).
Each row: Twap_Id, Trader, Market, Symbol, Side, Size, Executed_Size, Executed_Usd, Progress_Pct, Duration_Minutes, Reduce_Only, Randomize, Status, Status_Error, Start_Time, Last_Update.
Hyperliquid vault depositors
DEPOSITORS of ONE Hyperliquid VAULT (HLP or any other) with their stake, deposits and
all-time PnL — "who is in HLP", "the biggest depositors of vault X", "is the leader still
invested". NOT the list of
vaults → use hyperliquid_vaults. The vault's positions: pass its address as trader to
hyperliquid_trader_portfolio.
Read from the newest complete snapshot of the exchange state (taken about every 12 minutes).
One row per depositor: Depositor, Is_Leader, Share_Pct of the vault, Equity_Usd (the stake's
value now), Net_Deposit_Usd (deposited minus withdrawn), All_Time_Pnl_Usd, Entry_Time,
Last_Deposit_Time, Lockup_Until (withdrawals locked until then). Depositors and Total_Equity_Usd
repeat the vault's totals on every row. sort = equity (default), pnl (highest All_Time_Pnl_Usd
first) or pnl_asc (lowest first).
Returns up to limit depositors (default 50, at most 500), by sort.
Each row: Snapshot_Time, Vault, Vault_Name, Depositor, Is_Leader, Share_Pct, Equity_Usd, Net_Deposit_Usd, All_Time_Pnl_Usd, Entry_Time, Last_Deposit_Time, Lockup_Until, Depositors, Total_Equity_Usd.
Hyperliquid vaults
LIST and RANK Hyperliquid VAULTS (pooled trading accounts run by a leader, HLP the exchange's
own) by capital or depositor count — "biggest vaults", "find vault X", "how much is in HLP",
its leader, commission and lockup. NOT the depositors of one vault → use
hyperliquid_vault_depositors. A vault's open positions, orders and balances: pass its address
as trader to hyperliquid_trader_portfolio.
Read from the newest complete snapshot of the exchange state (taken about every 12 minutes).
One row per vault: Vault (its address — also the account that trades), Name, Leader,
Equity_Usd (the exchange's figure for the vault; a parent such as HLP includes its child
vaults), Depositors, Leader_Share_Pct (the leader's own stake), Leader_Commission_Pct (of the
depositors' profit), Lockup_Hours, Is_Closed, Allow_Deposits, Relationship (normal, or parent /
child for a vault split into sub-vaults) and Child_Vaults, Created_Time, and from the vault's
own trading account: Account_Value_Usd, Open_Positions and Open_Notional_Usd (summed over the
perpetual venues it trades on). query matches the name or the address, case-insensitive
substring; closed vaults and vaults without equity are left out unless include_closed = 1.
Returns up to limit vaults (default 50, at most 500), by sort: equity (default) or depositors.
Each row: Snapshot_Time, Vault, Name, Leader, Equity_Usd, Depositors, Leader_Share_Pct, Leader_Commission_Pct, Lockup_Hours, Is_Closed, Allow_Deposits, Relationship, Child_Vaults, Created_Time, Account_Value_Usd, Open_Positions, Open_Notional_Usd.
Labels for addresses
BATCH label lookup for a LIST of addresses — label many wallets, counterparties or
holders in ONE call: each labeled address comes back with all its on-chain labels
(entity / category / CEX-deposit / mixer / scam / token-clone / …).
Use to label any set of addresses you already have — e.g. the counterparties returned
by a transfer / flow / holders tool. Those rows carry NO label field on Ethereum, BSC,
Polygon, Arbitrum, Base, Optimism, Tron, the XRP Ledger, Stellar or Cardano, so this call
is the step that identifies them. Only the Solana rows and the Bitcoin-style rows of
Bitcoin, Zcash, Litecoin, Dogecoin, Dash and Bitcoin Cash have an inline label field at
all, and it is SPARSE on Solana and EMPTY on all the others (the inline list holds none of
their addresses) — batch those addresses into this call; a blank one still needs it.
Zcash, Dash, Robinhood and Arc have no label coverage at all. Most Bitcoin Cash entries are
stored in the old 1… / 3… address form, so CashAddr (q… / p…) addresses find only a few.
Addresses may be separated by commas, pipes, spaces or newlines (any mix), so a
counterparty list can be pasted straight from another tool's output.
Each label comes back CHAIN-QUALIFIED as chain/label_type:label_value. On EVM
chains one address is the same owner everywhere, and a label is stored under the
chain it was observed on — so LEAVE chain EMPTY (the default) unless you truly
need one chain only; filtering by chain hides an exchange/entity tag that was
recorded under a different EVM chain.
Sources lists every source behind the address's labels and Source_Count how many there
are. Labels that disagree (e.g. cex-deposit-address AND cex-hot-wallet for one exchange)
come from different sources: a source whose name contains "heuristic" was inferred from
transfer patterns, while sanctions lists, official proof-of-reserves disclosures and
verified sources are curated — trust the entity they agree on and prefer the curated role.
address_labels shows which source recorded which label.
Source names: workflow:<name> is a Bitquery labelling pipeline - curated imports such as
sanctions and issuer block lists, proof-of-reserves disclosures, research sets and
label-provider enrichment - except that a name containing "heuristic" marks labels
inferred from transfer patterns (most exchange-deposit labels); labels-query-service:<provider>
was fetched on demand from an outside label provider when the address was looked up (one
provider's view, not reviewed); a plain name is the dataset itself (ofac, uk-ofsi,
eu-sanctions, japan-mof, france-gels and israel-nbctf are sanctions lists; walletexplorer and
bitcoinabuse are public Bitcoin datasets), and a name containing "verified" is a reviewed
import.
To answer "which TRADERS of token X are labeled (CEX-deposit / mixer / …)",
do it in two steps: first call top_traders_by_token (or
accumulating_/profitable_traders_by_token) to get the trader addresses, then
pass them here and match by address.
For ALL labels of ONE address use `address_labels`; to list every address
carrying a label use `addresses_by_label`. Only addresses that carry a label come back, and
every such row says OK in its Status column — an address missing from the answer carries no
label, a meaningful negative. When NONE of the addresses is labeled, the answer is ONE row
whose address is empty and whose Status says NO_LABELS_FOUND: the lookup ran and found
nothing, the same negative, not a failed call. Coverage varies by chain AND by label kind — exchange
deposit / hot-wallet tags are broad on the EVM chains and Tron, mixer tags exist
essentially only for Bitcoin, and sanctioned / darknet tags sit mostly on
Bitcoin, Tron and Ethereum. So an empty result on a given chain means "not
labeled there", not "clean".
Launch cohort
LAUNCH COHORT / BACKTEST of MANY token launches at once — every token whose
FIRST trade falls inside a launch window (for example all pump.fun launches of
a day), one row per launch: supply, price and FDV at launch, sniper and
first-minutes buying, and the outcome over the following hours — peak price
(the highest hourly average), peak multiple, hours to peak, last price,
drawdown, whether it still traded.
output=summary returns the cohort's distribution instead (quartiles, share
that reached 2x / 5x / 10x, share still trading) in one row. Answers
"backtest yesterday's pump.fun launches", "what share of new tokens did 10x
within 24 hours", "snipers and first-5-minute buying across launches",
"survival of launches after 6 hours", "which of today's launches had the
most buyers in the first minute". For one token or a given list of up to 50
(`addresses`) use token_launch_stats (launch snapshot), for one token's
wallets early_buyers; to list what just launched with its
current price use new_tokens. Prefer this tool over writing SQL for launch
cohorts and launch backtests.
Works for rare and newly-launched tokens.
COHORT: tokens on `blockchain` whose first trade is inside [after_time,
before_time) and that had no USD-priced trade in the `lookback_days` (default
7) before the window. Narrow it with address_pattern, a LIKE pattern on the
token address (`%pump` = pump.fun mints, `%bonk`, `%4444`), and/or protocol,
the DEX of the first trade (pump, pumpfun, pump_amm, raydium_launchpad,
pons_v2, fourmeme_v1, flap_v5, uniswap_v2 …). min_volume_usd (default 1000)
drops launches with less USD volume over the horizon (so far, while it is
still running) — most launches never trade $1,000; 0 keeps all.
min_window_buyers keeps launches with at least that many buying wallets in the
early window. Tokens that never had a USD-priced
trade are left out (almost all of them are dust).
WINDOW: at most 24 hours of launches per call; default = the 6 hours before
before_time (default now). With output=summary and neither after_time nor
before_time, the default window instead ends horizon_hours ago, so every
launch in it has a finished horizon. A longer range keeps its NEWEST 24 hours — read
Launch_Window_Start / Launch_Window_End and call again with before_time =
Launch_Window_Start for the previous day. Trade history reaches back about 30
days, and a launch within lookback_days of its start cannot be told apart
from an older token. Arc trades begin on 2026-09-16, so Arc launches within
lookback_days of that day may be older tokens.
ROW COLUMNS (output=tokens): Token_Address, Token_Symbol, Launch_Time (first
trade), First_Protocol, First_Pool, First_Quote_Symbol, Supply_At_Launch,
Launch_Price_Usd, Launch_Fdv_Usd; sniper window (first sniper_seconds):
First_Block_Buyers, Sniper_Buyers, Sniper_Buy_Usd; early window (first
window_seconds): Window_Trades, Window_Unpriced_Trades, Window_Buyers,
Window_Sellers, Window_Buy_Usd, Window_Sell_Usd, Window_End_Price_Usd,
Window_End_Fdv_Usd, Window_Complete; horizon (horizon_hours): Horizon_End,
Horizon_Complete, Horizon_Volume_Usd, Peak_Price_Usd, Peak_Fdv_Usd,
Peak_Multiple, Hours_To_Peak, Close_Price_Usd, Valuation_Price_Usd,
Valuation_Fdv_Usd, Valuation_Multiple,
Return_From_Window_End_Pct, Drawdown_From_Peak_Pct, Last_Active_Hour,
Traded_In_Last_Horizon_Hour, Supply_Change_Pct; Launch_Window_Start,
Launch_Window_End, Cursor.
READING THE ROWS: Launch_Price_Usd is the first swap worth at least $1 — a
smaller first fill prints a junk price, because on a bonding curve it buys at
the cheapest point the token will ever have (a $0.02 swap taking a tenth of
the supply implies a launch FDV of a few cents, and every multiple divides by
it). Window_End_Price_Usd keeps a $0.01 floor. USD amounts value
each swap at the lower of its two
priced sides, and Window_Unpriced_Trades counts swaps without a price.
First_Block_Buyers = buying wallets that traded at the exact timestamp of the
first trade (on chains with several blocks per second this can include the
next block). The HORIZON is measured on hourly bars that start with the
launch hour: Horizon_End is the top of an hour, so it covers between
horizon_hours − 1 and horizon_hours after the launch. Peak_Price_Usd = the
highest hourly AVERAGE price inside it, each hour weighted by its volume,
counting only hours that carried at least a thousandth of the launch's own
volume: one odd or tiny swap can print an extreme price, high or low, and a
near-empty hour can average one, so neither a bar's high nor its close nor a
trickle hour can set the peak. Peak_Fdv_Usd is that price × the supply at
launch. The peak can therefore sit BELOW Launch_Price_Usd — that one is the
price of the first swap of at least $1 — and Peak_Multiple can be under 1 for
a launch that only fell.
The horizon end has TWO prices and they answer different questions.
Close_Price_Usd = the last hourly close before Horizon_End (the last price if
the token stopped trading earlier): the latest thing known, but ONE swap, so
it can sit far above or below anything real. Valuation_Price_Usd = the average
of the newest hour that carried at least a thousandth of the launch's volume —
the same volume gate as the peak, so it is the last price at which real volume
changed hands, and it can never exceed Peak_Price_Usd. Quote Close_Price_Usd
as "the last print" and Valuation_Price_Usd as what the launch is worth. The
two are far apart when the last swap was junk — and also when the launch
STOPPED TRADING after its last real hour, which on a bonding curve leaves
Valuation_Price_Usd above Launch_Price_Usd for a launch that is already dead:
Traded_In_Last_Horizon_Hour and Drawdown_From_Peak_Pct say which of the two
it is, and both read the close.
Drawdown_From_Peak_Pct = Close_Price_Usd against Peak_Price_Usd, never above 0
and 0 for a launch that ends at or above its peak hour: it shows a collapse
inside the peak hour and a launch that died after it, both of which a
hour-against-hour comparison reads as 0. Hours_To_Peak = whole
hours from the launch hour to the peak hour (0 = the launch hour; the earliest
hour when several hours reach the peak).
Peak_Multiple and Valuation_Multiple divide by Launch_Price_Usd;
Return_From_Window_End_Pct = buying at Window_End_Price_Usd and selling at
the end of the horizon. Valuation_Fdv_Usd, Valuation_Multiple and
Return_From_Window_End_Pct are all measured at Valuation_Price_Usd, NOT at
Close_Price_Usd — a single closing swap made launches report an 80-million
FDV on a few thousand dollars of trading, and a close multiple above the peak
multiple. Close_Price_Usd × the supply is therefore not Valuation_Fdv_Usd, and
Valuation_Multiple cannot exceed Peak_Multiple any more.
FDV = price × total supply — the supply at launch, except
Valuation_Fdv_Usd, which uses the latest supply (NULL when the supply is unknown);
Supply_Change_Pct below 0 = supply burned. Window_Complete = 0 or
Horizon_Complete = 0 means that period has not elapsed yet and its figures are
still moving.
SUMMARY (output=summary): one row per group_by value (none = whole cohort,
protocol = DEX of the first trade, hour = launch hour) with Tokens,
Tokens_Horizon_Complete, totals, [p25, p50, p75, p90] arrays for window buy
USD, window buyers, sniper buyers and buy USD, first-block buyers, launch FDV,
peak FDV, peak and valuation multiples and return from window end,
Hours_To_Peak_Q = [p50, p90], and Pct_Peak_2x / 5x / 10x,
Pct_Valuation_At_Or_Above_Launch, Pct_Up_From_Window_End (both measured at
Valuation_Price_Usd, like the row columns they come from),
Pct_Down_90_From_Peak,
Pct_Traded_In_Last_Horizon_Hour. NEITHER SHARE IS A PROFIT RATE: almost every
launch has stopped trading by the end of a day-long horizon (on one measured
cohort Pct_Traded_In_Last_Horizon_Hour was 4.1 %), so a launch counted at or
above its launch price is usually one that went quiet holding the valuation
of its last real hour, not one you could still have sold into. Quote
Pct_Traded_In_Last_Horizon_Hour beside them, and Pct_Down_90_From_Peak — which
reads the last close — for how far the latest prints have fallen.
Outcome figures count only tokens whose
horizon has elapsed (NULL or [] while none has): the default summary window
already ended horizon_hours ago; an explicit window should end at least
horizon_hours ago too.
An empty result means no launch matched.
PAGING: sort=newest (default, newest launch first) pages with cursor — pass
the last row's Cursor and repeat every other argument, with after_time and
before_time set to the Launch_Window_Start / Launch_Window_End of the first
page. Other sorts (window_buy_usd, window_buyers, peak_multiple,
horizon_volume) return only the top `limit` launches, with an empty Cursor.
A call reads every launch of its window whatever the limit: for a
distribution use output=summary instead of paging through thousands of rows.
Follow launches up with token_launch_stats (one token, or a given list of
up to 50 in `addresses`), early_buyers or token_trade_bars.
Symbols longer than 32 characters are cut and end in `…` (spam tokens carry
symbols of up to 32,000 characters).
List databases
CATALOG of the databases raw SQL can reach — the SHOW DATABASES equivalent. For each database:
what it holds, which tool runs SQL against it, how to see its tables, and which specialized
tools answer the same questions without SQL. Call it before writing raw SQL against an
unfamiliar database. Takes no parameters and answers instantly.
trading_rt comes first: DEX trades, OHLC / volume bars, prices and supply for every trading
chain over the last ~30 days — query it with execute_sql, browse it with list_tables,
describe_table and search_columns. The per-chain databases (eth_api, bsc_api, matic_api,
arbitrum_api, base_api, optimism_api, robinhood_api, arc_api, tron_api, solana, bitcoin, bitcoin_flow,
ripple, ripple_flow, cardano, cardano_flow, altcoin, altcoin_flow - Litecoin, Dogecoin and Dash
in one database, rows told apart by blockchain_id - bitcash, bitcash_flow for Bitcoin Cash, and
stellar) hold transfers, calls, events, transactions and balances; browse them with
chain_list_tables, chain_describe_table and chain_search_columns (pass the database name) and
query each one with that chain's <chain>_transfers_raw_sql tool (xrp_, ada_, ltc_ / doge_ /
dash_, bch_ and xlm_transfers_raw_sql for the ones above after bitcoin_flow). zcash and
zcash_flow are queried with zec_transfers_raw_sql but the schema browser does not cover them:
that tool's description lists their tables. stellar_flow is not browsable either - it starts
in December 2023 and misses some ledgers, so query stellar instead. Address labels have no SQL
access at all — use the label tools. Prefer a specialized tool whenever one answers the question: it already filters
on the right keys and is far cheaper than hand-written SQL.
List tables
TABLES of the trading_rt database — the SHOW TABLES equivalent — with each table's engine,
sort key, partition key and approximate row count.
Returns up to 500 tables, sorted by name; narrow them with like (e.g. "by_token"). It reads
table metadata only, never table data.
The sort key is what makes raw SQL fast:
filter on its LEADING columns first; a query that skips them scans far more data.
trading_rt holds DEX trades, OHLC / volume bars, prices and supply of the last ~30 days for
every trading chain; query it with execute_sql, and prefer a specialized tool (find_tokens,
token_price, token_ohlcv, top_traders_by_token, trader_positions, …) whenever one answers
the question. Next steps: describe_table for one table's columns, search_columns to find
which table has a column.
Only trading_rt can be listed here. The per-chain transfer databases (eth_api, bsc_api,
solana, bitcoin, …) are listed with chain_list_tables; list_databases describes them all.
Each row: Database, Table, Engine, Sorting_Key, Partition_Key, Total_Rows.
Ltc address flow summary
ADDRESS FLOW SUMMARY / top counterparties of a Litecoin (ltc, LTC, mainnet) address in one call: who
it pays and who pays it, plus its lifetime profile and a computed Role. Call this FIRST when
triaging a hop; for raw rows use ltc_sent_from_address / ltc_address_received,
for one transaction ltc_tx_flow.
NOT only the lifetime totals, without counterparties → use ltc_address_profile.
PROFILE columns (Lifetime_*, First_Received, Last_Received, Last_Sent) cover the address's
WHOLE history.
Lifetime_Received_LTC / Lifetime_Sent_LTC are cumulative TURNOVER, not holdings: every
output ever paid to the address (including the change it pays back to itself inside its own
spending transactions) and every input it ever spent. The same coins are counted each time
they pass through, so a busy exchange wallet's totals can exceed the coin's total supply many
times over; Lifetime_Received minus Lifetime_Sent is the balance at this address.
Litecoin totals come from a pre-aggregated table that holds a few duplicated and a few missing
records. They match the transactions exactly on an ordinary address; on a busy one they can be
off in either direction by up to a fraction of a percent (a Litecoin exchange address: 10
receiving outputs and 78 LTC too many, 0.14 %), so a negative balance, or a remainder on an
emptied address, can be that artifact rather than real funds. For an exact figure on a single
transaction use ltc_tx_flow.
Role covers the WHOLE history too, not the `days` window, and follows from the lifetime counts:
no_transfers (nothing received and nothing spent) / receive_only (it never spent anything — cold
storage or an unused deposit address) / send_only (spends with no recorded receipt) / hub (more
than 1,000 distinct senders AND more than 1,000 distinct receivers — an exchange or service,
don't trace deeper) / consolidator (distinct senders more than 3 times distinct receivers) /
distributor (distinct receivers more than 3 times distinct senders) / relay (none of these).
The TOP ARRAYS cover only the last `days` (default 90) and, inside that window, at most the
1,000 most recent transactions on each side. Spend_Txs_Scanned / Receipt_Txs_Scanned say how
many were read; Spend_Txs_Truncated / Receipt_Txs_Truncated = 1 means older transactions in
the window were left out. So the arrays do NOT add up to the Lifetime_* totals. Window_Days /
Window_From state the period covered: empty arrays for an address whose Last_Sent is long
ago mean nothing moved in the window, not that it never moved — raise days.
Top_Receivers = the non-change recipients of the transactions this address spent in; Amount =
LTC paid to that recipient. Top_Senders = the input addresses of the transactions that paid
this address (change excluded); Amount = LTC this address received in those transactions.
A transaction with several input addresses credits each of them in full (they are usually one
owner — see ltc_related_addresses), so Amount can be far more than what moved between the
two addresses. pro_rata_amount is Amount scaled by the input share: how much of those
transactions this address paid (Top_Receivers) or that sender paid (Top_Senders). Both arrays
are RANKED by pro_rata_amount, largest first, and min_amount / max_amount filter on it — dust
and address-poisoning payments hidden inside a large co-signed transaction have a tiny share.
Window_Own_Input_LTC is what this address itself put into the spending transactions read,
the ceiling the Top_Receivers pro-rata amounts add up to. The arrays are built from a copy of
the transaction data that misses a few whole blocks (a handful a month), so a counterparty can
be absent.
READING THE TOP ARRAYS: positional 4-tuples [counterparty, amount, txs, pro_rata_amount]; the
Top_Fields column lists those names in the same order.
No address labels are returned here: identify the address and its counterparties with
labels_for_addresses(chain='litecoin'), which knows only a few hundred Litecoin addresses
(exchange reserve wallets, sanctioned entities) — pass Address and the Top_Receivers /
Top_Senders counterparties in ONE call; an empty answer there is a coverage gap, not a clean
address.
A counterparty shown as m-… or d-… is a script placeholder, not an address: it cannot be
traced further.
About one Litecoin output in seven is not classified (Note unknown) and counts as a payment,
so a few change outputs can appear among the recipients.
Amounts are in LTC; for a USD value use currency_price with currency_id "ltc".
A first call on an address can take a minute or more while its transactions are fetched;
repeated calls answer in seconds.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Ltc address profile
Litecoin (ltc, LTC, mainnet) address PROFILE (lifetime summary): total received & sent (LTC),
number of distinct senders/receivers, receiving/spending counts, first/last activity. Use to
triage a LTC address during tracing — how much flowed and how connected.
NOTE: an aggregate profile, not hop-by-hop edges — ltc_address_flow_summary returns the top
counterparties, ltc_flow_edges and ltc_tx_flow the edges.
Role from the ratio: Distinct_Senders ≫ Distinct_Receivers = consolidator; the reverse =
distributor; thousands of both = mega-hub (exchange — don't trace deeper).
Received_LTC / Sent_LTC are cumulative TURNOVER, not holdings: every output ever paid to the
address (including the change it pays back to itself inside its own spending
transactions) and every input it ever spent. The same coins are counted each time they
pass through, so a busy exchange wallet's totals can exceed the coin's total supply many
times over; Received_LTC minus Sent_LTC is the balance at this address.
Litecoin totals come from a pre-aggregated table that holds a few duplicated and a few missing
records. They match the transactions exactly on an ordinary address; on a busy one they can be
off in either direction by up to a fraction of a percent (a Litecoin exchange address: 10
receiving outputs and 78 LTC too many, 0.14 %), so a negative balance, or a remainder on an
emptied address, can be that artifact rather than real funds. For an exact figure on a single
transaction use ltc_tx_flow.
No address labels are returned here: identify addresses with
labels_for_addresses(chain='litecoin'), which knows only a few hundred Litecoin addresses
(exchange reserve wallets, sanctioned entities) — pass many addresses in ONE call; an empty
answer there is a coverage gap, not a clean address.
Amounts are in LTC; for a USD value use currency_price with currency_id "ltc".
Ltc address received
INCOMING Litecoin (ltc, LTC, mainnet) outputs for an address — every coin received (tx, amount,
output type: payment/change, time), most recent first. Indexed by
address (fast). Use to see what a LTC address received and in which transactions.
NOT what this address spent → use ltc_sent_from_address.
NOT sums over its whole history → use ltc_address_flow_summary or ltc_address_profile.
An address can receive several coins (outputs) in one transaction, each its own row.
Returns up to limit rows (default 20, at most 1000), newest first; page back with the last
row's Cursor - a page shorter than limit is the last one. Set sort='amount' for the largest
receipts instead: a top-N page with no Cursor.
NOTE: shows receiving events, not the sender addresses (a UTXO output has no single sender) —
pass a Tx to ltc_tx_flow to see the addresses that funded it, or call ltc_address_flow_summary
for the top senders. A small share of outputs is missing from this list (a few whole blocks a
month, under 0.1 % on busy addresses, a few % in some months of 2023), so it can hold a few
rows fewer than ltc_address_profile counts; ltc_tx_flow on the transaction is complete.
Each row: Time, Tx, Type, Amount_LTC, Cursor.
Ltc flow edges
MONEYFLOW GRAPH EDGES out of a Litecoin (ltc, LTC, mainnet) address: Source → Target (real
recipients of the address's spends, excluding change), total Amount (LTC). Building block for
a MoneyFlow DIAGRAM — call per address/hop, collect edges, render Mermaid `graph LR`. Merge
same-owner Targets via ltc_related_addresses.
NOT one transaction's outputs → use ltc_tx_flow.
NOT its spending transactions one by one → use ltc_sent_from_address.
Returns up to limit rows (default 20, at most 1000), one per recipient of its spends.
The edges carry no labels: identify the Targets with labels_for_addresses(chain='litecoin')
(many addresses in one call) and stop at exchange / mixer nodes.
A counterparty shown as m-… or d-… is a script placeholder, not an address: it cannot be
traced further.
About one Litecoin output in seven is not classified (Note unknown) and counts as a payment,
so a few change outputs can appear among the recipients.
Amount is the FULL value of those outputs; Pro_Rata_Amount is the part of it this address paid
for - its own input value divided by the total input value of the same transaction. When the
address signs a transaction together with other addresses, every output of it is credited to
each of them in full, so Amount can be many times the money this address ever moved (over a
hundred times on an address that keeps co-signing with a large wallet). The rows are therefore
RANKED by Pro_Rata_Amount, and that is the figure to add up or to compare between Targets.
Own_Input_LTC on every row is what the address itself put into the transactions read: the
Pro_Rata_Amount of all its edges adds up to at most that, the rest being fees and change it paid
back to itself.
SCOPE: reads the address's most recent max_txs spending transactions (default 1000, at most
2000); Amount, Pro_Rata_Amount and Txs cover those transactions only. Two scope columns on
every row state what was covered: how many of those transactions were read and the time of the
oldest one. Next_Cursor is set whenever the batch
was full, so older transactions may exist - pass it as cursor (same address and max_txs) to
continue with the next older batch; an empty Next_Cursor means the history ends here. The
outputs of those transactions come from a copy of the transaction data that misses a few whole
blocks (a handful a month), so an edge can be absent; ltc_tx_flow and
ltc_sent_from_address read the complete data. When nothing matched in the transactions
read, ONE row comes back with an empty Target that carries only these scope columns - that
means no edge in this batch, not in the whole history.
Each row: Source, Target, Currency, Amount, Pro_Rata_Amount, Txs, Own_Input_LTC, Spend_Txs_Scanned, Oldest_Spend_Time, Next_Cursor.
Ltc related addresses
LIKELY SAME-OWNER Litecoin (ltc, LTC, mainnet) addresses (common-input-ownership heuristic): addresses that
co-signed inputs together with this address in the same transactions — a strong signal
they belong to the same wallet/entity.
NOT the addresses it paid → use ltc_flow_edges.
Shared_Txs is how many txs they co-spent in, Co_Input_LTC the co-input volume.
Returns up to limit rows (default 20, at most 1000), most Shared_Txs first.
Use to expand an address into its cluster
during tracing. CAVEAT: CoinJoin/mixer txs break the heuristic (false positives) — treat
high-fan-in shared txs with caution. A shared input is evidence of one owner, not proof.
SCOPE: reads the address's most recent max_txs spending transactions (default 1000, at most
2000). Two scope columns on every row state what was covered: how many of those
transactions were read and the time of the oldest one.
Next_Cursor is set whenever the batch was full, so older transactions may exist - pass it as
cursor (same address and max_txs) to continue with the next older batch; an empty Next_Cursor
means the history ends here. The inputs of those transactions come from a copy of the
transaction data that misses a few whole blocks (a handful a month), so a transaction counted in
Spend_Txs_Scanned can contribute no related address; ltc_tx_flow and
ltc_sent_from_address read the complete data. When nothing matched in the transactions
read, ONE row comes back with an empty Related_Address that carries only these scope columns -
that means nothing in this batch, not in the whole history.
No address labels are returned here: identify addresses with
labels_for_addresses(chain='litecoin'), which knows only a few hundred Litecoin addresses
(exchange reserve wallets, sanctioned entities) — pass many addresses in ONE call; an empty
answer there is a coverage gap, not a clean address.
Each row: Related_Address, Shared_Txs, Co_Input_LTC, Spend_Txs_Scanned, Oldest_Spend_Time, Next_Cursor.
Ltc sent from address
OUTGOING Litecoin (ltc, LTC, mainnet) — transactions where this address SPENT coins (its inputs): tx,
amount, time, and the prior tx that funded each input. Indexed by address (fast).
NOT what this address received → use ltc_address_received.
Page back through history with cursor: pass the Cursor value of the LAST row of a
page to get the next one — unlike before_time it never skips rows that share a
timestamp (a busy address can spend hundreds of inputs in the same second).
Set sort='amount' to surface the largest spends instead of the newest.
To see WHERE the funds went, take a Spend_Tx and call ltc_tx_flow — its non-change
outputs are the recipients.
Ltc transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Litecoin transfers data. The ltc_* tools are
the PRIORITY; use this ONLY when none of them can answer. No query optimizer here: filter on
the per-key tables and NEVER JOIN big tables (use `IN (SELECT …)`, the only way to "follow"
across txs).
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
This data runs on an older release of the engine: some functions and syntax in that reference
(map() and toJSONString() among them) do not exist here — when a statement is refused for an
unknown function or setting, use the forms shown in this description.
Every table has a `blockchain_id` column and also holds rows of other blockchain_id values:
filter `blockchain_id = 6` (Litecoin) on EVERY table you read, inside each IN (SELECT …) as
well — block numbers are not unique across blockchain_id values, so an unfiltered read mixes
in rows that are not Litecoin's. Query the plain names of db `altcoin`, NEVER a `_storage`
table (each holds only part of the data).
Tables (db `altcoin`): `altcoin.inputs_by_address` / `outputs_by_address` (by address),
`altcoin.inputs_by_tx` (by tx; cols address, tx_id_bin, value, output_tx_id_bin, output_index)
and `altcoin.outputs_by_tx` (by tx; cols address, tx_id_bin, output_index, value and
direction, an Enum
unknown/not_change/change/likely_not_change/likely_change/mining/fee/minting/genesis),
`altcoin.transactions` (one row per tx: tx_date, input_value, output_value, fee_value,
is_coinbase; look a hash's tx_date up here first). Every `altcoin` table is partitioned by
month on `tx_date` — add a `tx_date` bound whenever you can: a read by address or tx alone
probes every month since the chain began. Db `altcoin_flow`: address_transfers (keyed by
blockchain_id, address; AggregateFunction → -Merge; its count / sum totals hold a few
duplicated and missing records — take exact totals from the `altcoin` tables),
outputs_to_address (by address), tx_inputs / tx_outputs (by block, tx_index; a few whole
blocks are missing).
Addresses & tx ids: `address` is a plain string (L… / M… base58, ltc1… bech32 lowercase; m-… /
d-… placeholders for bare multisig / non-standard scripts; empty for coinbase inputs and fee
rows); `tx_id_bin = unhex('<64hex>')`, output `hex(tx_id_bin)`; `value` is Decimal(18,8),
already in LTC (a JSON number: above about 1e8 it loses its last decimals - return
toString(value) when every decimal matters). Date-times come back as 'YYYY-MM-DD hh:mm:ss'
UTC; select formatDateTime(tx_time, '%FT%TZ') for ISO-8601 (2026-09-21T15:04:18Z), the shape
the other tools return. Address labels: none in this data — use
labels_for_addresses(chain='litecoin'). Read-only; JSONEachRow. A result of more than 25,000
rows is not cut off - the whole query fails with an error - so aggregate (GROUP BY, count) or
add a LIMIT of at most 25,000. 64-bit integers come back as JSON numbers, exact only up to
2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x).
Ltc tx flow
Full flow of one or several Litecoin (ltc, LTC, mainnet) transactions: all INPUT addresses (senders) and
OUTPUT addresses (receivers) with amounts, each annotated. Note shows change/not_change
on outputs — the real payment is the non-change output(s). THE hop primitive for LTC
tracing: follow a non-change recipient to its own spends (ltc_sent_from_address) and
repeat. tx_hash is the 64-hex id as returned by the other ltc tools; pass several ids
separated by "|" (up to 50; ids past the 50th are ignored) to expand a batch in one call — the Tx column attributes each row.
Side is input, output, fee (the miner fee of the transaction — one row per transaction, 0 on a
block reward) or not_found (a requested id that does not exist here — check the id and the
chain). Index is the position of the input or output inside the transaction, and Funded_By_Tx on
an input row is the transaction that created the coins being spent — pass it back to this tool
to trace one hop backwards. An output whose address is also one of the transaction's OWN input
addresses is marked change_to_input_address: the wallet paid itself, so it is not a payment to
someone else.
Outputs whose script has no standard address carry a placeholder instead of an address: m-… (a
bare multisig script) or d-… (a data or other non-standard script; one d-… value can stand for
many unrelated outputs). A placeholder cannot be looked up with the address tools — the
visible trail ends there.
About one Litecoin output in seven is not classified (Note unknown) and counts as a payment,
so a few change outputs can appear among the recipients.
No address labels are returned here: identify addresses with
labels_for_addresses(chain='litecoin'), which knows only a few hundred Litecoin addresses
(exchange reserve wallets, sanctioned entities) — pass many addresses in ONE call; an empty
answer there is a coverage gap, not a clean address.
Ltc wallet ledger
WALLET LEDGER of a set of Litecoin (ltc, LTC, mainnet) addresses — one row per transaction
that touches the client's addresses, NETTED over the whole set: what the set received, what it
spent and the difference, so change paid back to one of the client's own addresses is neither
income nor a payment. Built for accounting and tax ledgers, wallet statements and
reconciliation. NOT one address's raw outputs or inputs — use ltc_address_received /
ltc_sent_from_address; NOT the addresses inside one transaction — use ltc_tx_flow.
Pass EVERY address of the wallet in `addresses` (up to 50 per call). Netting covers only the
addresses passed: an address of the same wallet that is left out looks like an outside party —
its change shows as a payment out and its inputs as someone else's (Fee_Shared = 1 is the
usual sign). ltc_related_addresses suggests addresses that sign together with a known one.
Direction: in (the set funded no input — a receipt), out (the set funded inputs and at least
one output went elsewhere), self (the set funded inputs and every output came back to it — a
consolidation or an internal move, only the fee left). Net_LTC = Received_LTC − Spent_LTC,
negative on a payment; on an outgoing payment the amount that went to others is −Net −
Fee_Paid. On a transaction funded together with other addresses (Fee_Shared = 1) Net can be
positive although Direction is out or self — read the sign of Net. Received_Raw / Spent_Raw /
Net_Raw / Fee_Raw / Fee_Paid_Raw are the same amounts as exact integer strings in the smallest
unit (1 LTC = 100,000,000 units) — use them when every digit matters; the decimal columns are
JSON numbers.
Fee_LTC is the miner fee of the whole transaction. Fee_Paid_LTC is the set's part of it: all
of it when the set funded every input, nothing when it funded none (a receipt costs the
receiver no fee), and — when other addresses funded inputs too (Fee_Shared = 1) — the fee
split by input value (fee × spent ÷ all inputs, rounded half up to the smallest unit),
Input_Share being the set's share of the transaction's inputs; what the other parties paid is
Fee − Fee_Paid. A shared fee is an estimate: either addresses of the wallet are missing from
`addresses`, or several parties built the transaction together. Is_Coinbase = 1 marks a block
reward (newly mined coins).
Fee_Status is exact, or unknown when the transaction's totals are not available — the fee
columns are then null and a spend's Direction reads unknown.
Price_Usd is the USD price of LTC at the start of the transaction's hour (hourly market data).
Value_Usd = Net × Price_Usd, signed like Net, and Fee_Usd = Fee_Paid × Price_Usd.
Price_Status: ok; no_price (no market price for that hour — the newest hour or two have none
yet — Price_Usd and the USD columns are null, never a guess and never today's price); suspect
(the price is more than twice, or less than half, the price one day earlier AND one day later
— a likely data glitch, so Value_Usd and Fee_Usd are left empty).
Rows come newest first in block order (Block, then Tx_Index). The window is the last `days`
(default 365), or after_time … before_time for a fixed period such as a tax year. Page with
cursor: pass the Cursor of the LAST row, with every other argument unchanged, to get the next
older page. after_time and before_time bound every page, so no page leaves the period. With
after_time set, a page shorter than `limit` is the end of the period; without it each page
looks `days` back from its cursor, so a walk continues into older history until a page comes
back short. Addresses_Requested / Addresses_Used on every row say how many distinct addresses
were passed and how many were read. No rows = no transaction of these addresses in the window.
Counterparties are not listed: pass a Tx to ltc_tx_flow.
SCAN COST grows with the window and with the number of addresses, not with limit: prefer a
fixed period to a very large `days`. A window in which the addresses have more than 200,000
inputs or outputs (an exchange-size address) is refused — narrow it.
Matic address flow summary
ADDRESS FLOW SUMMARY / top counterparties: who a Polygon (matic, POL, MATIC, PoS) address sends funds TO and receives funds FROM, in one call — profile (sent/received
transfer counts, distinct receivers/senders) + TOP receivers AND TOP senders.
Collapses address_profile + trace_next_hop(out) + an incoming convergence into a
single call — call this FIRST when triaging a hop. Returns a computed Role:
receive_only (no outgoing transfer in the period) / send_only (no incoming one) /
no_transfers (neither) / consolidator (senders ≫ receivers) / distributor (receivers ≫
senders) / hub (thousands of both — don't trace deeper) / relay. The profile counts
and Role ALWAYS cover all tokens: currency and contract narrow only the top arrays
(matic_address_profile applies them to every count). Pass the returned counterparties to
labels_for_addresses to identify them. For raw rows use matic_transfers_in/out; for
one direction's full ranking use matic_trace_next_hop. READING THE TOP ARRAYS: one
entry per (counterparty, TOKEN) — the same address repeats once per token it moved.
Symbols are not unique; identify a token by `contract`. On a very high-traffic address
(an exchange or bridge hub) this aggregates a lot of history and can take tens of
seconds — narrow it with contract or currency to one token to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
after_time / before_time bound BOTH the profile counts and the top arrays to one period
(without them both cover the whole history).
Counts and arrays are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with matic_tx_transfers, then trace that address
(matic_transactions lists where this account's transactions go).
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
POL moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Matic address profile
Polygon (matic, POL, MATIC, PoS) address STATISTICS — successful transfer counts out/in and distinct
counterparties (receivers/senders), across all tokens. Fast triage of an address
during tracing. For one-call triage that ALSO returns the top counterparties,
prefer matic_address_flow_summary.
Role from the ratio (cheap triage before flow_edges): senders ≫ receivers =
consolidator / sweep; receivers ≫ senders = distributor; ~1↔1 = relay (layering);
thousands of both = mega-hub (exchange / treasury — don't trace deeper). No outgoing transfers at all =
receive-only and no incoming = send-only, not a consolidator / distributor.
First_Sent / Last_Sent / First_Received / Last_Received = first and last transfer in each
direction. Bound a period with after_time / before_time; restrict to one token with
contract (or currency) to also get Sent_Amount / Received_Amount in that token's units -
without a token filter the amounts are NULL, because different tokens cannot be added.
currency / contract (like after_time / before_time) narrow EVERY count, time and
amount here - unlike matic_address_flow_summary, whose profile counts always cover
all tokens.
The counts are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with matic_tx_transfers, then trace that address
(matic_transactions lists where this account's transactions go).
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
POL moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Matic contract creator
WHO CREATED a Polygon (matic, POL, MATIC, PoS) contract, and what a creator deployed. Answers "who created / deployed
this token", "who is behind this contract", "what else did this deployer launch", and
"were these tokens made by the same person" (serial deployers, rug and clone farms).
NOT who funded a wallet → use matic_first_funder.
On this chain a token IS a contract, so pass the TOKEN'S CONTRACT ADDRESS in contracts.
TWO WAYS TO CALL IT, pick one - setting both is refused, because the two answer different questions and their shared-creator counters would be mixed:
contracts="0x..|0x.." - up to 50 contracts, one row each: Creator (the address whose
code ran CREATE), Signer, Created_At, Block_Number, Tx, Deploy_Value, Gas_Used and
Deploy_Success. Rows whose creator or signer is SHARED come first: Creator_Shared /
Signer_Shared count how many of the requested contracts have that same creator / signer, which
is what exposes one person behind many tokens. A longer list is not an error: the first
50 distinct addresses are used and the rest ignored - compare Contracts_Requested
with Contracts_Used and split a longer list into several calls.
creator="0x.." - the contracts THAT address deployed, newest first, inside the window (days,
after_time, before_time), at most `limit` rows. Use it on the Creator or Signer a first call
returned, to see the rest of that deployer's output. Creator_Shared is empty in this form -
every row has the same creator by construction, so the counter would only repeat the row count.
Creator_Is_Contract = 1 means the contract was deployed BY OTHER CONTRACT CODE - a
token factory, a launchpad or a DEX pair factory - and then Creator is that factory, which is the
SAME address for every token it ever made, while Signer is the person who asked for it. On a
factory-made token read Signer, not Creator. Deploy_Depth is how deep inside the transaction the
deployment happened (0 = the transaction itself) and Call_Index is the deployment's position in
that transaction - one transaction can deploy several contracts, and Call_Index is what tells
those rows apart when everything else about them looks the same.
Status = NOT_FOUND means no deployment is recorded for that address: it is a plain wallet, not a
contract, or the deployment is older than the recorded history of this chain. Creations is
normally 1; a higher number means the address was created more than once (destroyed and
redeployed), and the row describes the EARLIEST creation.
THE CREATOR'S STORY IS NOT IN THIS TOOL - build it from the returned addresses:
labels_for_addresses (is the creator a known entity, exchange or scammer), matic_first_funder
(who funded the creator, and whether several creators share one sponsor), matic_address_profile
and matic_transfers_in / matic_transfers_out (what that wallet does), matic_flows_between
(what moved between the creator and the token). The token's own name, symbol, price and market
cap come from find_token_by_address; its first buyers from early_buyers.
Amounts are the native coin, never USD. COST: a contract lookup has to walk every call that address
ever received, so a handful of ordinary tokens answer in a second or two while one exchange-scale
contract can take ~20 s on its own. If you already know roughly when the contract appeared, bound it
with after_time / before_time - that alone took one busy token from 21 s to 2 s. A row-limit error
("Limit for rows ... exceeded") means the batch is too busy: bound it that way, or split the list.
Matic find calls
FIND SMART-CONTRACT CALLS on one Polygon (matic, POL, MATIC, PoS) contract by method — "who called method X on contract Y, when, did it succeed"
in one filtered query.
NOT event logs a contract emitted → use matic_find_events.
NOT what one address signed or received → use matic_transactions.
Returns up to limit calls (default 20, at most 10000), newest first; page back with the last row's
Cursor - each page covers the days window ending there.
Match by method name (e.g. "transfer"), full signature
("transfer(address,uint256)"), or raw 4-byte selector (e.g. "a9059cbb");
optionally restrict to one caller. Searches the last 7 days by default —
set after_time to reach further back. Includes reverted calls when
only_successful=0 (with error text).
Then inspect a transaction's fund movements with matic_tx_transfers.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Calls inside one transaction come back in no particular order - sort them by
CallPath if you need execution order.
Each row carries the call's decoded input Arguments (Name, Type, Value; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). A method the decoder does not recognise has
no Arguments.
Value is the POL attached to the call.
Each row: Tx, Time, Block, Caller, Method, Signature, Selector, CallPath, Value, Success, Reverted, Error, GasUsed, Cursor, Arguments, ArgumentCount, ArgumentsTruncated.
Matic find events
FIND EVENT LOGS on one Polygon (matic, POL, MATIC, PoS) contract by event name — e.g. every
"Transfer", or a rare custom event. `contract` matches logs that contract
EMITTED ITSELF (tokens behind a proxy are found by their public address),
plus — when it is a proxy's implementation — the logs its code emitted for
that proxy. Logs emitted by OTHER contracts it calls are NOT included: a
DEX router's swaps are logged by the pair/pool it calls, not by the router,
so contract=<router> with event=Swap returns NOTHING even when the router
executed thousands of swaps. An empty result for a router, aggregator or
smart wallet does NOT mean there was no activity. To get those logs, pass
the pair/pool (or token) address as `contract`; if it is unknown, list the
router's transactions with matic_find_calls (contract=<router>) and pass
their Tx hashes (up to 50, "|"-separated) to matic_tx_events with
event=Swap — its CallPath shows which call produced each log.
Match by event name or full signature
(case-insensitive); narrow matched rows to one emitter with `emitter`.
Searches the last 7 days by default — set after_time to reach
further back, or page back with cursor: pass the Cursor value of the LAST
row of a page to get the next one, and each page covers the days-sized
window before it. Unlike before_time, a cursor never skips rows that share
a timestamp. Then inspect a transaction's fund movements with
matic_tx_transfers. For finding the CALLS themselves (method, selector,
revert info) use matic_find_calls.
Each row carries the log's decoded Arguments (Name, Type, Value, Indexed; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). Parsed=0 rows have no Arguments. Argument NAMES
come from one known ABI for the Signature: a contract that emits the same Signature with
other parameter names gets those names too, so a Name can be wrong for this contract -
identify an argument by its position and Type, and check a doubtful one against the raw
Topics/Data. For raw
Topics/Data, or the rest of a cut list, pass the Tx to matic_tx_events. Unrecognized events can be found here by `topic0`.
ONE ROW = ONE EVENT LOG. A contract can be called many times inside a single
transaction and each of those internal calls can emit its own logs, so the same
event name legitimately repeats within one transaction - that is NOT duplication.
Rows are told apart by CallIndex (which internal call emitted the log) together
with LogInCall (the log's position inside that call); that pair is unique within
a transaction. To COUNT events, count the returned rows - never de-duplicate on
Tx/Event/Emitter, which would merge genuinely different logs into one.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Rows inside one transaction come back in no particular order - sort them by
CallIndex then LogInCall if you need emission order.
Matic first funder
FIRST FUNDER / COMMON SPONSOR of up to 50 Polygon (matic, POL, MATIC, PoS) addresses: for each address the
EARLIEST incoming transfer INSIDE THE WINDOW (by default the last 180 days - not necessarily
the first ever, see WINDOW) - who sent it (Funder), who signed that transaction (Tx_From), when
(First_Time), how much of which token, and the Tx. Answers "who funded these wallets" and "do
these wallets share a sponsor" (sybil, sniper and airdrop-farming clusters).
NOT who deployed a contract → use matic_contract_creator.
Pass the addresses separated by "|". A longer list is not an error: the first 50 distinct addresses are
used and the rest are ignored - every row reports Addresses_Requested / Addresses_Used, so compare
them and split a longer list into several calls. One row per used address, and rows whose funder is shared come FIRST:
Funder_Shared = how many of the requested addresses have that same first funder,
Tx_From_Shared = the same count for the transaction's signer - it catches wallets funded
through a public batch-sending contract, where Funder is the contract and the signer is the real
sponsor. Funder_In_Set = 1 when the funder is itself one of the requested addresses (a funding
chain). Via_Internal_Call = 1 marks funding sent by contract code deeper inside a transaction; the transfer a transaction makes itself is top-level, so it reads 0. Incoming_In_Window = how many qualifying incoming transfers the address had in
the window.
WHAT COUNTS AS FUNDING: by default native POL only (asset_type="native"), including POL sent by contract code (include_internal=1); set
asset_type="token" or "all", or pin one token with contract, to look at token funding instead.
Zero-amount transfers, mints and self-transfers never count; raise min_amount to skip dust.
WINDOW: the first funding INSIDE the last `days` days (default 180, at most 730)
ending at before_time or now, or starting at after_time within the same limit.
Status = FIRST_IN_WINDOW: the earliest qualifying funding between Window_From and Window_To. It is
the address's first-ever funding ONLY if the address had no activity before Window_From, and this
tool does not check that. To check one address, compare First_Time with the First_Received of
matic_address_profile for it (an earlier First_Received means it already received something
before the window). To look further back, call again with before_time set to the row's
Window_From. Status = NO_INCOMING_IN_WINDOW means nothing qualifying
arrived in the window: call again for those addresses with before_time set to their Window_From
to look further back.
COST grows with the number of addresses times the length of the window: for dozens of
addresses keep days at 180 and page back with before_time rather than widening
days. A row-limit error ("Limit for rows ... exceeded") means an address in the list is too busy (an
exchange, bridge or popular contract) or the window is too long - drop that address or shorten
days. Amounts are TOKEN UNITS, never USD. To identify funders, pass them to
labels_for_addresses; to see everything that moved between the funders and the wallets, use
matic_flows_between.
Matic flow edges
MONEYFLOW GRAPH EDGES out of a Polygon (matic, POL, MATIC, PoS) address: one row per
counterparty — Source → Target, total Amount, Currency.
NOT choosing which counterparty to follow next → use matic_trace_next_hop.
Building block for a MoneyFlow
DIAGRAM. HOW TO DRAW: call this per address/hop, collect the edges, and emit a Mermaid
`graph LR` (one node per address; each edge labeled with Amount+Currency). Pass the
Target addresses to labels_for_addresses to flag CEX / mixer / bridge nodes and STOP
expanding those branches. Pass a currency to avoid spam-token noise; call WITHOUT a
currency filter to spot a token → USDT off-ramp at the edge. For raw per-transfer rows
use matic_transfers_out. Each edge carries the token Contract — pin one exact token
with the contract param. On a very high-traffic address (an exchange or bridge hub)
this aggregates a lot of history and can take tens of seconds — narrow it with
contract or currency to one token to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
Bound one period with after_time / before_time. First_Seen / Last_Seen give each
edge's first and last transfer.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
POL moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Matic flows between
FLOWS BETWEEN TWO ADDRESS SETS on Polygon (matic, POL, MATIC, PoS): every successful transfer (tokens and native
POL) from any address of set A to any address of set B, and back, in ONE call - "did these
wallets ever pay those wallets", "how much moved between my suspects and the exchange
wallets", "which of these deposit addresses sent to that hot wallet". Pass up to
50 addresses per set separated by "|" (0xabc…|0xdef…). A longer list is not an error:
the first 50 distinct addresses of each set are used and the rest are ignored -
every row reports A_Addresses_Requested / A_Addresses_Used and B_Addresses_Requested /
B_Addresses_Used, so compare them and split a longer set into several calls. Leave addresses_b EMPTY to get every
counterparty of the A set, both directions, grouped per A address - the multi-address form of
matic_flow_edges.
mode="summary" (default) returns one row per (Direction, Sender, Receiver, token) with
Transfers, total Amount, First_Time, Last_Time and the latest Tx, ordered by `sort`.
mode="rows" returns the individual transfers newest first; page with cursor: pass the Cursor
value of the LAST row, with all other arguments unchanged, to get the next page (a summary row
carries no Cursor). A rows-mode row is a LEDGER LINE: besides the amount it carries Amount_Raw (the
exact integer amount in the token's smallest unit) with Decimals, Block and Tx_Index, and Price_Usd
(the token's USD price at the time of the transfer), Value_Usd = Amount x Price_Usd and
Price_Status - "ok"; "no_price" = no price is known for this token at that time, so Price_Usd and
Value_Usd are empty (never read that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check it with
price_at. POL and the major tokens are priced to 5 minutes, every other token has ONE price per day, so the value of a small token is approximate. On a summary row those seven columns are empty: a total over a
period has no single price. Self = 1 (both modes) marks a movement whose counterparty is another
address of set A - a move inside the set, not income and not spending.
Direction A_TO_B = sent by an A address to a B address, B_TO_A = sent by a B
address to an A address; an address listed in both sets appears in both directions. With
addresses_b empty the same holds for a transfer between two A addresses: it is listed as A_TO_B
for its sender AND as B_TO_A for its receiver, so never add rows of both directions together.
WINDOW: the last `days` days (default 30, at most 366) ending at before_time, or now;
after_time sets the start instead, within the same 366-day limit. Window_From / Window_To
on every row show the range searched; for an older period set before_time. An empty result means
no transfer between the sets in that window.
COST: the search is keyed on set A, so put the SMALLER and less busy set in addresses_a -
individual wallets, not exchange hot wallets, bridges or token contracts. If the call fails
with a row-limit error ("Limit for rows ... exceeded"), swap the two sets, shorten days, or
split set A. Cost also grows with the number of addresses in set A times the window.
Each row carries the token Contract (empty for native POL); a symbol alone can match
look-alike clones, so pin one token with contract, or restrict to native or tokens with
asset_type. Amount is in TOKEN UNITS: totals of different tokens must not be compared or added
together, there is no usd filter (min_amount is in token units), and sort="amount" is only
meaningful with one token pinned. To identify the addresses, pass them to
labels_for_addresses.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Matic native balances
NATIVE COIN BALANCE of up to 50 Polygon (matic, POL, MATIC, PoS) addresses you ALREADY HAVE: each address's
current POL balance (the coin that pays gas) - for filtering a known set of wallets down to the funded
ones, e.g. an airdrop cohort.
To discover holders you do not have yet, use matic_token_holders. NOT one address's transfer history → use matic_address_flow_summary.
Pass the addresses separated by "|" (0x..) - up to 50; addresses after the
50th distinct one are ignored (compare Addresses_Requested with Addresses_Used), so split
a longer list into several calls.
WINDOW: only balances UPDATED within the last `since_days` days (default 7) are read, so an address
that has not moved its native coin in that window returns NO row. Use the same window you searched for
activity - e.g. the window of matic_token_senders - because an active wallet's balance is always
fresh there; a wider window costs more for no gain on active wallets.
Native_Balance is in POL (18 decimals); Native_Balance_Raw is the exact integer amount (wei);
Balance_As_Of is when that balance was last updated. To identify the addresses, pass them to
labels_for_addresses.
Each row: Address, Native_Balance, Native_Balance_Raw, Balance_As_Of, Addresses_Requested, Addresses_Used.
Matic token holders
TOP HOLDERS of a Polygon (matic, POL, MATIC, PoS) token by CURRENT on-chain balance — holder address +
balance, largest first. Use for token analysis: whales, holder concentration,
distribution. Pass the token CONTRACT address (not a wallet). Label the returned
holders with labels_for_addresses to spot CEX / team / LP / bridge wallets. This is
real on-chain balance, NOT DEX-trade PnL — for trader profitability use
profitable_traders_by_token / trader_positions. Balances exclude NFTs (fungible only).
SCOPE. days=0 (default) ranks EVERY holder over the token's whole history, and
Holders_In_Window is then the token's holder count (positive balances). A very
widely held token - a major stablecoin, for example - has too much history for that:
the call answers at once with one Status=TOO_LARGE row instead of timing out. Then
call with days=30 (days=7 if that is still TOO_LARGE): it ranks the holders whose
balance CHANGED in that window, and their balances are still exact current balances.
A holder that did not move the token in the window is absent, so on such a token the
page is the top of the ACTIVE holders, not a guaranteed global top. To reach quieter
holders pass Next_Cursor as cursor: each page covers the next older window of `days`
and lists only holders whose LAST balance change falls inside it, so no holder
appears on two pages and the top N of all pages merged is the global top N. Each
page also checks all later activity up to today, so paging far back on a very busy
token ends in TOO_LARGE - stop there and say the list covers only the windows read.
Next_Cursor is empty when the token has nothing older. Window_From / Window_To are
the dates a page covers (Window_From empty = whole history). A row with an empty
Holder is a status row: read Status (TOO_LARGE / NO_HOLDERS / BAD_CURSOR).
Balance is in the token's OWN units, never USD - no USD value is available in
this data, so there is no usd filter and balances of different tokens are not
comparable. `Decimals` gives the scale. Holders whose recorded balance is NEGATIVE
are dropped and counted in Negative_Balances_Excluded: the transfer history behind
them is inconsistent (typically a transfer recorded twice or missing), so that
balance cannot be trusted - and the same kind of error can inflate a positive
balance of that token. A balance far above the token's total supply is such an
artifact, not a whale: check it with token_supply or the holder's transfers before
reporting it.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
Matic token senders
TOKEN SENDERS COHORT on Polygon (matic, POL, MATIC, PoS): the addresses that SENT a given token at least `min_transfers`
times inside a time window, most recently active first - "wallets that actively use this token",
"build a cohort or airdrop list of recent senders of this token".
NOT one wallet's own outgoing transfers → use matic_transfers_out.
This counts SENDERS of the token, one row per sender; it does not value or label them - pass the
returned addresses to labels_for_addresses, and to matic_native_balances to keep only funded
wallets. By default only normal user wallets (EOAs) that sent the token in their OWN transaction count (eoa_only=1); set eoa_only=0 to include contract senders.
Pass the token's CONTRACT address in token (0x-hex (case-insensitive)); a symbol also matches clone tokens, so
pin the exact contract.
WINDOW: the last `days` days (default 1, at most 30) ending at before_time or now;
after_time sets the start instead. A sender must reach `min_transfers` sends WITHIN this window, so a
short recent window keeps only clearly-active wallets - the recency the cohort wants. There is no
full-history mode: to go further back, page with before_time.
PAGING: newest-active first, at most `limit` rows. If the result has `limit` rows there may be more -
set before_time to the oldest Last_Transfer_Time returned and call again, then combine and
de-duplicate the pages.
COST grows with the token's volume times the window: widen `days` step by step. A row-limit error
("Limit for rows ... exceeded") means the token is too busy for that window - shorten days.
Each row: Address, Transfers, First_Transfer_Time, Last_Transfer_Time.
Matic trace dominant path
AUTO-WALK the dominant (largest-total-amount) OUTGOING edge of ONE token from a
Polygon (matic, POL, MATIC, PoS) address, hop by hop, up to 5 hops — collapses ~5 manual
matic_trace_next_hop calls into one. Every hop returns Hop*_To (the address that
received), Hop*_Token (the contract of the token that moved) and Hop*_Edge_Total, plus
Hops_Found (how many hops resolved) and Path_Status for the walk itself.
Hop*_Edge_Total is NOT the amount that travelled along the path: it is the ALL-TIME
total of EVERY transfer of that token between that hop's sender and receiver, so it
can be orders of magnitude larger than the sum you are tracing and the hop totals are
not comparable with each other. To break one edge down — its transfer count
(Transfers), first/last seen, and the full ranking of that address's edges — call
matic_trace_next_hop on the hop's sender.
The walk NEVER goes back to an address it has already visited (the seed included), so
it cannot bounce back and forth between the same two wallets — each hop is the largest
edge to a NEW address.
READ Path_Status FIRST — NO_MATCH means the token filter matched nothing (wrong symbol,
or that symbol belongs to a different token — pass `contract`), PATH_END means the
trail really ran out, DEPTH_LIMIT means it may continue past hop 5. All-NULL hops with
NO_MATCH are a filter problem, not a dead end.
Pass the hop addresses to labels_for_addresses and read down to the FIRST labeled
address (CEX / mixer / bridge) — that's the destination.
Pin the token with `contract` whenever you know it — a SYMBOL is not unique, clone
tokens reuse popular symbols, and with a symbol alone the hops can drift between
look-alike tokens; compare the per-hop token contract to spot that.
LIMITS: follows only the single biggest edge per hop (misses splits / fan-outs), fixed
depth 5, and transfers to the burn address are not followed. For branching / adaptive
tracing call matic_trace_next_hop hop by hop, identify each hop with
labels_for_addresses and choose the next address yourself (prompt_playbook with
playbook=money_flow returns the full step-by-step procedure); for one hop's full ranking use
matic_trace_next_hop. Heavy multi-hop walk — can time out on a very busy address; retry,
or narrow it with `contract` / a less-busy token.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
POL moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Matic trace next hop
CONVERGENCE primitive for Polygon (matic, POL, MATIC, PoS) tracing: aggregate an
address's OUTGOING flow by counterparty (Σ amount, count, first/last seen), largest
first. Answers "where did the bulk of the funds go" in one shot. Narrow with currency
(recommended), after_time (= when funds reached this hop), min_amount. Pass the top
counterparties to labels_for_addresses to spot a CEX / mixer / bridge (= the
destination, stop there). One row per (counterparty, TOKEN); identify a token by
Contract, not Currency. On a very high-traffic address (an exchange or bridge hub)
this aggregates a lot of history and can take tens of seconds — narrow it with
contract or currency to one token, and with after_time to one period, which is far
faster than one wide call.
NOT edges for a diagram → use matic_flow_edges.
NOT an automatic walk along the largest edge → use matic_trace_dominant_path.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
POL moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Returns up to top_n rows (default 10, at most 10000), largest Total_Amount first; no rows = nothing matched.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Each row: Counterparty, Currency, Symbol_NonAscii, Contract, Total_Amount, Transfers, First_Seen, Last_Seen.
Matic transactions
Paginated TRANSACTION HISTORY of a Polygon (matic, POL, MATIC, PoS) address — every transaction it
sent or received directly (its own From or To; a token it received inside
someone else's transaction is in matic_transfers_in), newest
first. Page back with the cursor: pass the LAST Tx of the previous page as
`before` to get strictly older transactions (an unknown `before` hash
yields an empty page); `until` bounds the other side (only transactions newer than that tx). NOT a token-transfer list — for token movements use
matic_transfers_in / matic_transfers_out; to inspect one transaction's transfers
use matic_tx_transfers.
Value and Fee are in POL.
Each row also carries the exact fee: Fee_Wei is the fee in the smallest unit as a decimal
string (Fee is the same amount in POL, rounded to 8 decimals); Fee_Usd is its value at the
POL price at the time of the transaction. Fee_Price_Status says how far to trust that
price: ok; no_price (Fee_Usd is empty - never read it as zero); suspect (the price is more than twice, or less than half, the price a day earlier AND a day
later - a likely data glitch, so Fee_Usd is left empty). A
failed transaction (Success = 0) still paid its fee: treat it as a fee-only row.
The fee was paid by the sender (From): count it for this address only on rows where From is the address.
Fee_Status is ok on this chain.
Returns up to limit transactions per page (default 25, at most 10000), newest first, failed transactions
(Success = 0) included unless only_successful=1; a page shorter than limit is the last one.
An unknown `until` hash is not applied (no lower bound); `before` and `until` together bound one range.
With after_time / before_time only that period is read, so the cost follows the period, not the
address's whole history; pass the same pair with every page.
Each row: Tx, Time, Block, TxIndex, From, To, Value, Success, Fee, Fee_Status, Fee_Wei, Fee_Usd, Fee_Price_Status.
Matic transfers in
INCOMING Polygon (matic, POL, MATIC, PoS) transfers to an address — where this wallet
received funds from.
NOT the opposite direction → use matic_transfers_out.
NOT totals per sender → use matic_address_flow_summary.
Returns up to limit transfers (default 20, at most 10000), newest first by default; page back with the
last row's Cursor.
Use to trace the
source of funds backwards. For an address with many transfers set min_amount or
sort='amount', else large sources hide behind recent dust. Query WITHOUT a currency
filter to see where the bulk of funds originated. To identify counterparties,
pass the returned addresses to labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. POL and the major tokens are priced to 5 minutes, every other token has ONE
price per day, so the value of a small token is approximate. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
Each row: Time, Sender, Currency, Symbol_NonAscii, Contract, Amount, Internal, Tx, Cursor, Amount_Raw, Decimals, Block, Tx_Index, Price_Status, Price_Usd, Value_Usd.
Matic transfers out
OUTGOING Polygon (matic, POL, MATIC, PoS) transfers from an address — where this
wallet sent funds. Narrow with after_time (flows after funds arrived), currency
(follow one asset), min_amount (drop dust). For an aggregated "where did the bulk go"
view use matic_trace_next_hop; for incoming use matic_transfers_in. For an address
with many transfers set min_amount or sort='amount', else large counterparties hide
behind recent dust. Query WITHOUT a currency filter to surface the token → USDT
off-ramp. Page back through history with cursor: pass the Cursor value of the LAST row
of a page to get the next one — unlike before_time it never skips rows that share a
timestamp. To identify counterparties, pass the returned addresses to
labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. POL and the major tokens are priced to 5 minutes, every other token has ONE
price per day, so the value of a small token is approximate. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
Matic transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Polygon transfers database. The
Bitquery MCP specialized matic_* tools are the PRIORITY; use this ONLY when none of them
can answer (e.g. an uncovered table). No query optimizer here — naive SQL full-scans
huge tables and JOINs time out.
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
FAST-QUERY RULES: filter on the indexed key tables — `matic_api.transfers_sender` (by
sender / outgoing), `matic_api.transfers_receiver` (by receiver / incoming),
`matic_api.transfers_tx` (by tx hash); NEVER JOIN big tables — use `WHERE col IN (SELECT …)`
(use `GLOBAL IN` when the subquery is referenced inside another subquery, otherwise its
result is not available where it is used). A subquery that itself reads a transfers table (`IN (SELECT Transfer_Sender FROM …transfers_… WHERE …)`) is re-run for every shard and rescans that table — run it as its OWN query first, then pass the result back as a literal list (`IN (unhex('a'), unhex('b'))`). To filter transfers by a specific token, read `transfers_currency` (keyed by the token contract + `Block_Time`); `transfers_sender` / `transfers_receiver` are keyed by address, so filtering those by a token contract scans the table.
Addresses are RAW BYTES `FixedString(20)` in `Transfer_Sender` / `Transfer_Receiver`
(there are NO plain string address columns) →
`Transfer_Sender = unhex(substring(lower('0x…'),3))`, output `concat('0x',lower(hex(col)))`.
Tx hash is `Transaction_Hash` `FixedString(32)` (same unhex/hex pattern).
A SET of hashes or addresses must have the column's exact type:
`Transaction_Hash IN (SELECT toFixedString(unhex(h), 32) FROM …)`, `toFixedString(…, 20)` for
an address. A plain `unhex(…)` set, or a JOIN on a String key, silently misses every value
ending in `00`; `=` and a literal list `IN (unhex('a'), unhex('b'))` are safe.
Currency symbol + decimals are INLINE columns (no dictionaries):
amount = `toFloat64(Transfer_Amount) / pow(10, Transfer_Currency_Decimals)`;
symbol = `Transfer_Currency_Symbol`; token contract = `Transfer_Currency_SmartContract` — itself RAW BYTES in a `String` column (not text), so filter it `= unhex('<40 hex, no 0x>')` and read it back `concat('0x',lower(hex(…)))`; a `'0x…'` text literal matches nothing.
Always add `AND Transfer_Success = 1`. `Transfer_Type`: 'token' = a token transfer,
'transaction' = a plain native-coin send, 'call' = native coin moved by a call. A
transaction's OWN value transfer is stored either as 'transaction' or as a 'call' with
`Call_Index = 0`; only a 'call' with `Call_Index != 0` is an INTERNAL transfer (made by
contract code deeper inside the transaction). For top-level transfers filter
`(Transfer_Type IN ('token','transaction') OR (Transfer_Type = 'call' AND Call_Index = 0))` -
`Transfer_Type IN ('token','transaction')` alone drops a large share of ordinary sends. Time =
`Block_Time`. Date-time values come back as ISO-8601 UTC, e.g. 2026-09-21T15:04:18Z (toString() of a date-time gives 2026-09-21 15:04:18). Other `matic_api.*` tables (calls, transactions, balances) are reachable with
an explicit db prefix. Counterparty labels are NOT in this database — use
labels_for_addresses. Read-only; always add a LIMIT of at most 10,000 — a larger answer fails with an error, so aggregate (GROUP BY, count) instead. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x).
PREDICTION MARKETS (Polymarket) also live here, in `matic_api.prediction_trades_tx`
(order fills), `prediction_managements_tx` (market created / resolved) and
`prediction_settlements_tx` (redemption / split / merge) — but the polymarket_* tools
cover them and are the PRIORITY. If you do query them raw: question id, condition id,
buyer, seller, holder and marketplace are RAW BYTES in String columns (same unhex/hex
pattern as above), outcome and asset ids are UInt256 (wrap in `toString`), price =
`CollateralAmount / Amount`, USD = `CollateralAmount / 1e6`; trades and managements are
keyed by question id, settlements by outcome-token asset id; and a fill whose buyer or
seller equals its own marketplace contract is the taker's aggregate leg — counting it
double counts volume.
Exact table and column names first: chain_list_tables, chain_describe_table and chain_search_columns with database=matic_api.
Matic tx events
ALL EVENT LOGS in one or more Polygon (matic, POL, MATIC, PoS) transactions,
including decoded arguments plus raw topics and data. Use after matic_find_events
identifies a transaction, or whenever a tx receipt's complete event payload is needed.
NOT the value moved in a transaction → use matic_tx_transfers.
Accepts up to 50 transaction hashes separated by "|". `Parsed=0` means no ABI matched:
Event, Signature and Arguments can then be empty, but Topic0, Topics and Data remain
usable. Arguments are named objects with Name, Type, string Value and Indexed; integer
values are decimal strings to avoid JSON-number precision loss; use raw
Topics/Data for values wider than the decoded numeric fields. Argument names come from one known ABI for the Signature and can be another contract's wording - Topics and Data are the log's own. By default, reverted
call-frame logs, removed logs and failed transactions are excluded; set
only_successful=0 to inspect them with the returned status fields.
Matic tx transfers
All token & native transfers inside one or several Polygon (matic, POL, MATIC, PoS) transactions
(sender → receiver, currency, amount, plus the Tx hash and the called Method).
NOT the event logs of a transaction → use matic_tx_events.
Entry point for tracing when you have a tx hash. Accepts a BATCH: pass several
hashes separated by "|" to inspect them in one call (rows are grouped per Tx).
For an address's flow over time use matic_transfers_out / matic_transfers_in.
To identify the addresses, pass them to labels_for_addresses.
FRESHNESS: transfers reach this data some minutes after the trade tools see a swap, so
a hash that trader_trades or tx_trades already shows can return NO rows here yet -
that is lag, not a missing transaction: retry in a few minutes.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
New tokens
NEWLY LAUNCHED tokens — every token whose FIRST trade landed inside the last
`window_hours` (or inside a past period: after_time / before_time), ranked by
volume, recency, gain or FDV. This is the launch scanner: "what just launched",
"new tokens today", "fresh mints", "pump.fun launches in the last 6 hours",
"new pairs on Base", "tokens launched on Sept 3 that reached $1M FDV". NOT a
leaderboard of tokens that were already trading — use trending_tokens for that.
NOT the wallets that bought a launch — use early_buyers.
Covers rare / long-tail / newly-launched tokens.
"New" means the token has NO USD-priced trade older than `lookback_days`
(default 7, max 30) — that window is the depth of the novelty check, so a
token that went quiet for longer than it and then resumed trading is
reported as new; raise lookback_days when that matters. The two windows are
reconciled automatically — lookback_days is widened to cover window_hours,
and window_hours is capped one day short of it so there is always prior
history to prove novelty against — and the values actually used come back
as the Lookback_Days / Window_Hours / Window_Start / Window_End columns.
Priced history reaches back about a month, so `window_hours` beyond ~700
leaves nothing to compare with. Arc trades begin on 2026-09-16, so until the
lookback reaches past that day every Arc token counts as new: an Arc
First_Seen on 2026-09-16 is the start of Arc coverage, not a launch.
PAST PERIOD — pass after_time and/or before_time (UTC, "YYYY-MM-DD" or
"YYYY-MM-DD HH:MM"): the launch window becomes [after_time, before_time)
(only after_time = up to now; only before_time = the window_hours ending
there), edges round outward to whole hours, and lookback_days counts back
from before_time. Volume, prices and FDV are then measured up to
before_time, i.e. as they stood at the end of the period; Age_Hours stays
relative to now. A period too close to the 30-day history limit to prove
novelty (or with after_time ≥ before_time) is an error, not an empty list.
EXACT LAUNCH TIME — exact_age=1 (default 0) fills First_Trade_Time, the
UTC second of each token's first USD-priced trade, and makes Age_Hours
exact. Use it only when the user wants the launch time or the age to the
minute ("launched 12 minutes ago", "what time did it start trading"): it
makes the call noticeably more expensive, and the extra cost grows with
limit, so it is accepted only with limit ≤ 50 and a launch window of at
most 24 hours (window_hours ≤ 24, or an after_time / before_time period
of at most one day) — larger requests are refused; keep limit small
(10-20) when a few launch times are enough. The ranking itself stays
hourly: with sort=newest, launches of the same hour are ordered by volume,
not by First_Trade_Time, and an hour can hold more launches than limit. A row
whose First_Trade_Time is null keeps the hour-based Age_Hours. Like
First_Seen it follows the price bars, which can leave out a tiny
pool-seeding swap made before the first priced trade; token_launch_stats
gives one token's very first trade.
Returns per token: First_Seen — the START of the UTC hour of its first
USD-priced trade (hour resolution) — First_Trade_Time — the exact UTC
second of that first trade, filled only with exact_age=1 (null otherwise) —
and Age_Hours, counted from First_Seen and so an UPPER bound unless
exact_age=1: without it the first trade was between Age_Hours − 1 and
Age_Hours hours ago (say "about N hours", never an exact minute); with it
Age_Hours is exact, counted from First_Trade_Time; Volume_Usd_Window (USD volume
since the token first traded), First_Price_Usd (the open of its first
hourly bar, ≈ the first trade — token_launch_stats has the exact one; for
a bonding-curve launch about the curve's starting price), Last_Price_Usd,
Peak_Price_Usd (the highest hourly AVERAGE price since the token first
traded — each hour weighted by its volume, counting only hours that carried
at least a thousandth of the token's own volume. It is NOT the highest price
ever printed inside an hour and not the highest close: a single tiny or
unusual swap prints an extreme price, high or low, that nobody could trade
at, and a near-empty hour averages one, so the peak is the best price real
volume actually changed hands at. It can therefore sit BELOW
First_Price_Usd for a token that only fell, and BELOW Last_Price_Usd — the
latest price is one swap, so a token climbing right now, or one whose newest
print is an outlier, shows a last price above its peak; the drawdown then
reads 0),
Valuation_Price_Usd (the average price of the NEWEST hour that carried at
least a thousandth of the token's own volume — the same volume gate as the
peak, so it is the last price at which real volume changed hands. It never
exceeds Peak_Price_Usd, and it equals it whenever the last hour of real
volume was also the best one, which is the normal shape of a launch that has
already died),
Valuation_Change_Pct (Valuation_Price_Usd against First_Price_Usd — the move
real volume made, not the move to the latest print; a token can therefore
show a gain while Last_Price_Usd sits below First_Price_Usd. It replaces the
old Price_Change_Pct of this tool and is named differently on purpose: it is
NOT Last_Price_Usd against First_Price_Usd, and it is not the same
measurement as the Price_Change_Pct of trending_tokens, which compares the
window's first and last price directly),
Drawdown_From_Peak_Pct (Last_Price_Usd against Peak_Price_Usd, never above 0
and 0 for a token at or above its peak hour; unlike an hour-against-hour
comparison it shows a collapse inside the peak hour and a token that stopped
trading after it — this is the column that says where the LATEST price is,
and the one to read next to a healthy-looking Valuation_Change_Pct), market cap, FDV and
PEAK FDV — Market_Cap_Usd and Fdv_Usd are Valuation_Price_Usd × the
circulating and total supply, Peak_Fdv_Usd is Peak_Price_Usd × the total
supply, so each valuation and its price always agree, and none of them can be
set by a single swap. Last_Price_Usd × the supply is therefore NOT Fdv_Usd —
that product is one swap's valuation and was reporting hundreds of millions
out of hours that traded a few dollars. Fdv_Usd is therefore what the last
hour of real volume valued the token at, and never exceeds Peak_Fdv_Usd
unless the supply has grown: read Drawdown_From_Peak_Pct beside it for where
the latest print actually is. A peak FDV far ABOVE Fdv_Usd means the token
fell and kept trading; the two EQUAL with a deep drawdown means it collapsed
inside its best hour or stopped trading there, and the two equal with a
drawdown near 0 is a launch still at its high. Market cap, FDV and peak FDV
are this token's own valuation: `null` for a token that stands for a
multi-chain or bridged asset (a new WETH / USDC deployment, a bridged
copy), whose supply in the data is the whole asset's. Asset_Currency_Id,
Asset_Market_Cap_Usd, Asset_Fdv_Usd and Asset_Peak_Fdv_Usd always hold
the asset's figures (equal to the token's own when the token is its own
asset; when the asset exists on one chain only, effectively this token's);
a bridged copy also gets a Valuation_Warning. Both are WITHHELD (`null`,
with a non-empty `Valuation_Warning`) when the supply or valuation behind
them is implausible — report them as unavailable; an implausible peak
price or peak supply alone withholds only the peak FDV.
`Symbol_Lookalike` = 1: the token carries the symbol of an established asset
— one traded on this chain, or a major asset of ANY chain (look-alike letters
such as a Cyrillic `О` count as the same) — but is a DIFFERENT token from the
one that symbol denotes; never present it as that asset. A freshly launched
token with a major ticker is the normal case here, not the exception.
`Thin_Market` = 1: the token has traded less than 1% of its own FDV since it
first traded, so that valuation is arithmetically correct but nothing has
changed hands to support it — treat the FDV as unreliable and lead with the
volume instead. A typical new token trades several times its FDV in a day, so
this fires on about half a percent of launches, most of them tokens carrying a
famous ticker on a round billion-token supply.
`Symbol_NonAscii`
= 1: the symbol is not plain ASCII (normal for CJK / emoji names).
Look-alikes, thin markets, and tokens with an implausible supply or valuation
that are not a recognised asset, are listed after all other rows — they are
never dropped, and a filter that asks for them still returns them.
Filter one launchpad family with `address_pattern`, a SQL LIKE pattern on
the token address (`%pump` = pump.fun mints, `%bonk`; `%` matches any run,
`_` one character). Pass blockchain='' to scan every chain at once.
Screener filters (optional, combine freely): min_fdv_usd / max_fdv_usd
(Fdv_Usd), min_peak_fdv_usd (highest FDV reached), min_price_change_pct /
max_price_change_pct (Valuation_Change_Pct); the FDV filters and
sort=fdv read the token's own figure, or the Asset_* one where that is
null; a token without the needed figure is dropped while that filter is
set. sort=fdv and sort=gainers rank on those same columns, so they too are
measured at Valuation_Price_Usd and a single swap can no longer decide the
first page; look-alikes and thin markets still come last whatever the sort. Trade and trader counts
are not available here — token_launch_stats has them for one token or a list of up to 50
(`addresses`).
Follow up on an address from this list with early_buyers (who sniped it),
top_traders_by_token (who traded it), token_ohlcv (its candles) or
token_dex_venues (where it trades). Cost grows linearly with
lookback_days — leave it at 7 unless a deeper novelty check is needed.
Names longer than 128 characters and symbols longer than 32 are cut and end
in `…`; Name_Truncated / Symbol_Truncated = 1 marks a cut value.
Optimism address flow summary
ADDRESS FLOW SUMMARY / top counterparties: who an Optimism (op, OP, OP Mainnet, L2) address sends funds TO and receives funds FROM, in one call — profile
(sent/received transfer counts, distinct receivers/senders) + TOP receivers AND TOP
senders. Collapses address_profile + trace_next_hop(out) + an incoming convergence
into a single call — call this FIRST when triaging a hop. Returns a computed Role:
receive_only (no outgoing transfer in the period) / send_only (no incoming one) /
no_transfers (neither) / consolidator (senders ≫ receivers) / distributor (receivers ≫
senders) / hub (thousands of both — don't trace deeper) / relay. The profile counts
and Role ALWAYS cover all tokens: currency and contract narrow only the top arrays
(optimism_address_profile applies them to every count). Pass the returned counterparties to
labels_for_addresses to identify them. For raw rows use optimism_transfers_in/out; for
one direction's full ranking use optimism_trace_next_hop. READING THE TOP ARRAYS: one
entry per (counterparty, TOKEN) — the same address repeats once per token it moved.
Symbols are not unique; identify a token by `contract`. On a very high-traffic address
(an exchange or bridge hub) this aggregates a lot of history and can take tens of
seconds — narrow it with contract or currency to one token to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
after_time / before_time bound BOTH the profile counts and the top arrays to one period
(without them both cover the whole history).
Counts and arrays are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with optimism_tx_transfers, then trace that address
(optimism_transactions lists where this account's transactions go).
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Optimism address profile
Optimism (op, OP, OP Mainnet, L2) address STATISTICS — successful transfer counts out/in and distinct
counterparties (receivers/senders), across all tokens. Fast triage of an address
during tracing. For one-call triage that ALSO returns the top counterparties,
prefer optimism_address_flow_summary.
Role from the ratio (cheap triage before flow_edges): senders ≫ receivers =
consolidator / sweep; receivers ≫ senders = distributor; ~1↔1 = relay (layering);
thousands of both = mega-hub (exchange / treasury — don't trace deeper). No outgoing transfers at all =
receive-only and no incoming = send-only, not a consolidator / distributor.
First_Sent / Last_Sent / First_Received / Last_Received = first and last transfer in each
direction. Bound a period with after_time / before_time; restrict to one token with
contract (or currency) to also get Sent_Amount / Received_Amount in that token's units -
without a token filter the amounts are NULL, because different tokens cannot be added.
currency / contract (like after_time / before_time) narrow EVERY count, time and
amount here - unlike optimism_address_flow_summary, whose profile counts always cover
all tokens.
The counts are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with optimism_tx_transfers, then trace that address
(optimism_transactions lists where this account's transactions go).
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Optimism contract creator
WHO CREATED an Optimism (op, OP, OP Mainnet, L2) contract, and what a creator deployed. Answers "who created / deployed
this token", "who is behind this contract", "what else did this deployer launch", and
"were these tokens made by the same person" (serial deployers, rug and clone farms).
NOT who funded a wallet → use optimism_first_funder.
On this chain a token IS a contract, so pass the TOKEN'S CONTRACT ADDRESS in contracts.
TWO WAYS TO CALL IT, pick one - setting both is refused, because the two answer different questions and their shared-creator counters would be mixed:
contracts="0x..|0x.." - up to 50 contracts, one row each: Creator (the address whose
code ran CREATE), Signer, Created_At, Block_Number, Tx, Deploy_Value, Gas_Used and
Deploy_Success. Rows whose creator or signer is SHARED come first: Creator_Shared /
Signer_Shared count how many of the requested contracts have that same creator / signer, which
is what exposes one person behind many tokens. A longer list is not an error: the first
50 distinct addresses are used and the rest ignored - compare Contracts_Requested
with Contracts_Used and split a longer list into several calls.
creator="0x.." - the contracts THAT address deployed, newest first, inside the window (days,
after_time, before_time), at most `limit` rows. Use it on the Creator or Signer a first call
returned, to see the rest of that deployer's output. Creator_Shared is empty in this form -
every row has the same creator by construction, so the counter would only repeat the row count.
Creator_Is_Contract = 1 means the contract was deployed BY OTHER CONTRACT CODE - a
token factory, a launchpad or a DEX pair factory - and then Creator is that factory, which is the
SAME address for every token it ever made, while Signer is the person who asked for it. On a
factory-made token read Signer, not Creator. Deploy_Depth is how deep inside the transaction the
deployment happened (0 = the transaction itself) and Call_Index is the deployment's position in
that transaction - one transaction can deploy several contracts, and Call_Index is what tells
those rows apart when everything else about them looks the same.
Status = NOT_FOUND means no deployment is recorded for that address: it is a plain wallet, not a
contract, or the deployment is older than the recorded history of this chain. Creations is
normally 1; a higher number means the address was created more than once (destroyed and
redeployed), and the row describes the EARLIEST creation.
THE CREATOR'S STORY IS NOT IN THIS TOOL - build it from the returned addresses:
labels_for_addresses (is the creator a known entity, exchange or scammer), optimism_first_funder
(who funded the creator, and whether several creators share one sponsor), optimism_address_profile
and optimism_transfers_in / optimism_transfers_out (what that wallet does), optimism_flows_between
(what moved between the creator and the token). The token's own name, symbol, price and market
cap come from find_token_by_address; its first buyers from early_buyers.
Amounts are the native coin, never USD. COST: a contract lookup has to walk every call that address
ever received, so a handful of ordinary tokens answer in a second or two while one exchange-scale
contract can take ~20 s on its own. If you already know roughly when the contract appeared, bound it
with after_time / before_time - that alone took one busy token from 21 s to 2 s. A row-limit error
("Limit for rows ... exceeded") means the batch is too busy: bound it that way, or split the list.
Optimism find calls
FIND SMART-CONTRACT CALLS of a specific (rare) method on ONE Optimism (op, OP, OP Mainnet, L2)
contract in a single filtered query — match by method name (e.g.
"transfer"), full signature ("transfer(address,uint256)"), or raw 4-byte
selector (e.g. "a9059cbb"), optionally narrowed to one caller.
Answers "who called method X on contract Y, when, did it succeed".
NOT what one address signed or received → use optimism_transactions.
Returns up to limit calls (default 20, at most 10000), newest first; page back with the last row's
Cursor - each page covers the days window ending there.
Searches the last 7 days by default — set after_time to
reach further back. For emitted event logs use optimism_find_events; for token movements
use optimism_transfers_in / optimism_transfers_out.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Calls inside one transaction come back in no particular order - sort them by
CallPath if you need execution order.
A call to a proxy contract is recorded twice here: once as the call itself and once as
the DELEGATECALL the proxy runs for it. Only the first is returned by default;
Delegated = 1 marks the repeats, which include_delegatecall=1 adds back.
Each row carries the call's decoded input Arguments (Name, Type, Value; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). A method the decoder does not recognise has
no Arguments.
Value is the ETH attached to the call.
Each row: Tx, Time, Block, Caller, Method, Signature, Selector, CallPath, Value, Success, Reverted, Error, GasUsed, Delegated, Cursor, Arguments, ArgumentCount, ArgumentsTruncated.
Optimism find events
FIND EVENT LOGS for ONE Optimism (op, OP, OP Mainnet, L2) contract — match by
event name (e.g. "Transfer") or full signature
("Transfer(address,address,uint256)"), optionally narrowed to one emitting
contract (emitter). `contract` matches logs that contract EMITTED ITSELF (a
proxy token is found by its public address), plus — when it is a proxy's
implementation — the logs its code emitted for that proxy. Logs emitted by
OTHER contracts it calls are NOT included: a DEX router's swaps are logged
by the pair/pool it calls, not by the router, so contract=<router> with
event=Swap returns NOTHING even when the router executed thousands of
swaps. An empty result for a router, aggregator or smart wallet does NOT
mean there was no activity. To get those logs, pass the pair/pool (or
token) address as `contract`; if it is unknown, list the router's
transactions with optimism_find_calls (contract=<router>) and pass their Tx
hashes (up to 50, "|"-separated) to optimism_tx_events with event=Swap —
its CallPath shows which call produced each log. Returns
tx hash, time, emitter, event, log index and tx sender, newest first.
Searches the last 7 days by default — set after_time to reach further back, or
page back with cursor: pass the Cursor value of the LAST row of a page to get
the next one, and that page covers the same number of days ending at that row.
Unlike before_time, a cursor never skips rows that share a timestamp — a busy
contract can emit hundreds of logs in one second. Can be slow on very busy
contracts — narrow with event + after_time. For the calls themselves use
optimism_find_calls; for token movements use optimism_transfers_in /
optimism_transfers_out.
Each row carries the log's decoded Arguments (Name, Type, Value, Indexed; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). Parsed=0 rows have no Arguments. Argument NAMES
come from one known ABI for the Signature: a contract that emits the same Signature with
other parameter names gets those names too, so a Name can be wrong for this contract -
identify an argument by its position and Type, and check a doubtful one against the raw
Topics/Data. For raw
Topics/Data, or the rest of a cut list, pass the Tx to optimism_tx_events. Unrecognized events can be found here by `topic0`.
ONE ROW = ONE EVENT LOG. A contract can be called many times inside a single
transaction and each of those internal calls can emit its own logs, so the same
event name legitimately repeats within one transaction - that is NOT duplication.
Rows are told apart by CallIndex (which internal call emitted the log) together
with LogInCall (the log's position inside that call); that pair is unique within
a transaction. To COUNT events, count the returned rows - never de-duplicate on
Tx/Event/Emitter, which would merge genuinely different logs into one.
Rows inside one transaction come back in no particular order - sort them by
CallIndex then LogInCall if you need emission order.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Optimism first funder
FIRST FUNDER / COMMON SPONSOR of up to 50 Optimism (op, OP, OP Mainnet, L2) addresses: for each address the
EARLIEST incoming transfer INSIDE THE WINDOW (by default the last 180 days - not necessarily
the first ever, see WINDOW) - who sent it (Funder), who signed that transaction (Tx_From), when
(First_Time), how much of which token, and the Tx. Answers "who funded these wallets" and "do
these wallets share a sponsor" (sybil, sniper and airdrop-farming clusters).
NOT who deployed a contract → use optimism_contract_creator.
Pass the addresses separated by "|". A longer list is not an error: the first 50 distinct addresses are
used and the rest are ignored - every row reports Addresses_Requested / Addresses_Used, so compare
them and split a longer list into several calls. One row per used address, and rows whose funder is shared come FIRST:
Funder_Shared = how many of the requested addresses have that same first funder,
Tx_From_Shared = the same count for the transaction's signer - it catches wallets funded
through a public batch-sending contract, where Funder is the contract and the signer is the real
sponsor. Funder_In_Set = 1 when the funder is itself one of the requested addresses (a funding
chain). Via_Internal_Call = 1 marks funding sent by contract code deeper inside a transaction; the transfer a transaction makes itself is top-level, so it reads 0. Incoming_In_Window = how many qualifying incoming transfers the address had in
the window.
WHAT COUNTS AS FUNDING: by default native ETH only (asset_type="native"), including ETH sent by contract code (include_internal=1); set
asset_type="token" or "all", or pin one token with contract, to look at token funding instead.
Zero-amount transfers, mints and self-transfers never count; raise min_amount to skip dust.
WINDOW: the first funding INSIDE the last `days` days (default 180, at most 730)
ending at before_time or now, or starting at after_time within the same limit.
Status = FIRST_IN_WINDOW: the earliest qualifying funding between Window_From and Window_To. It is
the address's first-ever funding ONLY if the address had no activity before Window_From, and this
tool does not check that. To check one address, compare First_Time with the First_Received of
optimism_address_profile for it (an earlier First_Received means it already received something
before the window). To look further back, call again with before_time set to the row's
Window_From. Status = NO_INCOMING_IN_WINDOW means nothing qualifying
arrived in the window: call again for those addresses with before_time set to their Window_From
to look further back.
COST grows with the number of addresses times the length of the window: for dozens of
addresses keep days at 180 and page back with before_time rather than widening
days. A row-limit error ("Limit for rows ... exceeded") means an address in the list is too busy (an
exchange, bridge or popular contract) or the window is too long - drop that address or shorten
days. Amounts are TOKEN UNITS, never USD. To identify funders, pass them to
labels_for_addresses; to see everything that moved between the funders and the wallets, use
optimism_flows_between.
Optimism flow edges
MONEYFLOW GRAPH EDGES out of an Optimism (op, OP, OP Mainnet, L2) address: one row per
counterparty — Source → Target, total Amount, Currency.
NOT choosing which counterparty to follow next → use optimism_trace_next_hop.
Building block for a MoneyFlow
DIAGRAM. HOW TO DRAW: call this per address/hop, collect the edges, and emit a Mermaid
`graph LR` (one node per address; each edge labeled with Amount+Currency). Pass the
Target addresses to labels_for_addresses to flag CEX / mixer / bridge nodes and STOP
expanding those branches. Pass a currency to avoid spam-token noise; call WITHOUT a
currency filter to spot a token → USDT off-ramp at the edge. For raw per-transfer rows
use optimism_transfers_out. Each edge carries the token Contract — pin one exact token
with the contract param. On a very high-traffic address (an exchange or bridge hub)
this aggregates a lot of history and can take tens of seconds — narrow it with
contract or currency to one token to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
Bound one period with after_time / before_time. First_Seen / Last_Seen give each
edge's first and last transfer.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Optimism flows between
FLOWS BETWEEN TWO ADDRESS SETS on Optimism (op, OP, OP Mainnet, L2): every successful transfer (tokens and native
ETH) from any address of set A to any address of set B, and back, in ONE call - "did these
wallets ever pay those wallets", "how much moved between my suspects and the exchange
wallets", "which of these deposit addresses sent to that hot wallet". Pass up to
50 addresses per set separated by "|" (0xabc…|0xdef…). A longer list is not an error:
the first 50 distinct addresses of each set are used and the rest are ignored -
every row reports A_Addresses_Requested / A_Addresses_Used and B_Addresses_Requested /
B_Addresses_Used, so compare them and split a longer set into several calls. Leave addresses_b EMPTY to get every
counterparty of the A set, both directions, grouped per A address - the multi-address form of
optimism_flow_edges.
mode="summary" (default) returns one row per (Direction, Sender, Receiver, token) with
Transfers, total Amount, First_Time, Last_Time and the latest Tx, ordered by `sort`.
mode="rows" returns the individual transfers newest first; page with cursor: pass the Cursor
value of the LAST row, with all other arguments unchanged, to get the next page (a summary row
carries no Cursor). A rows-mode row is a LEDGER LINE: besides the amount it carries Amount_Raw (the
exact integer amount in the token's smallest unit) with Decimals, Block and Tx_Index, and Price_Usd
(the token's USD price at the time of the transfer), Value_Usd = Amount x Price_Usd and
Price_Status - "ok"; "no_price" = no price is known for this token at that time, so Price_Usd and
Value_Usd are empty (never read that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check it with
price_at. ETH and the major tokens are priced to 5 minutes, every other token has ONE price per day, so the value of a small token is approximate. On a summary row those seven columns are empty: a total over a
period has no single price. Self = 1 (both modes) marks a movement whose counterparty is another
address of set A - a move inside the set, not income and not spending.
Direction A_TO_B = sent by an A address to a B address, B_TO_A = sent by a B
address to an A address; an address listed in both sets appears in both directions. With
addresses_b empty the same holds for a transfer between two A addresses: it is listed as A_TO_B
for its sender AND as B_TO_A for its receiver, so never add rows of both directions together.
WINDOW: the last `days` days (default 30, at most 366) ending at before_time, or now;
after_time sets the start instead, within the same 366-day limit. Window_From / Window_To
on every row show the range searched; for an older period set before_time. An empty result means
no transfer between the sets in that window.
COST: the search is keyed on set A, so put the SMALLER and less busy set in addresses_a -
individual wallets, not exchange hot wallets, bridges or token contracts. If the call fails
with a row-limit error ("Limit for rows ... exceeded"), swap the two sets, shorten days, or
split set A. Cost also grows with the number of addresses in set A times the window.
Each row carries the token Contract (empty for native ETH); a symbol alone can match
look-alike clones, so pin one token with contract, or restrict to native or tokens with
asset_type. Amount is in TOKEN UNITS: totals of different tokens must not be compared or added
together, there is no usd filter (min_amount is in token units), and sort="amount" is only
meaningful with one token pinned. To identify the addresses, pass them to
labels_for_addresses.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Optimism native balances
NATIVE COIN BALANCE of up to 50 Optimism (op, OP, OP Mainnet, L2) addresses you ALREADY HAVE: each address's
current ETH balance (the coin that pays gas) - for filtering a known set of wallets down to the funded
ones, e.g. an airdrop cohort.
To discover holders you do not have yet, use optimism_token_holders. NOT one address's transfer history → use optimism_address_flow_summary.
Pass the addresses separated by "|" (0x..) - up to 50; addresses after the
50th distinct one are ignored (compare Addresses_Requested with Addresses_Used), so split
a longer list into several calls.
WINDOW: only balances UPDATED within the last `since_days` days (default 7) are read, so an address
that has not moved its native coin in that window returns NO row. Use the same window you searched for
activity - e.g. the window of optimism_token_senders - because an active wallet's balance is always
fresh there; a wider window costs more for no gain on active wallets.
Native_Balance is in ETH (18 decimals); Native_Balance_Raw is the exact integer amount (wei);
Balance_As_Of is when that balance was last updated. To identify the addresses, pass them to
labels_for_addresses.
Each row: Address, Native_Balance, Native_Balance_Raw, Balance_As_Of, Addresses_Requested, Addresses_Used.
Optimism token holders
TOP HOLDERS of an Optimism (op, OP, OP Mainnet, L2) token by CURRENT on-chain balance — holder address +
balance, largest first. Use for token analysis: whales, holder concentration,
distribution. Pass the token CONTRACT address (not a wallet). Label the returned
holders with labels_for_addresses to spot CEX / team / LP / bridge wallets. This is
real on-chain balance, NOT DEX-trade PnL — for trader profitability use
profitable_traders_by_token / trader_positions. Balances exclude NFTs (fungible only).
SCOPE. days=0 (default) ranks EVERY holder over the token's whole history, and
Holders_In_Window is then the token's holder count (positive balances). A very
widely held token - a major stablecoin, for example - has too much history for that:
the call answers at once with one Status=TOO_LARGE row instead of timing out. Then
call with days=30 (days=7 if that is still TOO_LARGE): it ranks the holders whose
balance CHANGED in that window, and their balances are still exact current balances.
A holder that did not move the token in the window is absent, so on such a token the
page is the top of the ACTIVE holders, not a guaranteed global top. To reach quieter
holders pass Next_Cursor as cursor: each page covers the next older window of `days`
and lists only holders whose LAST balance change falls inside it, so no holder
appears on two pages and the top N of all pages merged is the global top N. Each
page also checks all later activity up to today, so paging far back on a very busy
token ends in TOO_LARGE - stop there and say the list covers only the windows read.
Next_Cursor is empty when the token has nothing older. Window_From / Window_To are
the dates a page covers (Window_From empty = whole history). A row with an empty
Holder is a status row: read Status (TOO_LARGE / NO_HOLDERS / BAD_CURSOR).
Balance is in the token's OWN units, never USD - no USD value is available in
this data, so there is no usd filter and balances of different tokens are not
comparable. `Decimals` gives the scale. Holders whose recorded balance is NEGATIVE
are dropped and counted in Negative_Balances_Excluded: the transfer history behind
them is inconsistent (typically a transfer recorded twice or missing), so that
balance cannot be trusted - and the same kind of error can inflate a positive
balance of that token. A balance far above the token's total supply is such an
artifact, not a whale: check it with token_supply or the holder's transfers before
reporting it.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
Optimism token senders
TOKEN SENDERS COHORT on Optimism (op, OP, OP Mainnet, L2): the addresses that SENT a given token at least `min_transfers`
times inside a time window, most recently active first - "wallets that actively use this token",
"build a cohort or airdrop list of recent senders of this token".
NOT one wallet's own outgoing transfers → use optimism_transfers_out.
This counts SENDERS of the token, one row per sender; it does not value or label them - pass the
returned addresses to labels_for_addresses, and to optimism_native_balances to keep only funded
wallets. By default only normal user wallets (EOAs) that sent the token in their OWN transaction count (eoa_only=1); set eoa_only=0 to include contract senders.
Pass the token's CONTRACT address in token (0x-hex (case-insensitive)); a symbol also matches clone tokens, so
pin the exact contract.
WINDOW: the last `days` days (default 1, at most 30) ending at before_time or now;
after_time sets the start instead. A sender must reach `min_transfers` sends WITHIN this window, so a
short recent window keeps only clearly-active wallets - the recency the cohort wants. There is no
full-history mode: to go further back, page with before_time.
PAGING: newest-active first, at most `limit` rows. If the result has `limit` rows there may be more -
set before_time to the oldest Last_Transfer_Time returned and call again, then combine and
de-duplicate the pages.
COST grows with the token's volume times the window: widen `days` step by step. A row-limit error
("Limit for rows ... exceeded") means the token is too busy for that window - shorten days.
Each row: Address, Transfers, First_Transfer_Time, Last_Transfer_Time.
Optimism trace dominant path
AUTO-WALK the dominant (largest-total-amount) OUTGOING edge of ONE token from an
Optimism (op, OP, OP Mainnet, L2) address, hop by hop, up to 5 hops — collapses ~5 manual
optimism_trace_next_hop calls into one. Every hop returns Hop*_To (the address that
received), Hop*_Token (the contract of the token that moved) and Hop*_Edge_Total, plus
Hops_Found (how many hops resolved) and Path_Status for the walk itself.
Hop*_Edge_Total is NOT the amount that travelled along the path: it is the ALL-TIME
total of EVERY transfer of that token between that hop's sender and receiver, so it
can be orders of magnitude larger than the sum you are tracing and the hop totals are
not comparable with each other. To break one edge down — its transfer count
(Transfers), first/last seen, and the full ranking of that address's edges — call
optimism_trace_next_hop on the hop's sender.
The walk NEVER goes back to an address it has already visited (the seed included), so
it cannot bounce back and forth between the same two wallets — each hop is the largest
edge to a NEW address.
READ Path_Status FIRST — NO_MATCH means the token filter matched nothing (wrong symbol,
or that symbol belongs to a different token — pass `contract`), PATH_END means the
trail really ran out, DEPTH_LIMIT means it may continue past hop 5. All-NULL hops with
NO_MATCH are a filter problem, not a dead end.
Pass the hop addresses to labels_for_addresses and read down to the FIRST labeled
address (CEX / mixer / bridge) — that's the destination.
Pin the token with `contract` whenever you know it — a SYMBOL is not unique, clone
tokens reuse popular symbols, and with a symbol alone the hops can drift between
look-alike tokens; compare the per-hop token contract to spot that.
LIMITS: follows only the single biggest edge per hop (misses splits / fan-outs), fixed
depth 5, and transfers to the burn address are not followed. For branching / adaptive
tracing call optimism_trace_next_hop hop by hop, identify each hop with
labels_for_addresses and choose the next address yourself (prompt_playbook with
playbook=money_flow returns the full step-by-step procedure); for one hop's full ranking use
optimism_trace_next_hop. Heavy multi-hop walk — can time out on a very busy address; retry,
or narrow it with `contract` / a less-busy token.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Optimism trace next hop
CONVERGENCE primitive for Optimism (op, OP, OP Mainnet, L2) tracing: aggregate an
address's OUTGOING flow by counterparty (Σ amount, count, first/last seen), largest
first. Answers "where did the bulk of the funds go" in one shot. Narrow with currency
(recommended), after_time (= when funds reached this hop), min_amount. Pass the top
counterparties to labels_for_addresses to spot a CEX / mixer / bridge (= the
destination, stop there). One row per (counterparty, TOKEN); identify a token by
Contract, not Currency. On a very high-traffic address (an exchange or bridge hub)
this aggregates a lot of history and can take tens of seconds — narrow it with
contract or currency to one token, and with after_time to one period, which is far
faster than one wide call.
NOT edges for a diagram → use optimism_flow_edges.
NOT an automatic walk along the largest edge → use optimism_trace_dominant_path.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Returns up to top_n rows (default 10, at most 10000), largest Total_Amount first; no rows = nothing matched.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Each row: Counterparty, Currency, Symbol_NonAscii, Contract, Total_Amount, Transfers, First_Seen, Last_Seen.
Optimism transactions
Paginated TRANSACTION HISTORY of an Optimism (op, OP, OP Mainnet, L2) address — every transaction it
sent or received directly (its own From or To; a token it received inside
someone else's transaction is in optimism_transfers_in), newest first. Page
back by passing the last Tx of the previous page as `before` (returns only
strictly older transactions; an unknown hash yields an empty page). `until`
bounds the other side (only transactions NEWER than that tx). NOT a
token-transfer list — for token/native transfer rows use
optimism_transfers_in / optimism_transfers_out; to inspect the transfers
inside one transaction use optimism_tx_transfers.
Value and Fee are in ETH.
Each row also carries the exact fee: Fee_Wei is the fee in the smallest unit as a decimal
string (Fee is the same amount in ETH, rounded to 8 decimals); Fee_Usd is its value at the
ETH price at the time of the transaction. Fee_Price_Status says how far to trust that
price: ok; no_price (Fee_Usd is empty - never read it as zero); suspect (the price is more than twice, or less than half, the price a day earlier AND a day
later - a likely data glitch, so Fee_Usd is left empty). A
failed transaction (Success = 0) still paid its fee: treat it as a fee-only row.
The fee was paid by the sender (From): count it for this address only on rows where From is the address.
Fee_Status tells whether the fee itself can be used: ok; may_omit_l1 = the recorded amount
is the execution fee alone, the L1 data fee is missing from it, so the true fee is higher
(a lower bound); unreliable = the transaction is recorded with a lower gas price than it was
sent with, so the recorded fee is far too low and NOT usable - Fee_Wei and Fee_Usd are empty
there, the Fee of such a row must be ignored, and the real fee has to come from the
transaction's receipt.
Returns up to limit transactions per page (default 25, at most 10000), newest first, failed transactions
(Success = 0) included unless only_successful=1; a page shorter than limit is the last one.
An unknown `until` hash is not applied (no lower bound); `before` and `until` together bound one range.
With after_time / before_time only that period is read, so the cost follows the period, not the
address's whole history; pass the same pair with every page.
Each row: Tx, Time, Block, TxIndex, From, To, Value, Success, Fee, Fee_Status, Fee_Wei, Fee_Usd, Fee_Price_Status.
Optimism transfers in
INCOMING Optimism (op, OP, OP Mainnet, L2) transfers to an address — where this wallet
received funds from.
NOT the opposite direction → use optimism_transfers_out.
NOT totals per sender → use optimism_address_flow_summary.
Returns up to limit transfers (default 20, at most 10000), newest first by default; page back with the
last row's Cursor.
Use to trace the
source of funds backwards. For an address with many transfers set min_amount or
sort='amount', else large sources hide behind recent dust. Query WITHOUT a currency
filter to see where the bulk of funds originated. To identify counterparties,
pass the returned addresses to labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. ETH and the major tokens are priced to 5 minutes, every other token has ONE
price per day, so the value of a small token is approximate. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
Each row: Time, Sender, Currency, Symbol_NonAscii, Contract, Amount, Internal, Tx, Cursor, Amount_Raw, Decimals, Block, Tx_Index, Price_Status, Price_Usd, Value_Usd.
Optimism transfers out
OUTGOING Optimism (op, OP, OP Mainnet, L2) transfers from an address — where this
wallet sent funds. Narrow with after_time (flows after funds arrived), currency
(follow one asset), min_amount (drop dust). For an aggregated "where did the bulk go"
view use optimism_trace_next_hop; for incoming use optimism_transfers_in. For an
address with many transfers set min_amount or sort='amount', else large counterparties
hide behind recent dust. Query WITHOUT a currency filter to surface the token → USDT
off-ramp. Page back through history with cursor: pass the Cursor value of the LAST row
of a page to get the next one — unlike before_time it never skips rows that share a
timestamp. To identify counterparties, pass the returned addresses to
labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. ETH and the major tokens are priced to 5 minutes, every other token has ONE
price per day, so the value of a small token is approximate. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
Optimism transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Optimism transfers database. The
Bitquery MCP specialized optimism_* tools are the PRIORITY; use this ONLY when none of them
can answer (e.g. an uncovered table). No query optimizer here — naive SQL full-scans
huge tables and JOINs time out.
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
FAST-QUERY RULES: filter on the indexed key tables — `optimism_api.transfers_sender` (by
sender / outgoing), `optimism_api.transfers_receiver` (by receiver / incoming),
`optimism_api.transfers_tx` (by tx hash); NEVER JOIN big tables — use `WHERE col IN (SELECT …)`
(use `GLOBAL IN` when the subquery is referenced inside another subquery, otherwise its
result is not available where it is used). A subquery that itself reads a transfers table (`IN (SELECT Transfer_Sender FROM …transfers_… WHERE …)`) is re-run for every shard and rescans that table — run it as its OWN query first, then pass the result back as a literal list (`IN (unhex('a'), unhex('b'))`). To filter transfers by a specific token, read `transfers_currency` (keyed by the token contract + `Block_Time`); `transfers_sender` / `transfers_receiver` are keyed by address, so filtering those by a token contract scans the table.
Addresses are RAW BYTES `FixedString(20)` in `Transfer_Sender` / `Transfer_Receiver`
(there are NO plain string address columns) →
`Transfer_Sender = unhex(substring(lower('0x…'),3))`, output `concat('0x',lower(hex(col)))`.
Tx hash is `Transaction_Hash` `FixedString(32)` (same unhex/hex pattern).
A SET of hashes or addresses must have the column's exact type:
`Transaction_Hash IN (SELECT toFixedString(unhex(h), 32) FROM …)`, `toFixedString(…, 20)` for
an address. A plain `unhex(…)` set, or a JOIN on a String key, silently misses every value
ending in `00`; `=` and a literal list `IN (unhex('a'), unhex('b'))` are safe.
Currency symbol + decimals are INLINE columns (no dictionaries):
amount = `toFloat64(Transfer_Amount) / pow(10, Transfer_Currency_Decimals)`;
symbol = `Transfer_Currency_Symbol`; token contract = `Transfer_Currency_SmartContract` — itself RAW BYTES in a `String` column (not text), so filter it `= unhex('<40 hex, no 0x>')` and read it back `concat('0x',lower(hex(…)))`; a `'0x…'` text literal matches nothing.
Always add `AND Transfer_Success = 1`. `Transfer_Type`: 'token' = a token transfer,
'transaction' = a plain native-coin send, 'call' = native coin moved by a call. A
transaction's OWN value transfer is stored either as 'transaction' or as a 'call' with
`Call_Index = 0`; only a 'call' with `Call_Index != 0` is an INTERNAL transfer (made by
contract code deeper inside the transaction). For top-level transfers filter
`(Transfer_Type IN ('token','transaction') OR (Transfer_Type = 'call' AND Call_Index = 0))` -
`Transfer_Type IN ('token','transaction')` alone drops a large share of ordinary sends. Time =
`Block_Time`. Date-time values come back as ISO-8601 UTC, e.g. 2026-09-21T15:04:18Z (toString() of a date-time gives 2026-09-21 15:04:18). Other `optimism_api.*` tables (calls, transactions, balances) are reachable with
an explicit db prefix. Counterparty labels are NOT in this database — use
labels_for_addresses. Read-only; always add a LIMIT of at most 10,000 — a larger answer fails with an error, so aggregate (GROUP BY, count) instead. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x).
Exact table and column names first: chain_list_tables, chain_describe_table and chain_search_columns with database=optimism_api.
Optimism tx events
ALL EVENT LOGS in one or more Optimism (op, OP, OP Mainnet, L2) transactions,
including decoded arguments plus raw topics and data. Use after optimism_find_events
identifies a transaction, or whenever a tx receipt's complete event payload is needed.
NOT the value moved in a transaction → use optimism_tx_transfers.
Accepts up to 50 transaction hashes separated by "|". `Parsed=0` means no ABI matched:
Event, Signature and Arguments can then be empty, but Topic0, Topics and Data remain
usable. Arguments are named objects with Name, Type, string Value and Indexed; integer
values are decimal strings to avoid JSON-number precision loss; use raw
Topics/Data for values wider than the decoded numeric fields. Argument names come from one known ABI for the Signature and can be another contract's wording - Topics and Data are the log's own. By default, reverted
call-frame logs, removed logs and failed transactions are excluded; set
only_successful=0 to inspect them with the returned status fields.
Optimism tx transfers
All token & native transfers inside ONE OR SEVERAL Optimism (op, OP, OP Mainnet, L2) transactions
(sender → receiver, currency, amount, invoked method). Entry point for
tracing when you have a tx hash — pass several hashes separated by "|" to
inspect a batch in one call (rows are grouped per transaction, largest
amount first within each). For an address's flow over time use
optimism_transfers_out / optimism_transfers_in. To identify the addresses,
pass them to labels_for_addresses.
NOT the event logs of a transaction → use optimism_tx_events.
FRESHNESS: transfers reach this data some minutes after the trade tools see a swap, so
a hash that trader_trades or tx_trades already shows can return NO rows here yet -
that is lag, not a missing transaction: retry in a few minutes.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
Pair ohlcv
PRICE HISTORY of a trading PAIR (base/quote) on one chain as OHLC / OHLCV
candles, priced in USD or in the quote token — one series per DEX pool of
the pair. Use to chart "<BASE>/<QUOTE>" over time or a price-in-quote
series. For a single token use token_ohlcv; for a well-known coin with no
chain pinned use currency_ohlcv.
Use `quote_in` = "usd" (default) for USD-denominated prices, or
"quote" for prices expressed in the quote token (e.g. price of
PEPE *in WETH*). An empty `quote_address` means the chain's native coin
(ETH, BNB, SOL, TRX, …). Backed by Bitquery's DEX index across Ethereum,
Arbitrum, Base, Matic, Optimism, Binance Smart Chain, Tron, Solana, Robinhood
and Arc — works for rare / long-tail / newly-launched pairs.
ROWS: one row per (candle start, pool) — a pair traded in three pools
returns three rows per candle, each with its Pool_Address and Dex. Pass
`pool_address` for the series of one pool. Re-written copies of an open
candle are collapsed to the newest. A candle's High and Low cover EVERY swap in
it, however small, and a swap's price is worked out from its own two
amounts, so one tiny or unusual swap can stretch them far past anything
that could actually be traded at — the closes are the robust series.
CANDLE SIZE: `interval_seconds` is one of 1, 3, 5, 10, 30, 60, 300, 900,
1800, 3600 (anything else is rejected). For 4h / 1d candles request 3600
and aggregate.
WINDOW: `after_time` / `before_time` (UTC — "2026-09-15 08:00:00", a date,
or unix seconds) select an absolute period: rows that start at or after
after_time and before before_time. Without after_time the window is the
`window_hours` before before_time (or before now); after_time takes
precedence. History reaches back about 30 days. Rows are newest first
(`order` = oldest for oldest first), at most `limit` rows — to page
further back, pass the oldest returned Time as before_time.
The per-candle `Market_Cap_Usd` of the BASE token is its OWN valuation
(`null` with `Fdv_Usd` when the base stands for a multi-chain or bridged
asset — WETH, WBTC, USDC, LINK on each chain; Asset_Market_Cap_Usd /
Asset_Fdv_Usd carry the whole asset's figures), circulating-supply
based and `null` when no circulating supply is known; `Fdv_Usd` is the
total-supply valuation — call it FDV, never market cap. Both are `null`
when the supply is unknown or not credible; call `token_price` on the base
token to see which reason applies.
IF THE USER IS ASKING FOR A USD PRICE CHART OF A WELL-KNOWN
CRYPTOCURRENCY (USDC, USDT, WETH, WBTC, BTC, ETH, SOL, DAI, …) AND
HAS NOT PINNED A SPECIFIC BLOCKCHAIN OR PAIR, prefer `currency_ohlcv`.
Only use `pair_ohlcv` when a specific base/quote pair is required (e.g.
candles priced *in* the quote token, or a specific pool on one chain).
LATEST TICK: for the price right now pass interval_seconds=1 and
window_hours=1 and take the first row(s).
Pair price
Latest price of a specific trading PAIR (base/quote) on one chain — both
USD and quote-denominated. Use for "<BASE>/<QUOTE> price", "PEPE in WETH".
NOT for a single token (use token_price) and NOT a time series (use
pair_ohlcv).
Returns ONE row with BOTH the most recent USD price AND the most
recent price expressed in the QUOTE token, plus market cap, total /
circulating / max supply and FDV of the BASE token. The price is the
close of the most recently updated DEX pool that pairs those two tokens
on the given blockchain (every pool of the pair is considered). Backed by
Bitquery's DEX index across Ethereum, Arbitrum, Base, Matic, Optimism,
Binance Smart Chain, Tron, Solana, Robinhood and Arc — works for rare /
long-tail / newly-launched pairs. An empty `quote_address` means the chain's native coin
(ETH, BNB, SOL, TRX, …) as the quote.
MARKET CAP vs FDV — `Market_Cap_Usd` is circulating-supply based and is
returned ONLY when a circulating supply is actually known for the base
token; otherwise it is `null`. Most long-tail tokens have no
circulating-supply figure, so `null` is normal and does NOT mean the token
is untraded — read `Fdv_Usd` (the total-supply valuation) instead, and call
it FDV, never "market cap". `Fdv_Usd` is itself `null` when even the total
supply is unknown — then no valuation at all is available for the base
token, and `Total_Supply` / `Circulating_Supply` are `null` too. A supply
figure that is not known is always `null` (unknown), never 0. A
circulating supply reported above the total supply is capped at the
total, and the market cap then equals the FDV.
BOTH valuations (token and Asset_* alike) are additionally WITHHELD (`null`,
with a non-empty `Valuation_Warning`) when the supply behind them is not credible: a supply
far larger than any real token, or a resulting valuation larger than any
plausible market. Mint-and-burn tokens report exactly that — supply parked
on a burn address (`0x…dead`, `0x0`) still counts in `Total_Supply`, so the
raw valuation lands many orders of magnitude above anything real. When
`Valuation_Warning` is set, report the valuation as unavailable and say
why — do NOT rebuild it yourself from supply x price. To see how much of
the supply is burned, call the chain's `<chain>_token_holders` tool
(`chain_capabilities` lists the chains that have one). The supply and
valuation columns are the BASE token's own figures: `null` when the base
stands for a multi-chain or bridged asset (WETH, WBTC, USDC, LINK on each
of its chains); Asset_Currency_Id, Asset_Total_Supply,
Asset_Circulating_Supply, Asset_Market_Cap_Usd and Asset_Fdv_Usd always
hold the whole asset's figures (as in token_price).
`Symbol_NonAscii` = 1 flags a `Token_Symbol` that is not plain ASCII. That
is normal for CJK / emoji token names, but it is also how a scam token
impersonates a major one: Cyrillic or Greek look-alike letters make a fake
`USDT` / `SOL` / `BTC` read identically to a human. Never treat such a
token as the asset it resembles — say the symbol is a look-alike.
Use `find_tokens` / `find_token_by_address` first if you only have
names / symbols and need to resolve the correct addresses. Base and
quote must be on the same network.
IF THE USER IS ASKING ABOUT THE PRICE OF A WELL-KNOWN CRYPTOCURRENCY
(USDC, USDT, WETH, WBTC, BTC, ETH, SOL, DAI, …) IN USD AND HAS NOT
PINNED A SPECIFIC BLOCKCHAIN OR PAIR, prefer `currency_price` —
aggregation across every token of that asset on every indexed chain
gives a better price estimate and wider coverage than any single
pair. Only use `pair_price` when a specific base/quote pair or
chain is required (e.g. "PEPE/WETH on Ethereum").
IF THE USER EXPLICITLY WANTS A REAL-TIME / UP-TO-THE-SECOND QUOTE
("right now", "current price", "latest tick"), this tool reads from
the 1-hour bucket and can lag up to 1 hour. Call `pair_ohlcv` with
`interval_seconds=1` and `window_hours=1` instead and take the first
row — 1 s is the finest granularity Bitquery stores.
Names longer than 128 characters and symbols longer than 32 are cut and end
in `…` (spam tokens carry names of up to 34,000 characters).
Polymarket find markets
Find PREDICTION MARKETS - Polymarket betting / wagering markets, event contracts,
binary yes-no questions - by TITLE TEXT or by CATEGORY (sports, politics, crypto,
esports, weather, stocks, mentions, entertainment), and resolve them to a
Question_Id. CALL THIS FIRST whenever a request names a prediction market, a bet,
a wager or an event outcome in words rather than by id, before any odds /
probability / trade / settlement query. One row per market.
NOT live odds or implied probability -> use polymarket_market_odds.
NOT the individual bets / fills of a market -> use polymarket_market_trades.
NOT a volume ranking across many markets -> use polymarket_top_markets.
For one market's full detail (outcome / conditional token ids, oracle, collateral,
resolution rules) -> polymarket_market_info.
Polymarket on Polygon, history from September 2025 onward, down to the second.
The title search is case-insensitive AND accent/alphabet-aware, so "munchen",
"MUNCHEN" and "Munchen"-with-accent all reach the same titles. Leave `query` empty
and pass `category` and/or `after_time` to simply browse a slice of the market
list. Narrow with `status` (open = no resolution recorded yet; resolved = the
oracle has reported) and with `after_time` / `before_time`, which bound the
market's CREATION.
`category` is a coarse subject bucket derived from the market's own resolution
source and wording - use it for "what sports markets are open", "show me the
political / election markets", "crypto price markets". Values: sports, crypto,
esports, politics, weather, stocks (equities, commodities, macro), mentions
("will X say Y" / tweet-count markets), entertainment (awards, music, film),
other. It is a best-effort classification, not an official Polymarket taxonomy:
sports and crypto together are about 75 % of all markets, politics and
entertainment are small, and a market whose subject cannot be recognised is
reported as `other` (about 7 %). An empty value applies no category filter;
an unrecognised non-empty value is rejected. Every returned row carries its Category, so you can always see
how a market was classified. Category is NOT a filter on the outcome.
Each row returns Question_Id (the id every other polymarket_* tool takes), Title,
Status, Category, Created_Time, Resolved_Time and Resolved_Outcome (the winning
outcome - empty while the market is open), Outcomes (the outcome labels),
Condition_Id, Market_Id, Group_Id + Group_Title (markets belonging to one event
share a group) and Resolution_Source (the reference the market settles against).
The outcome ASSET IDS - needed to look at a single outcome - are deliberately not
in this list; get them from polymarket_market_info.
Created_Time is the market's on-chain registration; for markets whose registration
is not in the recorded history it falls back to the market's own creation timestamp,
capped at its first recorded event. Rows come back newest-created first, with the
question id as a stable tie-break - many markets are created in the same second.
A category filter costs roughly twice a plain title search, so when you already
know the wording prefer a specific `query` (a name, a number, a date) over
category plus a large `limit`.
Polymarket market disputes
CONTESTED prediction markets (Polymarket, on Polygon) — the markets whose reported
answer was CHALLENGED and sent back for re-resolution, and the markets whose written
resolution RULES were amended after launch, newest first, with the wallet that raised
the challenge. Use for "which markets were disputed this month", "was this market's
outcome challenged", "who is challenging outcomes", "were the rules changed after
people had already bet".
NOT the ordinary created/resolved lifecycle → use polymarket_market_events.
NOT the market's detail card or its current rules text → use polymarket_market_info.
NOT trades, odds or payouts → polymarket_market_trades, polymarket_market_odds,
polymarket_settlements.
Every event here is read directly from the chain.
READ THIS BEFORE CONCLUDING A MARKET WAS NOT DISPUTED. Challenge records begin on
2026-03-09, months later than the market history the other polymarket_* tools cover
(September 2025 onward). For anything that happened before 2026-03-09 this tool
returns nothing, and that silence means "not covered", NOT "not disputed". Say so
when you report on an older market; never present an empty result as proof.
The two event types:
- disputed — someone put up a bond to challenge the answer that had been reported
for this market, which cancels that answer and restarts the resolution. Disputer
is who challenged, Proposer is whose answer they challenged. A dispute is not a
verdict: the market usually still settles afterwards, sometimes to the very same
outcome, so check Market_Resolved_Outcome before saying a challenge succeeded.
- rules_updated — the market's written resolution criteria were amended after the
market was already live, by the wallet in Updated_By. These are more common than
disputes and are often clarifications, but an amendment after trading has started
is worth flagging on its own.
event_type defaults to disputed, because amendments outnumber challenges roughly
three to one and would otherwise bury them.
Cost here is driven ENTIRELY by the time window, never by limit — the search cannot
jump straight to one market, so question_id narrows the answer but not the work.
The default window is 30 days. Widening much past 90 days gets slow and may time
out; when it does, retry with a smaller window_hours or step back through the
history with before_time. Challenges are genuinely rare — of the order of a few
hundred across a month against millions of markets — so an empty page over a short
window is a normal result, not an error.
Title, Market_Status, Market_Resolved_Time and Market_Resolved_Outcome are filled in
from the market itself. A small share of challenged markets have no market record at
all and come back with an empty Title — the challenge is still real; look the market
up by its Question_Id. Feed Disputer / Proposer to labels_for_addresses to identify
them, and Question_Id to polymarket_market_events for the full lifecycle.
FRESHNESS. Every row carries Last_Indexed_Time - the newest resolution-process event
recorded so far - and Data_Lag_Minutes, how far that is behind the clock (usually well
under half an hour, occasionally hours). A challenge raised after Last_Indexed_Time is
not visible yet, so over a very short recent window an empty page can mean "not
recorded yet" rather than "not disputed".
Polymarket market events
LIFECYCLE TIMELINE of prediction markets (Polymarket, on Polygon) — a newest-first
stream of market CREATED and market RESOLVED events, across every market in a period
or for one market end to end. Use for "which markets were created today", "what
resolved in the last hour and to what outcome", "when was this market opened and
settled", "which resolver reports these markets".
NOT a way to find a market from its wording → use polymarket_find_markets.
NOT the detail card of one market (outcome asset ids, collateral, resolution rules)
→ use polymarket_market_info.
NOT prices, fills or payouts → polymarket_market_odds, polymarket_market_trades,
polymarket_settlements.
Polymarket on Polygon, history from September 2025 onward, down to the second.
There are exactly TWO lifecycle events, and this tool streams both:
- created — the market was registered on chain and became tradeable.
- resolved — the resolver reported the winning outcome. Outcome and
Outcome_Asset_Id name it; the payouts to holders are separate records
(polymarket_settlements).
The steps a resolver takes BEFORE reporting — proposing an answer, a challenge to
that answer, the challenge being settled — are not part of these records, so this
timeline cannot tell you whether an outcome was contested.
Reporting is not always clean. A report transaction can revert and be retried,
sometimes for hours (one market took 302 attempts), and a handful of markets carry
only failed attempts and are therefore NOT actually settled despite looking it.
Status says which is which; reverted attempts are hidden until include_failed=1.
Market_Resolutions counts the market's confirmed reports over its whole life — 0
means still open, 1 is normal, more than 1 (also flagged by Resolved_More_Than_Once)
is rare — and Market_Failed_Attempts counts the reverted ones, so a troubled
resolution is visible without unhiding the rows.
Scope it before you page. With question_id (or condition_id) you get that market's
complete lifecycle regardless of window_hours, and it is fast. Without one you get a
cross-market stream over the time window — 24 hours by default, which is already
tens of thousands of events — so narrow with event_type, oracle, after_time /
before_time rather than raising limit. Widening window_hours a long way back costs
proportionally more and may time out; retry with a smaller window.
Page back with cursor: pass the Cursor value of the LAST row of a page to get the
next one. It never skips rows sharing a timestamp, and that matters here — one
report transaction settles dozens of markets in the same second. When cursor is set,
before_time is ignored and the window is measured back from the cursor.
FRESHNESS. Every row carries Last_Indexed_Time - the newest created/resolved event
recorded so far for ANY market - and Data_Lag_Minutes, how far that is behind the clock
(usually well under an hour, occasionally several hours). Events after
Last_Indexed_Time are not visible yet, so "nothing resolved in the last hour" is only
true if Last_Indexed_Time is recent; a market that resolved minutes ago can still read
as open here.
Feed Question_Id to polymarket_market_info / polymarket_market_odds /
polymarket_market_trades, and Oracle to labels_for_addresses to identify the resolver.
Polymarket market info
Full detail for ONE OR MANY Polymarket prediction markets BY ID — the batch resolver
that hands you the OUTCOME ASSET IDS every outcome-level tool needs, plus the oracle,
the collateral token, the created/resolved lifecycle with their transaction hashes,
the resolution source, the image and the market's written resolution rules. Pass a
"|"-separated LIST of ids to resolve a whole batch in ONE call instead of calling once
per market, or a group_id to get every market of one event. It also resolves an
OUTCOME ASSET ID back to the market that issued it — the way back when an
outcome asset id is the only identifier a record left you with.
NOT a way to find a market from its wording → run polymarket_find_markets first.
NOT current prices or implied probability → use polymarket_market_odds.
NOT the fills of a market → use polymarket_market_trades.
Polymarket on Polygon, history from September 2025 onward, down to the second.
FIVE ways in, every one of them optional and every one of them accepting a
"|"-separated batch: question_id (the direct lookup — by far the fastest, use it
whenever you have it), condition_id, group_id (every market of one event),
market_id and outcome_asset_id. question_id / condition_id / group_id are 0x-hex and
case-insensitive, so an upper-case or checksummed id works and the "0x" prefix is
optional; market_id is the short numeric id; outcome_asset_id is a long DECIMAL
number, never hex. Setting more than one key ANDs them — question_id + group_id
keeps only those of your ids that belong to that event. Ids that match nothing are
simply absent from the result, with no error, so a batch never fails as a whole.
Passing NO key returns nothing.
RECOVERING A MARKET FROM AN OUTCOME ASSET ID: many trade records carry an outcome
asset id but no market id at all, and this tool is the only way back from one to the
other. Pass the ids you are stuck with — batched, not one call each — and read
Matched_Outcomes, which names the outcome each of them is.
EXPECT FEWER ROWS THAN IDS, for two ordinary reasons, neither of them an error or a
bad id: a sizeable minority of outcome asset ids have no market record at all and
return nothing (do not read "no market" as "wrong id"), and two ids belonging to the
SAME market — the two sides of a binary market, say — collapse into that market's
single row, with both listed in its Matched_Outcomes. The same holds for the other
keys: any id that matches nothing is simply absent.
condition_id, group_id, market_id and outcome_asset_id have to be searched for and
take a couple of seconds regardless of how many you pass, so batch them rather than
calling once per id — and prefer question_id, which answers almost instantly.
Returns one row PER MARKET, newest-created first: Question_Id, Condition_Id, Title,
Status, Created_Time / Created_Tx / Created_Onchain, Resolved_Time / Resolved_Tx /
Resolved_Outcome (the winning outcome) / Resolved_Outcome_Asset_Id /
Resolution_Attempts_Failed, Outcomes (one
entry per outcome with its label, asset_id and index), Matched_Outcomes (filled
only when you passed outcome_asset_id: the requested outcome(s) this market holds,
each with its label and its index, so an asset id maps to a name and a position
without a second call), Oracle, Outcome_Token_Contract,
Registered_Collateral_Token + Registered_Collateral_Symbol +
Registered_Collateral_Decimals (the collateral declared by the market registration),
Marketplace, Protocol,
Market_Id, Group_Id + Group_Title, Resolution_Source, Image, and Rules — the full
written criteria the market resolves on, which is usually the real answer to "how does
this market settle?".
Notes: a market counts as resolved only once a resolution transaction has actually
SUCCEEDED on-chain: attempts that failed are excluded from Status, Resolved_Time,
Resolved_Tx and Resolved_Outcome, so a market whose every attempt failed correctly
still reads "open" rather than settled. Resolution_Attempts_Failed reports how many
failed attempts that market accumulated — it is 0 for almost every market, and a
large number means a settlement that was contested or repeatedly retried before it
went through. The registered collateral can differ from the token the market's orders
actually settle in (for example USDC in registration versus pUSD in trading), so it
is named Registered_Collateral_* here and in polymarket_market_odds, while the traded
token is Trade_Collateral_* in polymarket_market_odds and polymarket_top_markets; all
USD amounts use the trade record's own decimals. Compare token addresses, not symbols:
different contracts can share the symbol USDC. Created_Onchain
= 0 means the registration itself is not in the recorded
history, so Created_Time is the market's own creation timestamp capped at its first
recorded event. A small share of markets carry no outcome asset ids at all — those
come back with empty asset_id values and cannot be queried at outcome level. Every row
carries that market's full rules text, so a large batch is a large answer — ask only
for the markets you need. If you pass more ids than `limit`, or query an event with
more markets than `limit`, the extra markets are dropped silently (newest kept) —
raise `limit` to match.
Polymarket market odds
Odds of ONE prediction market (Polymarket) — the last traded price and implied
probability of EACH outcome, plus volume and the last-trade time. A single point in
time: NOW by default, or AS OF any past instant with at_time.
NOT a time series — use polymarket_market_price_history.
NOT the individual fills — use polymarket_market_trades.
Identify the market with question_id, condition_id OR outcome_asset_id — at least
one is required. Resolve them with polymarket_find_markets (search by question
title) or polymarket_market_info. question_id is the direct lookup and is fastest;
condition_id and outcome_asset_id have to be looked up through the market's
registration first, so they answer a little slower. Precedence when more than one
is given: question_id, then condition_id, then outcome_asset_id — the others are
ignored. Passing none returns nothing.
Reading the numbers:
- Price is USD per share, 0..1, and IS the market-implied probability:
0.62 = "the market prices this outcome at 62 %". Implied_Probability_Pct is the
same number as a percentage.
- One row per outcome TOKEN, identified by Outcome_Asset_Id. The outcome name and
index come from the market's own definition, not from the individual fill, so a
two-outcome market always answers with exactly two rows.
- Across a market's outcomes the prices should add up to about 1. A visible gap
normally just means one outcome's last fill is older than the other's — compare
Last_Trade per row, and prefer Vwap_Window when a leg is stale or its last fill
was a dust trade.
- As_Of echoes the instant the answer describes. EVERY column is as of that moment:
with at_time set, Price / Last_Trade / Volume_Usd_Total / Trades_Total describe
the market as it stood THEN, not today.
- Volume_Usd_Window / Trades_Window / Vwap_Window cover the last window_hours
counted back from As_Of (default 24), so they are 0 / empty for a market that had
already settled by then — read Volume_Usd_Total / Trades_Total for its figures up
to that point.
- Volume is in the collateral the market's orders settle in: Trade_Collateral_Symbol,
Trade_Collateral_Token and Trade_Collateral_Decimals (USD-pegged, taken from the
newest fill). Registered_Collateral_Symbol / _Token / _Decimals are the token the
market was registered with - the same fields polymarket_market_info returns - and can
legitimately be a different wrapper (for example USDC registered, pUSD traded).
Compare the token addresses, not the symbols: two different contracts can both be
called USDC.
- Last_Indexed_Time is the newest fill recorded in ANY market and Data_Lag_Minutes is
how far that is behind the clock - usually well under half an hour, occasionally
hours. Fills after Last_Indexed_Time are not visible yet, so with at_time empty the
answer really describes the market as of Last_Indexed_Time, and the most recent part
of the window columns may still be missing. Last_Trade well before Last_Indexed_Time
means the market itself went quiet; a large Data_Lag_Minutes means its latest fills
simply have not arrived yet.
Every match leaves one record per resting order it filled plus one for the order that
crossed the book. The two classes do NOT mirror each other one to one - a match can
pair orders on opposite outcomes at complementary prices - so "both" is NOT a fixed
multiple of "maker" (it is not "double"), and the ratio differs by outcome, market and
window. order_side picks which records to count; keep the default "maker" for
market-level volume, VWAP and trade counts.
Recovered_Trades and Unresolved_Trades break Trades_Total down by how each fill was
identified, so a restored figure is never silent.
Not every fill records which market it belongs to, and a fill whose market is
missing from the registration cannot be named at all. The three tools make that
visible instead of guessing:
- Recovered = 0: the fill carried its own market identity — nothing was inferred.
- Recovered = 1: the fill did not name its market, and it was matched to this one
through the market's registered outcome tokens. Price, size, direction, trader
and transaction are always the fill's own; only the naming was restored.
- Recovered = -1: the fill named neither a market nor an outcome the registration
knows. It is reported because it is a real trade, but its labels stay blank.
- Outcome_Resolved = 0 marks a row whose outcome name could not be taken from the
market's own definition. Treat a blank or surprising Outcome on such a row as
UNKNOWN, not as fact — an outcome name stored on the fill itself can describe the
other side of the match.
An empty label with Outcome_Resolved = 1 really is an unnamed outcome; an empty
label with Outcome_Resolved = 0 means nobody recorded the name. Because the outcome
token id survives on every fill even when the market identity does not,
outcome_asset_id is the key most likely to find such trades.
Polymarket market price history
Price SERIES of ONE prediction market (Polymarket) — Open/High/Low/Close, VWAP and
volume per time bucket, for EACH outcome. Use for charts, "probability over time",
"how did the odds move", momentum. NOT a single latest price — use
polymarket_market_odds. NOT the individual fills — use polymarket_market_trades.
Identify the market with question_id, condition_id OR outcome_asset_id — at least
one is required. Resolve them with polymarket_find_markets (search by question
title) or polymarket_market_info. question_id is the direct lookup and is fastest;
condition_id and outcome_asset_id have to be looked up through the market's
registration first, so they answer a little slower. Precedence when more than one
is given: question_id, then condition_id, then outcome_asset_id — the others are
ignored. Passing none returns nothing.
Prices are USD per share, 0..1, and ARE the market-implied probability
(Close 0.62 = 62 %). On a two-outcome market the two Closes of the same bucket
should add up to about 1.
- interval accepts 1s, 5s, 10s, 30s, 1m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h or 1d;
anything else is rejected. Buckets are aligned to whole UTC units.
- The default window is the market's WHOLE history, which is cheap here — narrow it
with after_time / before_time only when you actually want a slice.
- limit is the number of buckets PER OUTCOME, newest first. Reverse the rows
client-side to plot a chart left-to-right.
- Buckets with no trades are omitted; there is no gap filling, so a sparse market
yields sparse rows.
- Open / Close are the first / last fill inside the bucket. On a thin bucket
(small Trades) they can be a single dust trade — Vwap is the more robust number,
and Volume_Usd / Trades tell you how much to trust the bucket.
- Shares is the outcome-token quantity traded; Volume_Usd is the collateral value.
- Series are keyed by Outcome_Asset_Id, which is what distinguishes the outcomes;
Outcome is its display name. Plot one line per Outcome_Asset_Id.
Every match leaves one record per resting order it filled plus one for the order that
crossed the book. The two classes do NOT mirror each other one to one - a match can
pair orders on opposite outcomes at complementary prices - so "both" is NOT a fixed
multiple of "maker" (it is not "double"), and the ratio differs by outcome, market and
bucket. order_side picks which records to count; keep the default "maker" for a volume
and VWAP series.
Last_Indexed_Time (on every row) is the newest fill recorded in ANY market and
Data_Lag_Minutes how far that is behind the clock - usually well under half an hour,
occasionally hours. Buckets after Last_Indexed_Time cannot exist yet and the bucket
containing it may be incomplete: a series that stops well before Last_Indexed_Time
means the market went quiet, one that stops at it means the newest fills have not
arrived yet.
Recovered_Trades and Unresolved_Trades break each bucket's Trades down by how its
fills were identified, so no bucket is silently short or silently restored.
Not every fill records which market it belongs to, and a fill whose market is
missing from the registration cannot be named at all. The three tools make that
visible instead of guessing:
- Recovered = 0: the fill carried its own market identity — nothing was inferred.
- Recovered = 1: the fill did not name its market, and it was matched to this one
through the market's registered outcome tokens. Price, size, direction, trader
and transaction are always the fill's own; only the naming was restored.
- Recovered = -1: the fill named neither a market nor an outcome the registration
knows. It is reported because it is a real trade, but its labels stay blank.
- Outcome_Resolved = 0 marks a row whose outcome name could not be taken from the
market's own definition. Treat a blank or surprising Outcome on such a row as
UNKNOWN, not as fact — an outcome name stored on the fill itself can describe the
other side of the match.
An empty label with Outcome_Resolved = 1 really is an unnamed outcome; an empty
label with Outcome_Resolved = 0 means nobody recorded the name. Because the outcome
token id survives on every fill even when the market identity does not,
outcome_asset_id is the key most likely to find such trades.
Polymarket market trades
Individual FILLS of ONE prediction market (Polymarket), newest first — which trader
bought or sold which outcome, at what price, against whom. Use for the tape, whale
hunting, "who is behind this move", counterparty analysis, and for ONE WALLET's
fills inside ONE market via the trader param. NOT an aggregated price — use
polymarket_market_odds for the current odds and polymarket_market_price_history for
a price series. For a wallet's activity ACROSS markets use polymarket_trader_activity.
Identify the market with question_id, condition_id OR outcome_asset_id — at least
one is required. Resolve them with polymarket_find_markets (search by question
title) or polymarket_market_info. question_id is the direct lookup and is fastest;
condition_id and outcome_asset_id have to be looked up through the market's
registration first, so they answer a little slower. Precedence when more than one
is given: question_id, then condition_id, then outcome_asset_id — the others are
ignored. Passing none returns nothing.
Each row is ONE ORDER:
- Trader is the address that OWNS the order. Counterparty is who it matched
against — and on an order that crossed the book (Is_Taker_Order=1) that
counterparty is the exchange contract itself rather than another trader, because
such an order is matched against several resting orders at once.
- Side is the Trader's own direction: "buy" = they bought the outcome token named
in Outcome, "sell" = they sold it. Buying "No" is economically the same as
selling "Yes" — read Outcome and Side together before calling someone bullish.
- Price is USD per share, 0..1 (= implied probability). Usd is the collateral value
of the order, Shares the outcome-token quantity: Usd = Price x Shares.
- Outcome_Asset_Id identifies the outcome; Outcome is its display name.
- Fee_Usd is the fee that order paid, in the same collateral currency as Usd.
FEE_USD IS THE FEE THAT ORDER PAID, in the market's collateral currency, and it is
charged to the side that takes liquidity. Resting orders that were merely filled
almost never pay one, so under the default order_side='maker' this column is close
to 0 on nearly every row - that is the real economics, not a gap in the data. Set
order_side='taker' or 'both' to see the fills that were actually charged. Fees are a
recent feature of these markets, so an older trade shows a real 0.
trader returns that wallet's OWN orders in this market — every order it placed,
whether it rested on the book or crossed it. Setting trader automatically counts
both kinds, because a wallet that only ever crosses the book owns no resting orders
and would otherwise come back empty. That address's own direction is in Side, so
there is no need to look for it in the Counterparty column; a wallet that appears
only as somebody else's Counterparty did not place that order.
Narrowing before you page matters: busy markets fill hundreds of orders inside a
single second. min_usd drops dust (a large share of rows are sub-dollar), outcome
pins one side, after_time / before_time bound the period.
Page back through history with cursor: pass the Cursor value of the LAST row of a
page to get the next one. Unlike before_time it never skips rows that share a
timestamp, and here that matters — one five-minute stretch of a busy market held
thousands of fills spread over only a few hundred distinct timestamps.
Every row says how it was identified, so the tape is never silently partial.
Not every fill records which market it belongs to, and a fill whose market is
missing from the registration cannot be named at all. The three tools make that
visible instead of guessing:
- Recovered = 0: the fill carried its own market identity — nothing was inferred.
- Recovered = 1: the fill did not name its market, and it was matched to this one
through the market's registered outcome tokens. Price, size, direction, trader
and transaction are always the fill's own; only the naming was restored.
- Recovered = -1: the fill named neither a market nor an outcome the registration
knows. It is reported because it is a real trade, but its labels stay blank.
- Outcome_Resolved = 0 marks a row whose outcome name could not be taken from the
market's own definition. Treat a blank or surprising Outcome on such a row as
UNKNOWN, not as fact — an outcome name stored on the fill itself can describe the
other side of the match.
An empty label with Outcome_Resolved = 1 really is an unnamed outcome; an empty
label with Outcome_Resolved = 0 means nobody recorded the name. Because the outcome
token id survives on every fill even when the market identity does not,
outcome_asset_id is the key most likely to find such trades.
FRESHNESS. Every row carries Last_Indexed_Time - the newest fill recorded so far in ANY
market - and Data_Lag_Minutes, how far that is behind the clock (usually well under
half an hour, occasionally hours). Fills after Last_Indexed_Time are not visible yet.
If the newest Time on the page is close to Last_Indexed_Time the market is active up
to the latest recorded data; if it is far earlier, the market itself went quiet. A
narrow after_time close to now can come back empty only because the data has not
arrived yet.
To identify addresses, pass the returned Trader / Counterparty values to
labels_for_addresses.
Polymarket outcome holders
CURRENT HOLDERS of ONE Polymarket outcome — who is holding "Yes" (or "No", or any
named outcome) in a market right now, largest position first, with each holder's
share balance, its % of the outstanding shares, and when they first acquired it.
NOT who traded the most → use polymarket_top_traders.
NOT the price / implied probability of the outcome → use polymarket_market_odds.
NOT one wallet's own trade history → use polymarket_trader_activity.
NOT the individual fills of a market → use polymarket_market_trades.
Polymarket on Polygon; positions measured from on-chain share movements, history from
September 2025 onward.
HOW TO CALL IT: pass `question_id` (from polymarket_find_markets, or
polymarket_market_info) plus the outcome you care about — either `outcome` as the
label shown for that market ("Yes", "No", a team or candidate name;
case-insensitive), or `outcome_asset_id`, the exact id polymarket_market_info
returns for each outcome. Give neither and the market's FIRST outcome is used;
every row names the outcome it actually reports.
Balances are rebuilt from every recorded movement of that one outcome share —
purchases, sales, shares created when a full set is minted, shares destroyed on
redemption, AND plain wallet-to-wallet transfers, which order data alone cannot
see and which dominate the very largest positions.
WHO THESE ADDRESSES ARE: the holder of record is very often a PROXY CONTRACT
operated on a user's behalf, or a market-making wallet — in a typical market
several of the biggest holders are two wallets of the same operator passing
shares between themselves. Do not present them as individual bettors. Label them
with labels_for_addresses first, and use matic_transfers_in / matic_transfers_out
to see where a position came from.
READ WITH THE ROW: `Supply_Outstanding` is every share of that outcome currently
in existence, so `Share_Pct` is a genuine concentration figure. `Holder_Count` is
how many addresses hold a positive balance. `Scanned_From` is the point the
history was rebuilt from — the market's registration, unless you overrode it.
`Negative_Balances` should be 0; a value above 0 means that many addresses show
more shares leaving than arriving, so the balances and the total are only
approximate for this market — say so instead of quoting exact figures. If it is
large, `Supply_Outstanding` and `Share_Pct` can even come back NEGATIVE: that is
the unmistakable sign the figures are net flow over a shortened history rather
than holdings, and it happens when `after_time` was set past the market's start.
AFTER A MARKET RESOLVES the winners redeem, which destroys their shares, so the
list shrinks over time and increasingly shows only holders who have not redeemed
yet. For a live picture of conviction, ask about an open market.
SPEED: the position history is rebuilt from the market's creation, so the call
costs more the OLDER the market is — near-instant for a market a few days old,
tens of seconds for one that has been open for months, where it may time out
(retry, or ask about a younger market). `limit` does not change the cost.
Polymarket settlements
REDEMPTIONS, SPLITS and MERGES on PREDICTION MARKETS (Polymarket, on Polygon) — the
collateral side of a position, for ONE market (question_id), ONE wallet (holder), or
both. Use for "who cashed out when <market> resolved", "how much did <wallet> redeem",
"what did this wallet win and lose", "when did this market pay out". These are NOT
buys and sells: for trades use polymarket_market_trades (one market) or
polymarket_trader_activity (one wallet); for rankings use polymarket_top_markets /
polymarket_top_traders.
Every event here is read directly from the chain.
LOSING REDEMPTIONS ARE INCLUDED, AND MUST NOT BE DROPPED SILENTLY. One redeem
transaction emits one record per market it touched, and a market whose shares turned
out worthless pays 0 collateral for 0 shares. Those records are about a THIRD of all
redemption records, and they are precisely the markets the holder LOST. They come
back with Zero_Payout = 1 and an empty Outcome, so they are easy to see and easy to
count. include_empty = 1 (the default) returns them; include_empty = 0 returns only
the records that paid something — reasonable when the question really is "what did
this wallet collect", but a payouts-only list is NOT the wallet's settlement history
and must never be presented as one. Splits and merges are effectively never zero, so
the setting only ever changes redemptions.
The three event types:
- Redemption — the market has RESOLVED and the holder turned outcome shares back into
collateral. This is the payout, and it is the only one of the three that implies the
market is settled. A redemption that paid nothing means the holder's shares lost.
- Split — the holder locked collateral to mint one complete set of outcome shares
(one of every outcome). This is how shares are created without buying them, and it
moves no money between traders.
- Merge — the reverse: a complete set of outcome shares burned back into collateral.
This is also how a fully hedged holder exits without selling.
Splits and merges are position plumbing, mostly done by market makers. Do NOT add
them to trading volume and do NOT read a large Split figure as a large bet.
Returns per event: time, event type, holder, question id and title, the outcome the
record itself moved, the outcome the market resolved to, collateral USD together with
Settlement_Collateral_Symbol + Settlement_Collateral_Token (the collateral token that
record moved - settlement records use several USD-pegged tokens and wrappers, which can
differ both from the market's registered collateral and from the token its orders trade
in), outcome shares, a Zero_Payout flag, the outcome token ids the event touched, and the
transaction hash. Feed holders to labels_for_addresses to identify them.
FRESHNESS. Every row carries Last_Indexed_Time - the newest settlement record recorded
so far for ANY market - and Data_Lag_Minutes, how far that is behind the clock
(usually well under an hour, occasionally hours). Redemptions, splits and merges after
Last_Indexed_Time are not visible yet, so a short recent window can come back empty
because the records have not arrived, not because nobody settled.
READING THE OUTCOME COLUMNS. Outcome is the outcome THIS record moved; on a paying
redemption that does not name one it is filled in from the market's resolution, and it
is deliberately left EMPTY on a zero-payout redemption (the holder did not redeem the
winning outcome — that is why nothing was paid) and on a Split or a Merge (which touch
every outcome at once). Market_Resolved_Outcome is the market's own resolved outcome
and is reported on every row, whatever the record itself did.
A redemption's collateral is the payout RECEIVED, not profit — what the holder paid
for those shares is not in this record, and a zero payout is not the size of the loss
either. Never present a redemption total as a gain. For what was paid, and for the
trading fees charged on the way in and out, use polymarket_trader_activity or
polymarket_market_trades; settling a position is itself free of charge.
The holder recorded on-chain is frequently a proxy or relayer contract acting for a
person rather than that person's own wallet, so treat Holder as the settling account
and not as a confirmed identity, and say so when reporting who redeemed.
You MUST pass question_id or holder (or both); with neither, this returns nothing
rather than looking at the whole history. With question_id it is cheap over the
market's entire lifetime, so leave window_hours at 0 there. A holder-only lookup has
to work through the time window instead, so its cost scales with window_hours, not
with limit — keep it near the 7-day default and widen only when needed. May time out
on very wide windows — retry with a smaller window_hours.
Polymarket top markets
Leaderboard of PREDICTION MARKETS (Polymarket, on Polygon) by traded USD volume in a
recent window — which questions people are actually betting on right now, ranked. Use
for "hottest / most traded prediction markets", "biggest Polymarket markets today",
"what is Polymarket trading today", and — with query or category — "the biggest
BITCOIN markets this week", "most traded election markets today".
NOT a wallet ranking (use polymarket_top_traders),
NOT the individual trades of one market (use polymarket_market_trades), NOT a market
you already know by name (use polymarket_find_markets), and NOT token/DEX trading —
trending_tokens and top_traders_by_token cover swaps of ERC-20 tokens, an entirely
different market.
Every figure here is computed from the market's own settled on-chain orders.
READ THE FIRST ROW BEFORE ANYTHING ELSE. Every response starts with one row where
Row_Type='scope'; the ranked markets follow as Row_Type='market'. Every row carries
Window_Start / Window_End (the period ranked, ending now), Last_Indexed_Time (the
time of the newest order recorded so far, across all markets) and Data_Lag_Minutes
(how far that is behind the clock), and the scope row's Note spells them out. Orders
reach this data some minutes after they happen - usually well under half an hour,
occasionally several hours. So a response with ONLY the scope row is not by itself
"no trading": if Last_Indexed_Time is earlier than Window_Start, the window's orders
have simply not arrived yet - say so and widen window_hours, never report the markets
as quiet. If Last_Indexed_Time falls inside the window, nothing matched. On a short
window a Data_Lag_Minutes that is a sizable share of the window also means its totals
are understated.
Each market row returns: the question id (the key every other polymarket_* tool
takes), its title, order count, USD volume, outcome shares traded, volume-weighted
average price, distinct trading wallets, number of outcomes, the trading fees charged
on the market in the window, Trade_Collateral_Symbol + Trade_Collateral_Token (the
collateral token the market's orders settle in), and the first/last trade time in the
window. The collateral a market was REGISTERED with (Registered_Collateral_* in
polymarket_market_info / polymarket_market_odds) can be a different token; compare
the token addresses, not just the symbols - two different contracts can both be
called USDC.
PRICE IS A PROBABILITY. Every outcome trades between 0 and 1 and is the market's
implied chance of that outcome. Avg_Price here is blended across ALL outcomes of the
market, so on a two-outcome market it sits near 0.5 by construction — it is a
volume-weighted average cost, NOT the market's odds. For the odds of each outcome use
polymarket_market_odds.
VOLUME IS NOT PROFIT. These are gross USD amounts that changed hands; no profit,
loss or open position is computed anywhere in this tool.
A matched trade leaves order records for the resting orders it filled and one for
the order that took the liquidity. The two classes do NOT mirror each other one to
one - a match can pair orders on opposite outcomes at complementary prices - so
counting both is NOT a fixed multiple of the resting-order figure: it is not "double",
and the ratio moves from market to market and window to window. By default only the
resting-order side is counted - order_side='maker' - and that is the basis to use for
market volume. Use order_side='taker' to rank by the liquidity-taking side instead,
or 'both' only if you deliberately want every order record. All three are real
orders; this is a choice of which side to measure, not a filter for bad data.
FEES_USD DOES NOT MOVE WITH order_side. The trading fee is charged to the side that
takes liquidity, in the market's collateral currency, and the resting orders it
matched are not charged for the same fill — so unlike volume, a fee is never counted
twice and never needs a side chosen for it. It is the market's whole fee for the
window EXCEPT for the identity-less orders described below, which are excluded from
this ranking and therefore from this total as well. Fees are a recent
feature of these markets: a market that traded before they existed shows 0, and that
is a real 0, not missing data. Fees_Usd is revenue taken by the venue, not a cost that
has been subtracted from Volume_Usd.
RANK A SUBJECT WITH query AND/OR category. query matches the market title as a
substring; category picks one of sports / crypto / esports / politics / weather /
stocks / mentions / entertainment / other. Setting both applies both conditions.
"Top bitcoin markets over 7 days" is then a single call — do NOT pull a large limit
and filter the titles yourself. polymarket_find_markets is the tool for BROWSING a
subject (it orders by creation time and knows about open vs resolved); this tool is
the one that orders by money. A filter narrows the RESULT, not the work: query is
free, but category has to consult market registrations as well, which makes it
several times slower than the same call without it. Keep the window small when you
set a category.
ORDERS WITH NO MARKET IDENTITY ARE EXCLUDED, AND THE LOSS IS NOT ALWAYS SMALL. Some
order records carry no question id; they all share the empty one, so ranking them
would produce a single nameless entry aggregating unrelated markets, which on a
window reaching into mid-2026 would outrank every real market. They are dropped
instead. On recent windows that costs almost nothing, but the further back the
window reaches into 2026 the larger the share of such orders becomes, and on some
individual markets it was most of their volume — so a market can be ranked well
below its true size or pushed off the list entirely. Prefer recent windows for
ranking, and read a specific market's real total with polymarket_market_odds, which
counts those orders through the outcome asset id.
COST SCALES WITH THE WINDOW, NOT WITH limit — this ranking has to look at every
market, so a 7-day window is several times the work of the 24-hour default however
small a limit you ask for. Keep window_hours as small as the question allows, and
expect a window that ends far in the past to cost more than a recent one of the same
length. May time out on very wide windows — retry with a smaller window_hours.
Polymarket top traders
Leaderboard of WALLETS by traded USD volume on PREDICTION MARKETS (Polymarket, on
Polygon) -- either across every market in a recent window, or inside ONE market when
you pass question_id. Use for "biggest prediction-market traders", "who are the whales
in <market>", "top Polymarket wallets". NOT a ranking of markets (use
polymarket_top_markets), NOT one wallet's own breakdown (use
polymarket_trader_activity), and NOT token/DEX traders -- top_traders_by_token,
top_traders_by_network and top_traders_by_pair rank wallets by ERC-20 swap volume, an
entirely different market.
Every figure here is computed from settled on-chain orders.
RANKED BY VOLUME, NOT BY PROFIT. "Top" here means most USD traded. This tool computes
no profit, loss, win rate or open position, and a wallet at the top of it may well be a
market maker that is flat or losing. Never describe these wallets as the most
successful or the most profitable.
READ THE FIRST ROW BEFORE ANYTHING ELSE. Every response starts with a row where
Row_Type='scope' whose Note states exactly what was ranked and over what period, and
whether the window you asked for had to be narrowed. A wallet absent from the list is
absent FROM THIS WINDOW; it is not evidence that the wallet does not trade. To ask
about one specific wallet, call polymarket_trader_activity or
polymarket_trader_summary instead of scanning a leaderboard for it.
The remaining rows have Row_Type='trader', one per wallet: order count, total / buy /
sell USD volume, how many of its orders took liquidity rather than resting on the book,
the trading fees the wallet paid, how many distinct outcome tokens it traded, and its
first and last trade time in the window. Feed the returned addresses to labels_for_addresses to identify them.
Outcome_Tokens counts OUTCOMES, not markets -- a wallet that traded both sides of one
two-outcome market counts 2 -- so treat it as a diversification signal, not a market
count.
EVERY ORDER IS COUNTED ONCE, UNDER THE WALLET THAT PLACED IT -- orders where a wallet
was merely someone else's counterparty are not added to its total, and the exchange
contracts themselves never appear here, because they place no orders of their own.
Buy_Usd and Sell_Usd split a wallet's own orders by direction. On these markets a
position is very often exited by BUYING the opposite outcome rather than by selling the
one held, so a heavy-buying, barely-selling wallet is normal and does NOT mean it never
closed anything.
FEES_PAID_USD IS WHAT THE WALLET PAID TO TRADE, in the markets' collateral currency.
The fee is charged to the owner of the order, and every row here is one of this
wallet's own orders, so the total is complete for the window. It is a cost, not
volume - a wallet high on volume and high on fees is paying to cross the spread, and
a wallet high on volume with almost no fees is providing the liquidity instead.
Fees are a recent feature of these markets, so an older window shows a real 0.
COST SCALES WITH THE WINDOW, NOT WITH limit, AND THE ALL-MARKET WINDOW HAS A CEILING.
With question_id set the ranking is cheap at any window, whole history included. Without
it, every order in the window has to be read: roughly a second for 24 hours, a few
seconds for 7 days, ten to forty seconds for 30 days, and up to a minute or two for the
maximum of 2160 hours (90 days). A LONGER WINDOW THAN 90 DAYS IS NOT AVAILABLE for an
all-market ranking and is silently impossible to compute in time; ask for it and you get
the 90-day answer with the scope row saying so. For anything wider, rank inside a single
market with question_id, or ask about individual wallets. May time out at the widest
windows -- retry with a smaller window_hours.
ORDERS ARRIVE WITH A DELAY. Every row carries Last_Indexed_Time (the time of the newest
order recorded so far, across all markets) and Data_Lag_Minutes (how far that is behind
the clock) - usually well under half an hour, occasionally several hours. If
Last_Indexed_Time is earlier than Window_Start, a ranking with no wallets means the
window's orders have not arrived yet, NOT that nobody traded: say so and widen
window_hours. On a short window a large Data_Lag_Minutes also means the totals are
understated.
Polymarket trader activity
Everything ONE wallet did on PREDICTION MARKETS (Polymarket, on Polygon): its own
orders, broken out per market and per outcome, with how much it bought and sold in
USD, the outcome shares, and the average price it paid and received. Use for "what has
<wallet> been betting on", "which prediction markets does this address trade", "this
wallet's Polymarket history". NOT that wallet's token/DEX swaps -- trader_activity,
trader_profile and trader_positions cover ERC-20 swaps, an entirely different market.
For a one-line whole-history card of the same wallet use polymarket_trader_summary; for
a ranking of MANY wallets use polymarket_top_traders; for redemptions, splits and merges
(which are not trades) use polymarket_settlements; for the raw order-by-order tape of
one market use polymarket_market_trades.
Every figure here is computed from this wallet's own settled on-chain orders.
READ THE FIRST ROW BEFORE ANYTHING ELSE. Every response starts with a row where
Row_Type='scope'; its Note states the exact period the figures cover, and its
Window_Start / Window_End bound them. A RESULT WITH ONLY THAT ROW MEANS "THIS WALLET
PLACED NO ORDERS IN THAT PERIOD" -- it does NOT mean the wallet never traded, and you
must never report it as "no activity", "not a trader" or "address not found". Re-run
with window_hours=0 to search this wallet's whole recorded history (slower but
conclusive), or call polymarket_trader_summary. Only an empty result from a
window_hours=0 call means the wallet has never placed a prediction-market order.
The remaining rows have Row_Type='market', one per (market, outcome): question id,
title, outcome label, order counts split into buys and sells, buy/sell/total USD,
shares bought and sold, net shares, the average buy price and the average sell price,
how many of the orders took liquidity rather than resting on the book, the trading
fees this wallet paid, and the first/last trade time.
NAMES CAN BE MISSING; IDENTITY NEVER IS. Some order records carry no market title or
outcome name. Name_Source tells you what you are looking at: 'as-traded' = the names
came from the order records themselves; 'recovered' = the records were unnamed and the
title and outcome were restored from the market's own registration; 'unresolved' =
unnamed and no registration exists, so Title reads '(unidentified market)' and the
outcome token id in Asset_Id is the only identifier. An 'unresolved' row is a REAL
market with real volume -- report it as an unnamed market, never drop it, and never
merge several of them together.
COUNTED ONCE, AS THE WALLET'S OWN ORDERS. Every order this wallet placed is here,
whether it rested on the book or took liquidity -- Taker_Orders says how many did the
latter. Orders where this wallet was merely someone else's counterparty are NOT counted
again: that is the same trade seen from the other side.
PRICE IS A PROBABILITY between 0 and 1 -- the market's implied chance of that outcome.
Avg_Buy_Price / Avg_Sell_Price are this wallet's own volume-weighted execution prices
for that one outcome, so a wallet that bought "Yes" at 0.20 and sold it at 0.80 traded
the same outcome at very different implied odds.
BUYING AND SELLING ARE NOT SYMMETRIC HERE. On these markets a position is very often
exited by BUYING the opposite outcome rather than by selling the one you hold, so a
wallet can show heavy buying and almost no selling while still closing positions. Never
read a low Sell_Usd as "never took profit" -- check the complementary outcome of the
same market, and check polymarket_settlements for merges and redemptions.
VOLUME IS NOT PROFIT, AND Net_Shares IS NOT A POSITION. This tool reports what was
traded, never what it was worth afterwards: no realized or unrealized P&L is computed
anywhere. Net_Shares is simply shares bought minus shares sold WITHIN THIS WINDOW from
trading only -- a wallet also acquires and destroys outcome shares by splitting, merging
and redeeming collateral, and none of that is a trade, so Net_Shares is NOT the wallet's
holdings and must never be presented as one. Report it as trading flow, and use
polymarket_settlements to see the splits, merges and redemptions.
FEES_PAID_USD IS EXACT AND COMPLETE for this wallet. The fee is always charged to the
owner of the order, and these rows are this wallet's own orders, so the figure is the
whole fee it paid on this market and outcome, in the market's collateral currency -
it does not depend on which side of a match the order was. It is a COST: subtract it
when reasoning about what the wallet made, and never add it to Volume_Usd. Fees are a
recent feature of these markets, so older activity shows a real 0.
COST SCALES WITH THE WINDOW, NOT WITH limit. With question_id set the call is cheap at
any window, whole history included. Without it, the work is proportional to the window:
about a second for a day, a few seconds for a week, and roughly half a minute for
window_hours=0 (the whole history) -- worth paying whenever a thin answer would
otherwise be mistaken for no history, but not a default. May time out on very wide
windows -- retry with a smaller window_hours.
ORDERS ARRIVE WITH A DELAY. Every row carries Last_Indexed_Time (the time of the newest
order recorded so far, across all markets) and Data_Lag_Minutes (how far that is behind
the clock) - usually well under half an hour, occasionally several hours - and the scope
row's Note repeats them. An order newer than Last_Indexed_Time is not visible yet, so if
Last_Indexed_Time is earlier than Window_Start, only the scope row coming back means the
data has not arrived, NOT that the wallet was inactive: say so and widen window_hours.
Polymarket trader positions
What ONE wallet actually HOLDS on PREDICTION MARKETS (Polymarket, on Polygon) right
now, per market and per outcome, with what it paid, what it has already taken off the
table, and what the rest is worth. Use for "what are <wallet>'s open positions", "is
this wallet up or down on <market>", "how many shares does it still hold", "what did it
cash out". NOT a list of its orders — polymarket_trader_activity is the trading tape,
and its Net_Shares is trading flow only, never a holding.
Every share balance here is the wallet's real on-chain outcome-token balance, not an
estimate rebuilt from orders.
Returns one row per (market, outcome): question id, title, outcome label, outcome
token id, shares held, shares bought and sold, shares minted by splitting collateral,
shares merged back, shares redeemed after resolution, the shares that arrived or left
without a trade, buy/sell USD and the wallet's own average buy and sell price, the
last traded price of that outcome, whether the market resolved and what it paid,
market value, cost basis, realized and unrealized P&L, and first/last activity.
SHARES ARE EXACT, P&L IS NOT ALWAYS AVAILABLE — and when it is not, this tool returns
an empty value rather than a guess.
- Shares_Held is the wallet's true on-chain balance of that outcome token. It counts
every way shares move: trades, splitting collateral into a full set, merging a full
set back, redeeming after resolution, and plain wallet-to-wallet transfers.
- Shares that arrived or left WITHOUT a trade carry no price, so no cost can be put on
them. Shares_Received_Untraded and Shares_Sent_Untraded report exactly how many, and
Cost_Basis_Complete says whether every share in the row is accounted for. When it is
0, Avg_Cost, Cost_Basis_Usd, Realized_Pnl_Usd and Unrealized_Pnl_Usd are EMPTY on
purpose. Roughly a quarter of open positions land there — never fill the gap in.
- Cost is AVERAGE cost, not FIFO: every share acquired is pooled at one blended price.
- Shares minted by splitting collateral are costed at an equal share of the collateral
(0.50 on a two-outcome market), and merging back credits the same.
- FEES ARE NOT DEDUCTED ANYWHERE. Fees_Recorded is the fee charged to this wallet as
the OWNER of those orders, summed over this outcome. It is a taker charge: an order
that took liquidity almost always pays one, a resting order almost never does, and
orders charged nothing carry no fee record at all. It scales with the SIZE of the
trade rather than with the money at stake, so it is not a percentage of Buy_Usd or
Sell_Usd. Subtract it yourself if you want a net figure, and say that you did.
PRICE IS A PROBABILITY between 0 and 1 — the market's implied chance of that outcome.
A resolved market pays 1 per winning share and 0 per losing share, so Payout is 1 or 0
there and Market_Value_Usd uses it; an unresolved market is valued at Last_Traded_Price,
which is the last price anyone traded that outcome at, not a quote or a mid.
A wallet is normally left holding a dust remainder of a position it has fully exited,
and it also keeps worthless losing shares it never bothered to redeem. Both are real
holdings and both appear here; judge a position by Market_Value_Usd, not by share count.
Coverage limits worth stating to the user when they matter: history begins
2025-09-01, so a position opened before that is incomplete or missing. A small share of
outcome tokens cannot be tied back to a market at all — those rows still carry exact
shares and exact trade figures, but come back with an empty question id, title and
outcome, and no resolution. Redemptions and merges done for the wallet by a
protocol helper contract show up as shares leaving without a trade.
RANKING LOOKS AT THE WALLET'S ~400 LARGEST POSITIONS, then sorts those by whatever
sort asks for; a wallet with more positions than that will not have its smallest ones
considered. Cost grows with how many markets the wallet has touched, not with limit,
and status=closed or all is several times the work of the default. May time out on a
very busy wallet — retry with status=open, or set question_id.
Polymarket trader summary
LIFETIME CARD for ONE wallet on PREDICTION MARKETS (Polymarket, on Polygon) — a
single row covering its ENTIRE history, with NO time window to pick: first and last
trade, total orders, total USD traded, how many markets and outcome tokens it
touched, its buy/sell and taker/maker split, and its biggest single market. CALL
THIS FIRST to establish whether a wallet has EVER traded prediction markets and when
it was last active, before any windowed query.
NOT a per-market / per-outcome breakdown → use polymarket_trader_activity.
NOT a ranking of many wallets → use polymarket_top_traders.
NOT redemptions, splits or merges → use polymarket_settlements.
NOT token/DEX swaps → trader_profile, trader_positions and trader_activity cover
ERC-20 swaps, an entirely different market.
Every figure here is computed from this wallet's own settled on-chain orders.
ALWAYS RETURNS EXACTLY ONE ROW, INCLUDING FOR A WALLET THAT NEVER TRADED. Because
this tool has no time window, Orders = 0 with empty First_Trade / Last_Trade means
this wallet has never had a prediction-market order filled — full stop. It never
means "nothing in the window". That distinction is the whole point of this tool: a
windowed lookup returns exactly the same emptiness for a wallet with a year of
history that simply stopped trading, and that reads as fact when it is not.
Conversely, Orders = 0 does NOT prove the wallet never touched prediction markets: a
wallet can split, merge or redeem outcome shares without ever placing an order, and
none of those are trades. Check polymarket_settlements before calling a wallet
uninvolved.
COUNTED ONCE, AS THE WALLET'S OWN ORDERS. Every order this wallet placed is here,
whether it rested on the book or took liquidity — Taker_Orders and Maker_Orders
split them, and both are its own orders. Orders where this wallet was merely someone
else's counterparty are NOT counted again: that is the same trade seen from the
other side.
VOLUME IS NOT PROFIT. This card reports what was traded, never what it was worth
afterwards: no realized or unrealized profit, loss, win rate or open position is
computed anywhere, and none can be inferred from these columns. A wallet with a huge
Volume_Usd may be a market maker that is flat or losing. Never present this as
performance, and never call a wallet here successful or profitable.
BUYING AND SELLING ARE NOT SYMMETRIC. A position is very often exited by BUYING the
opposite outcome rather than by selling the one held, so a wallet can show heavy
buying and almost no selling while still closing positions. Never read a low
Sell_Usd as "never took profit".
A FEW FILLED ORDERS CANNOT BE TIED TO A MARKET. The market is recovered from the
outcome token whenever the fill itself does not name one, which resolves almost all
of them; whatever is left is reported as Orders_Without_Market /
Volume_Usd_Without_Market. Those are real trades and stay inside Orders, Volume_Usd,
Shares, the buy/sell and taker/maker splits and the first/last trade times — they
are only missing from Markets and from the Top_Market_* columns. Mention them when
they are a meaningful share of the total, and expect a wallet whose orders are all
unresolvable to show Orders > 0 together with Markets = 0 — that is this one
situation, never a sign that the wallet did not trade.
Reading the numbers:
- Avg_Price is USD per share, 0..1, so it is the average implied probability across
everything this wallet traded — a portfolio-wide average, not a price for any one
market, and only loosely meaningful on its own.
- Days_Since_Last_Trade is the dormancy signal: 0 means it traded today.
Active_Span_Days is first trade to last trade, NOT the number of days it was
actually active.
- Markets counts distinct markets; Outcome_Tokens counts distinct outcome tokens, so
a wallet that traded both sides of one binary market shows 1 market and 2 outcome
tokens.
- Top_Market_* is the single market with the most USD traded by this wallet. Pass its
Question_Id to polymarket_market_odds, polymarket_market_info or
polymarket_trader_activity.
- Volume is in USD-pegged collateral. Trade_Collaterals lists every collateral token
this wallet's orders settled in, each as {symbol, token} - the same identity as
Trade_Collateral_Symbol / Trade_Collateral_Token in polymarket_market_odds and
polymarket_top_markets. A wallet active before and after a collateral switch lists
more than one; compare token addresses, since two contracts can both be called USDC.
- Outcome names are deliberately not on this card; get them per market from
polymarket_trader_activity.
COST: THIS READS THE WALLET'S WHOLE HISTORY, and there is no window to narrow it —
by design, because a window is exactly what makes a dormant wallet look like it
never traded. Expect roughly 10-40 seconds. A wallet that stopped trading long ago
costs no more than an active one, and usually less. Call it once per wallet and
reuse the answer; for a per-market or recent-activity view switch to
polymarket_trader_activity, which is far cheaper over a short window. May time out
under load — retry.
Pool recent trades
INDIVIDUAL DEX TRADES (swaps) of a TOKEN across all its pools, or of ONE
POOL — a trade feed, one row per swap: time, side, trader,
base / quote amounts, USD size, price, DEX, pool and tx hash. Filters: time
window, side (buy / sell), minimum USD size, trader; newest first, oldest
first or largest first; pages with a cursor. Use for "recent trades of
<token>", "trades of <token> between two dates", "largest buys of <token>
today", "latest swaps in <pool>", "the first trades of <token> / <pool>",
"did address X trade <token>". NOT an aggregate (use token_dex_venues,
token_trade_bars or token_ohlcv).
Covers rare / newly-launched tokens.
SUBJECT: pass `token_address` (every pool in which that token is the traded
side) and/or `pool_address` (one pool); at least one is required. With both,
the token's swaps in that pool. `trader` narrows to one trader address.
WINDOW: `after_time` / `before_time` (UTC — "2026-09-15 08:00:00", a date,
or unix seconds) select [after_time, before_time). Without after_time the
window is the `window_hours` (default 168 = 7 days) before before_time or
now; after_time takes precedence. Trades are kept about 30 days. An EMPTY
result means no swap matched in the window — widen it (after_time up to 30
days back) before concluding the token or pool is inactive.
ORDER & PAGING: `sort` = recent (default, newest first), oldest (oldest
first — the first swaps of the window; with after_time, the first swaps
after that moment) or usd (largest USD size first, within the window). Each
recent- or oldest-sorted row carries a `Cursor`; pass the LAST row's Cursor
as `cursor` with the same sort to get the next page — older swaps for
recent, newer ones for oldest — no swap is skipped or repeated, even when
many share one second. With sort=usd a cursor pages newest-first, and a
usd-sorted page carries an empty Cursor. For a long newest-first walk pass
after_time: without it the window start is recomputed from the current
time on every page. For a token's very first trades pass after_time about
30 days back (the start of the history) with sort=oldest; for the first
trade itself of one token or a list, token_launch_stats is cheaper.
Largest-first ranks every swap in the window, so on the busiest tokens
(WSOL, USDC, WETH) keep that window to hours: 7 days of WSOL take seconds.
Amount_Usd values each swap at the lower of its two priced sides, so a
broken token price cannot inflate it (in USD, rounded to cents; NULL when
neither side is priced);
`min_trade_usd` filters on that value. Price_Usd is the token's USD price in
the swap, Price_Quote the price in the quote token. Swaps recorded twice by
the indexer are returned once (about 1% of Solana rows); two genuinely
identical swaps by the same trader in one transaction and pool also count
once.
`Symbol_NonAscii` = 1 flags a `Token_Symbol` that is not plain ASCII. That
is normal for CJK / emoji token names, but it is also how a scam token
impersonates a major one: Cyrillic or Greek look-alike letters make a fake
`USDT` / `SOL` / `BTC` read identically to a human. Never treat such a
token as the asset it resembles — say the symbol is a look-alike.
Symbols longer than 32 characters are cut and end in `…` (spam tokens carry
symbols of up to 32,000 characters).
Price at
USD PRICE AT A PAST MOMENT - what a token or coin was worth when a transfer happened: up to
500 (asset, time) pairs on ONE chain per call. Use it to value transfers, fees and holdings
at the time they occurred (tax and accounting reports, cost basis), years back.
NOT a time series - use token_ohlcv / currency_ohlcv; NOT the latest price - use token_price
/ currency_price.
`chain` is exactly one of: eth, bsc, matic (Polygon), arbitrum, base, optimism, robinhood,
arc, tron, solana, btc, zec, ltc, doge, dash, bch, xrp, xlm, ada (lower case; any other
spelling is refused). `items` is a list of asset@time pairs separated by "|", for example
native@2025-01-15 12:00:00|0xdac17f958d2ee523a2206206994597c13d831ec7@1736942400. The asset
is a token contract (EVM 0x-hex, Tron base58, Solana mint) or the word native for the chain's
own coin; the time is UTC, as YYYY-MM-DD HH:MM:SS or 10-digit unix seconds (up to
4294967295). Identify a token by its contract, never by its symbol.
What is covered: on the EVM chains the native coin and tokens by contract, years of history,
a price every 5 minutes for the native coin and the largest tokens and ONE price per UTC day
for every other token. On tron TRX and about 200 major tokens, one price per day. On solana
SOL and several thousand of the most traded mints, a price every 10 minutes, and no price
when the token did not trade in the hour before. On btc, zec, ltc, doge, dash, bch, xrp, xlm
and ada the native coin only, hourly, back to 2013-2017; tokens issued on those chains are
not priced. USDC on Arc (the native coin and 0x3600...0000) is priced as USDC on Ethereum:
ask chain=eth with the contract the Note gives.
One row per pair, in the order given - a pair given twice is answered twice, so row N
always answers pair N: Price_Usd and Status - ok; no_price (Note says why - nothing
recorded, a future time, an invalid or out-of-range date, an asset this chain does not
price);
stale (the price had not changed for 2 days, or for 1 hour on an asset priced every 5
minutes - the token had probably stopped trading, do not treat it as a market price);
suspect (more than twice, or less than half, the price a day earlier AND a day later - a data glitch,
check before using); depeg (USDT, USDC or DAI outside 0.98-1.02). A missing price is never
0 and never today's price - report it as unpriced, do not fill it in. Resolution is how
fine the price is (5m, 10m, 1h, 1d); Source is dex (on-chain trades) or vendor (market
feed); Fill (vendor only) is origin, interpolate or extrapolate. Price_Time and
Age_Seconds say which price point answered: always on the vendor chains (the hour), with
with_age=1 on the EVM chains and tron. Up to 500 pairs; pairs after the 500th are ignored -
compare Items_Requested with Items_Used.
Profitable traders by token
Rank traders of ONE token by ESTIMATED P&L over a window — a cash-flow
estimate, see below. Use for "most profitable traders / smart money / who
made money on <token>"; for net accumulation use
accumulating_traders_by_token, for raw volume top_traders_by_token.
Estimates each trader's P&L over the window as:
Net_Cash_Flow_Usd = Sell_USD − Buy_USD (a cash flow, not profit)
Unrealized_Usd = Net_Base × the token's last seen USD price: the
market value of the window's net position (negative
when the wallet sold more than it bought), not a profit
Total_Pnl_Usd = Net_Cash_Flow_Usd + Unrealized_Usd (= Cash_Flow_Pnl_Usd)
Realized_Usd is kept for compatibility and equals Net_Cash_Flow_Usd —
sells minus buys in USD, NOT profit (deprecated: use Net_Cash_Flow_Usd;
removal would be a breaking change). Total_Pnl_Usd here assumes the wallet
held none of the token when the window started: tokens bought before the
window and sold inside it count as full proceeds minus their value today.
It is NOT the Total_Pnl_Usd of trader_positions (average cost, positions
opened inside the window: Realized_Pnl_Usd + Unrealized_Pnl_Usd), which is
the figure to quote for a wallet's profit — this tool is the screen that
finds the wallets. Gas, slippage and transfers in / out that are not
swaps are ignored.
Trader_Address is the transaction SIGNER on the EVM chains (a
transaction relayed for a smart account counts for that account). On
Solana it is the signer that owns the tokens of this swap or of another
swap in the same transaction — on a gas-sponsored swap (an app pays the
fee and the user co-signs) the user, not the fee payer — else the fee
payer. On Tron it is often a router or other contract the swap passed
through, not the signing account. A bot may sign while its own contract holds
and moves the tokens — to find that contract, open one of
the wallet's Tx_Hash values (trader_trades lists them) with the chain's
tx_transfers tool (eth_tx_transfers, bsc_tx_transfers, …); transfer
tools run on the signer then show few or no outgoing transfers.
Going deeper on the wallets this returns: trader_positions gives each
wallet's per-token average buy / sell price, realized P&L at average cost,
holding time and open position (up to 50 wallets per call; pass this
token as its token filter); trader_profile gives win rate and total
realized P&L across all tokens (up to 50 wallets); trader_trades lists
the individual swaps. For who bought right after the launch use
early_buyers or token_launch_stats (one token, or a given list of up to
50 in `addresses`).
WINDOW: after_time / before_time in UTC; when after_time is empty the
window is the window_hours hours before the end; before_time empty = now.
Trade history reaches back about 30 days.
Only returns traders with Total_Pnl_Usd ≥ `min_pnl_usd`.
TRADE SIZE IS CROSS-CHECKED: a swap has two sides, so each trade is
valued at the more conservative of the two. A token whose USD price is
stale or manipulated — common on brand-new or thin-liquidity contracts —
therefore cannot inflate the USD figures: such a trade is counted at
what the other side of the swap was actually worth. When the two sides
disagree, the inflated one is almost always the traded token, while the
other side of the swap is a liquid asset whose price is sound — so the
lower figure is what actually changed hands, not a guess. Only when
NEITHER side carries a price is there nothing to report: the USD figures
then come back EMPTY, and you must report that as unavailable (a dash),
never as zero. Unpriced_Trades counts how many of this row's trades had
no price on either side, and Volume_Coverage is the share of trades the
USD totals actually cover (1 = all of them). When Volume_Coverage is
below 1 the USD totals are PARTIAL — say so instead of presenting them
as the full picture. Note that
Last_Price_Usd is the token's last quoted price and is NOT
cross-checked — on brand-new or thin-liquidity contracts it can sit far
from what trades actually cleared at, so any figure derived from it
(position value, unrealized PnL) inherits that error.
Symbols longer than 32 characters are cut and end in `…` (spam tokens carry
symbols of up to 32,000 characters).
Prompt playbook
GUIDED WORKFLOWS (playbooks) for multi-step investigations and dashboards — the step-by-step
instructions behind this server's prompts, returned as a tool so you can use them even when
the client does not let you run prompts. Call it with `playbook` to get the full instructions,
then carry them out with the other tools; call it with an empty playbook to list them.
NOT a data query: it runs nothing itself. For one simple question, call the data tool directly.
A named playbook returns ONE row; the list call returns one row per playbook with Instructions empty.
Available playbooks:
- money_flow — Trace funds across multiple hops
- address_report — Full dossier for ONE blockchain address
- token_chart — Plot a PRICE CHART for a token directly in the chat
- trader_dashboard — Wallet / trader dashboard for ONE address
- token_dashboard — 360° dashboard for ONE token
- compare_assets — Compare 2–5 assets on ONE normalized price chart (% change from the window start) plus…
- market_movers — Market leaderboard for a chain
- risk_screen — Compliance / AML risk screen of an ADDRESS or TRANSACTION
- entity_report — Profile a known ENTITY by label (an exchange, mixer, scam campaign, category, …)
- token_scout — Scout PROMISING tokens
- arbitrage_scan — Spot price DISPARITIES for one asset across chains / venues as arbitrage candidates
- prediction_market — 360° view of ONE prediction market (Polymarket)
- hyperliquid_trader — 360° view of ONE Hyperliquid account
- hyperliquid_market — 360° view of ONE Hyperliquid market
- tax_ledger — TAX / ACCOUNTING LEDGER for a client's wallets
The instructions refer to the playbook's inputs as <argument> (listed in Arguments) — fill
them in from the user's request. Answers instantly and never depends on a data service.
Each row: Playbook, Description, Arguments, Instructions.
Robinhood address flow summary
ADDRESS FLOW SUMMARY / top counterparties: who a Robinhood (robinhood, rh, Robinhood Chain) address sends funds TO and receives funds FROM, in one call — profile
(sent/received transfer counts, distinct receivers/senders) + TOP receivers AND TOP
senders. Collapses address_profile + trace_next_hop(out) + an incoming convergence
into a single call — call this FIRST when triaging a hop. Returns a computed Role:
receive_only (no outgoing transfer in the period) / send_only (no incoming one) /
no_transfers (neither) / consolidator (senders ≫ receivers) / distributor (receivers ≫
senders) / hub (thousands of both — don't trace deeper) / relay. The profile counts
and Role ALWAYS cover all tokens: currency and contract narrow only the top arrays
(robinhood_address_profile applies them to every count). Address labels are not available on this chain —
identify a counterparty from its own profile instead. For raw rows use
robinhood_transfers_in/out; for one direction's full ranking use
robinhood_trace_next_hop. READING THE TOP ARRAYS: one entry per (counterparty, TOKEN)
— the same address repeats once per token it moved. Symbols are not unique; identify a
token by `contract`. On a very high-traffic address (an exchange or bridge hub) this
aggregates a lot of history and can take tens of seconds — narrow it with contract or
currency to one token to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
after_time / before_time bound BOTH the profile counts and the top arrays to one period
(without them both cover the whole history).
Counts and arrays are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with robinhood_tx_transfers, then trace that address
(robinhood_transactions lists where this account's transactions go).
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Robinhood address profile
Robinhood (robinhood, rh, Robinhood Chain) address STATISTICS — successful transfer counts
out/in and distinct counterparties (receivers/senders), across all tokens. Fast triage of an address
during tracing. For one-call triage that ALSO returns the top counterparties,
prefer robinhood_address_flow_summary.
Role from the ratio (cheap triage before flow_edges): senders ≫ receivers =
consolidator / sweep; receivers ≫ senders = distributor; ~1↔1 = relay (layering);
thousands of both = mega-hub (exchange / treasury — don't trace deeper). No outgoing transfers at all =
receive-only and no incoming = send-only, not a consolidator / distributor.
First_Sent / Last_Sent / First_Received / Last_Received = first and last transfer in each
direction. Bound a period with after_time / before_time; restrict to one token with
contract (or currency) to also get Sent_Amount / Received_Amount in that token's units -
without a token filter the amounts are NULL, because different tokens cannot be added.
currency / contract (like after_time / before_time) narrow EVERY count, time and
amount here - unlike robinhood_address_flow_summary, whose profile counts always cover
all tokens.
The counts are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trader (the trading
tools' Trader_Address is the signer) can show few or no outgoing transfers here.
To find the address that really moves its tokens, open one of its Tx_Hash values
from trader_trades with robinhood_tx_transfers, then trace that address
(robinhood_transactions lists where this account's transactions go).
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Robinhood contract creator
WHO CREATED a Robinhood (robinhood, rh, Robinhood Chain) contract, and what a creator deployed. Answers "who created / deployed
this token", "who is behind this contract", "what else did this deployer launch", and
"were these tokens made by the same person" (serial deployers, rug and clone farms).
NOT who funded a wallet → use robinhood_first_funder.
On this chain a token IS a contract, so pass the TOKEN'S CONTRACT ADDRESS in contracts.
TWO WAYS TO CALL IT, pick one - setting both is refused, because the two answer different questions and their shared-creator counters would be mixed:
contracts="0x..|0x.." - up to 50 contracts, one row each: Creator (the address whose
code ran CREATE), Signer, Created_At, Block_Number, Tx, Deploy_Value, Gas_Used and
Deploy_Success. Rows whose creator or signer is SHARED come first: Creator_Shared /
Signer_Shared count how many of the requested contracts have that same creator / signer, which
is what exposes one person behind many tokens. A longer list is not an error: the first
50 distinct addresses are used and the rest ignored - compare Contracts_Requested
with Contracts_Used and split a longer list into several calls.
creator="0x.." - the contracts THAT address deployed, newest first, inside the window (days,
after_time, before_time), at most `limit` rows. Use it on the Creator or Signer a first call
returned, to see the rest of that deployer's output. Creator_Shared is empty in this form -
every row has the same creator by construction, so the counter would only repeat the row count.
Creator_Is_Contract = 1 means the contract was deployed BY OTHER CONTRACT CODE - a
token factory, a launchpad or a DEX pair factory - and then Creator is that factory, which is the
SAME address for every token it ever made, while Signer is the person who asked for it. On a
factory-made token read Signer, not Creator. Deploy_Depth is how deep inside the transaction the
deployment happened (0 = the transaction itself) and Call_Index is the deployment's position in
that transaction - one transaction can deploy several contracts, and Call_Index is what tells
those rows apart when everything else about them looks the same.
Status = NOT_FOUND means no deployment is recorded for that address: it is a plain wallet, not a
contract, or the deployment is older than the recorded history of this chain. Creations is
normally 1; a higher number means the address was created more than once (destroyed and
redeployed), and the row describes the EARLIEST creation.
THE CREATOR'S STORY IS NOT IN THIS TOOL - build it from the returned addresses:
labels_for_addresses (is the creator a known entity, exchange or scammer), robinhood_first_funder
(who funded the creator, and whether several creators share one sponsor), robinhood_address_profile
and robinhood_transfers_in / robinhood_transfers_out (what that wallet does), robinhood_flows_between
(what moved between the creator and the token). The token's own name, symbol, price and market
cap come from find_token_by_address; its first buyers from early_buyers.
Amounts are the native coin, never USD. COST: a contract lookup has to walk every call that address
ever received, so a handful of ordinary tokens answer in a second or two while one exchange-scale
contract can take ~20 s on its own. If you already know roughly when the contract appeared, bound it
with after_time / before_time - that alone took one busy token from 21 s to 2 s. A row-limit error
("Limit for rows ... exceeded") means the batch is too busy: bound it that way, or split the list.
Robinhood find calls
FIND SMART-CONTRACT CALLS on one Robinhood (robinhood, rh, Robinhood Chain) contract by method — "who called method X on contract Y, when, did it succeed"
in one filtered query.
NOT event logs a contract emitted → use robinhood_find_events.
NOT what one address signed or received → use robinhood_transactions.
Returns up to limit calls (default 20, at most 10000), newest first; page back with the last row's
Cursor - each page covers the days window ending there.
Match by method name (e.g. "transfer"), full signature
("transfer(address,uint256)"), or raw 4-byte selector (e.g. "a9059cbb");
optionally restrict to one caller. Searches the last 7 days by default —
set after_time to reach further back. Includes reverted calls when only_successful=0 (with error text).
Then inspect a transaction's fund movements with robinhood_tx_transfers.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Calls inside one transaction come back in no particular order - sort them by
CallPath if you need execution order.
Each row carries the call's decoded input Arguments (Name, Type, Value; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). A method the decoder does not recognise has
no Arguments.
Value is the ETH attached to the call.
Each row: Tx, Time, Block, Caller, Method, Signature, Selector, CallPath, Value, Success, Reverted, Error, GasUsed, Cursor, Arguments, ArgumentCount, ArgumentsTruncated.
Robinhood find events
FIND EVENT LOGS on one Robinhood (robinhood, rh, Robinhood Chain) contract by event name — e.g. every
"Transfer", or a rare custom event. `contract` matches logs that contract
EMITTED ITSELF (a proxy token is found by its public address), plus — when
it is a proxy's implementation — the logs its code emitted for that proxy.
Logs emitted by OTHER contracts it calls are NOT included: a DEX router's
swaps are logged by the pair/pool it calls, not by the router, so
contract=<router> with event=Swap returns NOTHING even when the router
executed thousands of swaps. An empty result for a router, aggregator or
smart wallet does NOT mean there was no activity. To get those logs, pass
the pair/pool (or token) address as `contract`; if it is unknown, list the
router's transactions with robinhood_find_calls (contract=<router>) and
pass their Tx hashes (up to 50, "|"-separated) to robinhood_tx_events with
event=Swap — its CallPath shows which call produced each log. Narrow
matched rows to one emitting contract with `emitter`. Match by event
name or full signature (case-insensitive). Searches the last 7 days by
default — set after_time to reach further back, or page back with cursor:
pass the Cursor value of the LAST row of a page to get the next one, and
each page covers the `days` window ending at that cursor. Unlike
before_time, cursor never skips logs that share a timestamp — a busy
contract can have hundreds in one second. Then inspect a transaction's fund
movements with robinhood_tx_transfers. For finding the CALLS themselves
(method, selector, revert info) use robinhood_find_calls.
Each row carries the log's decoded Arguments (Name, Type, Value, Indexed; integers are
decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). Parsed=0 rows have no Arguments. Argument NAMES
come from one known ABI for the Signature: a contract that emits the same Signature with
other parameter names gets those names too, so a Name can be wrong for this contract -
identify an argument by its position and Type, and check a doubtful one against the raw
Topics/Data. For raw
Topics/Data, or the rest of a cut list, pass the Tx to robinhood_tx_events. Unrecognized events can be found here by `topic0`.
ONE ROW = ONE EVENT LOG. A contract can be called many times inside a single
transaction and each of those internal calls can emit its own logs, so the same
event name legitimately repeats within one transaction - that is NOT duplication.
Rows are told apart by CallIndex (which internal call emitted the log) together
with LogInCall (the log's position inside that call); that pair is unique within
a transaction. To COUNT events, count the returned rows - never de-duplicate on
Tx/Event/Emitter, which would merge genuinely different logs into one.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Rows inside one transaction come back in no particular order - sort them by
CallIndex then LogInCall if you need emission order.
Robinhood first funder
FIRST FUNDER / COMMON SPONSOR of up to 50 Robinhood (robinhood, rh, Robinhood Chain) addresses: for each address the
EARLIEST incoming transfer INSIDE THE WINDOW (by default the last 180 days - not necessarily
the first ever, see WINDOW) - who sent it (Funder), who signed that transaction (Tx_From), when
(First_Time), how much of which token, and the Tx. Answers "who funded these wallets" and "do
these wallets share a sponsor" (sybil, sniper and airdrop-farming clusters).
NOT who deployed a contract → use robinhood_contract_creator.
Pass the addresses separated by "|". A longer list is not an error: the first 50 distinct addresses are
used and the rest are ignored - every row reports Addresses_Requested / Addresses_Used, so compare
them and split a longer list into several calls. One row per used address, and rows whose funder is shared come FIRST:
Funder_Shared = how many of the requested addresses have that same first funder,
Tx_From_Shared = the same count for the transaction's signer - it catches wallets funded
through a public batch-sending contract, where Funder is the contract and the signer is the real
sponsor. Funder_In_Set = 1 when the funder is itself one of the requested addresses (a funding
chain). Via_Internal_Call = 1 marks funding sent by contract code deeper inside a transaction; the transfer a transaction makes itself is top-level, so it reads 0. Incoming_In_Window = how many qualifying incoming transfers the address had in
the window.
WHAT COUNTS AS FUNDING: by default native ETH only (asset_type="native"), including ETH sent by contract code (include_internal=1); set
asset_type="token" or "all", or pin one token with contract, to look at token funding instead.
Zero-amount transfers, mints and self-transfers never count; raise min_amount to skip dust.
WINDOW: the first funding INSIDE the last `days` days (default 180, at most 730)
ending at before_time or now, or starting at after_time within the same limit.
Status = FIRST_IN_WINDOW: the earliest qualifying funding between Window_From and Window_To. It is
the address's first-ever funding ONLY if the address had no activity before Window_From, and this
tool does not check that. To check one address, compare First_Time with the First_Received of
robinhood_address_profile for it (an earlier First_Received means it already received something
before the window). To look further back, call again with before_time set to the row's
Window_From. Status = NO_INCOMING_IN_WINDOW means nothing qualifying
arrived in the window: call again for those addresses with before_time set to their Window_From
to look further back.
COST grows with the number of addresses times the length of the window: for dozens of
addresses keep days at 180 and page back with before_time rather than widening
days. A row-limit error ("Limit for rows ... exceeded") means an address in the list is too busy (an
exchange, bridge or popular contract) or the window is too long - drop that address or shorten
days. Amounts are TOKEN UNITS, never USD. To identify funders, pass them to
labels_for_addresses; to see everything that moved between the funders and the wallets, use
robinhood_flows_between.
Robinhood flow edges
MONEYFLOW GRAPH EDGES out of a Robinhood (robinhood, rh, Robinhood Chain) address: one
row per counterparty — Source → Target, total Amount, Currency. Building block for a
MoneyFlow DIAGRAM. HOW TO DRAW: call this per address/hop, collect the edges, and emit
a Mermaid `graph LR` (one node per address; each edge labeled with Amount+Currency).
NOT choosing which counterparty to follow next → use robinhood_trace_next_hop.
Address labels are not available on this chain, so flag a service node from its own
profile (robinhood_address_profile) and STOP expanding that branch. Pass a currency to
avoid spam-token noise; call WITHOUT a currency filter to spot a token → USDT off-ramp
at the edge. For raw per-transfer rows use robinhood_transfers_out. Each edge carries
the token Contract — pin one exact token with the contract param. On a very
high-traffic address (an exchange or bridge hub) this aggregates a lot of history and
can take tens of seconds — narrow it with contract or currency to one token to make it
far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
Bound one period with after_time / before_time. First_Seen / Last_Seen give each
edge's first and last transfer.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Robinhood flows between
FLOWS BETWEEN TWO ADDRESS SETS on Robinhood (robinhood, rh, Robinhood Chain): every successful transfer (tokens and native
ETH) from any address of set A to any address of set B, and back, in ONE call - "did these
wallets ever pay those wallets", "how much moved between my suspects and the exchange
wallets", "which of these deposit addresses sent to that hot wallet". Pass up to
50 addresses per set separated by "|" (0xabc…|0xdef…). A longer list is not an error:
the first 50 distinct addresses of each set are used and the rest are ignored -
every row reports A_Addresses_Requested / A_Addresses_Used and B_Addresses_Requested /
B_Addresses_Used, so compare them and split a longer set into several calls. Leave addresses_b EMPTY to get every
counterparty of the A set, both directions, grouped per A address - the multi-address form of
robinhood_flow_edges.
mode="summary" (default) returns one row per (Direction, Sender, Receiver, token) with
Transfers, total Amount, First_Time, Last_Time and the latest Tx, ordered by `sort`.
mode="rows" returns the individual transfers newest first; page with cursor: pass the Cursor
value of the LAST row, with all other arguments unchanged, to get the next page (a summary row
carries no Cursor). A rows-mode row is a LEDGER LINE: besides the amount it carries Amount_Raw (the
exact integer amount in the token's smallest unit) with Decimals, Block and Tx_Index, and Price_Usd
(the token's USD price at the time of the transfer), Value_Usd = Amount x Price_Usd and
Price_Status - "ok"; "no_price" = no price is known for this token at that time, so Price_Usd and
Value_Usd are empty (never read that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check it with
price_at. ETH and the major tokens are priced to 5 minutes, every other token has ONE price per day, so the value of a small token is approximate. On a summary row those seven columns are empty: a total over a
period has no single price. Self = 1 (both modes) marks a movement whose counterparty is another
address of set A - a move inside the set, not income and not spending.
Direction A_TO_B = sent by an A address to a B address, B_TO_A = sent by a B
address to an A address; an address listed in both sets appears in both directions. With
addresses_b empty the same holds for a transfer between two A addresses: it is listed as A_TO_B
for its sender AND as B_TO_A for its receiver, so never add rows of both directions together.
WINDOW: the last `days` days (default 30, at most 366) ending at before_time, or now;
after_time sets the start instead, within the same 366-day limit. Window_From / Window_To
on every row show the range searched; for an older period set before_time. An empty result means
no transfer between the sets in that window.
COST: the search is keyed on set A, so put the SMALLER and less busy set in addresses_a -
individual wallets, not exchange hot wallets, bridges or token contracts. If the call fails
with a row-limit error ("Limit for rows ... exceeded"), swap the two sets, shorten days, or
split set A. Cost also grows with the number of addresses in set A times the window.
Each row carries the token Contract (empty for native ETH); a symbol alone can match
look-alike clones, so pin one token with contract, or restrict to native or tokens with
asset_type. Amount is in TOKEN UNITS: totals of different tokens must not be compared or added
together, there is no usd filter (min_amount is in token units), and sort="amount" is only
meaningful with one token pinned. To identify the addresses, pass them to
labels_for_addresses.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Robinhood native balances
NATIVE COIN BALANCE of up to 50 Robinhood (robinhood, rh, Robinhood Chain) addresses you ALREADY HAVE: each address's
current ETH balance (the coin that pays gas) - for filtering a known set of wallets down to the funded
ones, e.g. an airdrop cohort.
To discover holders you do not have yet, use robinhood_token_holders. NOT one address's transfer history → use robinhood_address_flow_summary.
Pass the addresses separated by "|" (0x..) - up to 50; addresses after the
50th distinct one are ignored (compare Addresses_Requested with Addresses_Used), so split
a longer list into several calls.
WINDOW: only balances UPDATED within the last `since_days` days (default 7) are read, so an address
that has not moved its native coin in that window returns NO row. Use the same window you searched for
activity - e.g. the window of robinhood_token_senders - because an active wallet's balance is always
fresh there; a wider window costs more for no gain on active wallets.
Native_Balance is in ETH (18 decimals); Native_Balance_Raw is the exact integer amount (wei);
Balance_As_Of is when that balance was last updated. To identify the addresses, pass them to
labels_for_addresses.
Each row: Address, Native_Balance, Native_Balance_Raw, Balance_As_Of, Addresses_Requested, Addresses_Used.
Robinhood token holders
TOP HOLDERS of a Robinhood (robinhood, rh, Robinhood Chain) token by CURRENT on-chain balance — holder address +
balance, largest first. Use for token analysis: whales, holder concentration,
distribution. Pass the token CONTRACT address (not a wallet). Address labels are not
available on this chain, so read a holder's role from its own transfer profile. This is
real on-chain balance, NOT DEX-trade PnL — for trader profitability use
profitable_traders_by_token / trader_positions. Balances exclude NFTs (fungible only).
SCOPE. days=0 (default) ranks EVERY holder over the token's whole history, and
Holders_In_Window is then the token's holder count (positive balances). A very
widely held token - a major stablecoin, for example - has too much history for that:
the call answers at once with one Status=TOO_LARGE row instead of timing out. Then
call with days=30 (days=7 if that is still TOO_LARGE): it ranks the holders whose
balance CHANGED in that window, and their balances are still exact current balances.
A holder that did not move the token in the window is absent, so on such a token the
page is the top of the ACTIVE holders, not a guaranteed global top. To reach quieter
holders pass Next_Cursor as cursor: each page covers the next older window of `days`
and lists only holders whose LAST balance change falls inside it, so no holder
appears on two pages and the top N of all pages merged is the global top N. Each
page also checks all later activity up to today, so paging far back on a very busy
token ends in TOO_LARGE - stop there and say the list covers only the windows read.
Next_Cursor is empty when the token has nothing older. Window_From / Window_To are
the dates a page covers (Window_From empty = whole history). A row with an empty
Holder is a status row: read Status (TOO_LARGE / NO_HOLDERS / BAD_CURSOR).
Balance is in the token's OWN units, never USD - no USD value is available in
this data, so there is no usd filter and balances of different tokens are not
comparable. `Decimals` gives the scale. Holders whose recorded balance is NEGATIVE
are dropped and counted in Negative_Balances_Excluded: the transfer history behind
them is inconsistent (typically a transfer recorded twice or missing), so that
balance cannot be trusted - and the same kind of error can inflate a positive
balance of that token. A balance far above the token's total supply is such an
artifact, not a whale: check it with token_supply or the holder's transfers before
reporting it.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
Robinhood token senders
TOKEN SENDERS COHORT on Robinhood (robinhood, rh, Robinhood Chain): the addresses that SENT a given token at least `min_transfers`
times inside a time window, most recently active first - "wallets that actively use this token",
"build a cohort or airdrop list of recent senders of this token".
NOT one wallet's own outgoing transfers → use robinhood_transfers_out.
This counts SENDERS of the token, one row per sender; it does not value or label them - pass the
returned addresses to labels_for_addresses, and to robinhood_native_balances to keep only funded
wallets. By default only normal user wallets (EOAs) that sent the token in their OWN transaction count (eoa_only=1); set eoa_only=0 to include contract senders.
Pass the token's CONTRACT address in token (0x-hex (case-insensitive)); a symbol also matches clone tokens, so
pin the exact contract.
WINDOW: the last `days` days (default 1, at most 30) ending at before_time or now;
after_time sets the start instead. A sender must reach `min_transfers` sends WITHIN this window, so a
short recent window keeps only clearly-active wallets - the recency the cohort wants. There is no
full-history mode: to go further back, page with before_time.
PAGING: newest-active first, at most `limit` rows. If the result has `limit` rows there may be more -
set before_time to the oldest Last_Transfer_Time returned and call again, then combine and
de-duplicate the pages.
COST grows with the token's volume times the window: widen `days` step by step. A row-limit error
("Limit for rows ... exceeded") means the token is too busy for that window - shorten days.
Each row: Address, Transfers, First_Transfer_Time, Last_Transfer_Time.
Robinhood trace dominant path
AUTO-WALK the dominant (largest-total-amount) OUTGOING edge of ONE token from a
Robinhood (robinhood, rh, Robinhood Chain) address, hop by hop, up to 5 hops — collapses ~5 manual
robinhood_trace_next_hop calls into one. Every hop returns Hop*_To (the address that
received), Hop*_Token (the contract of the token that moved) and Hop*_Edge_Total, plus
Hops_Found (how many hops resolved) and Path_Status for the walk itself.
Hop*_Edge_Total is NOT the amount that travelled along the path: it is the ALL-TIME
total of EVERY transfer of that token between that hop's sender and receiver, so it
can be orders of magnitude larger than the sum you are tracing and the hop totals are
not comparable with each other. To break one edge down — its transfer count
(Transfers), first/last seen, and the full ranking of that address's edges — call
robinhood_trace_next_hop on the hop's sender.
The walk NEVER goes back to an address it has already visited (the seed included), so
it cannot bounce back and forth between the same two wallets — each hop is the largest
edge to a NEW address.
READ Path_Status FIRST — NO_MATCH means the token filter matched nothing (wrong symbol,
or that symbol belongs to a different token — pass `contract`), PATH_END means the
trail really ran out, DEPTH_LIMIT means it may continue past hop 5. All-NULL hops with
NO_MATCH are a filter problem, not a dead end.
Address labels are not available on this chain, so read down the hops and stop at
the first address whose profile looks like a service — that's the destination.
Pin the token with `contract` whenever you know it — a SYMBOL is not unique, clone
tokens reuse popular symbols, and with a symbol alone the hops can drift between
look-alike tokens; compare the per-hop token contract to spot that.
LIMITS: follows only the single biggest edge per hop (misses splits / fan-outs), fixed
depth 5, and transfers to the burn address are not followed. For branching / adaptive
tracing call robinhood_trace_next_hop hop by hop, identify each hop with
labels_for_addresses and choose the next address yourself (prompt_playbook with
playbook=money_flow returns the full step-by-step procedure); for one hop's full ranking use
robinhood_trace_next_hop. Heavy multi-hop walk — can time out on a very busy address; retry,
or narrow it with `contract` / a less-busy token.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Robinhood trace next hop
CONVERGENCE primitive for Robinhood (robinhood, rh, Robinhood Chain) tracing:
aggregate an address's OUTGOING flow by counterparty (Σ amount, count, first/last
seen), largest first. Answers "where did the bulk of the funds go" in one shot. Narrow
with currency (recommended), after_time (= when funds reached this hop), min_amount.
NOT edges for a diagram → use robinhood_flow_edges.
NOT an automatic walk along the largest edge → use robinhood_trace_dominant_path.
Address labels are not available on this chain, so spot a CEX / mixer / bridge from
the counterparty's own profile instead (robinhood_address_profile — thousands of
senders AND receivers means a service; that is the destination, stop there). One row
per (counterparty, TOKEN); identify a token by Contract, not Currency. On a very
high-traffic address (an exchange or bridge hub) this aggregates a lot of history and
can take tens of seconds — narrow it with contract or currency to one token, and with
after_time to one period, which is far faster than one wide call.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
A transaction's own transfer is TOP-LEVEL, not internal, and is always counted.
ETH moved by contract code deeper inside a transaction (an internal
transfer) is left out unless you pass include_internal=1.
Returns up to top_n rows (default 10, at most 10000), largest Total_Amount first; no rows = nothing matched.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Each row: Counterparty, Currency, Symbol_NonAscii, Contract, Total_Amount, Transfers, First_Seen, Last_Seen.
Robinhood transactions
Paginated TRANSACTION HISTORY of a Robinhood (robinhood, rh, Robinhood Chain) address — every transaction it
sent or received directly (its own From or To; a token it received inside
someone else's transaction is in robinhood_transfers_in), newest first, deep-pageable. To page back,
pass the last Tx of the previous page as `before` (returns strictly older
transactions; an unknown hash returns an empty page). `until` bounds the
other side (only transactions newer than that tx). NOT a token-transfer
list — for token/ETH movements use robinhood_transfers_out / robinhood_transfers_in;
to see what ONE transaction did, pass its hash to robinhood_tx_transfers.
Value and Fee are in ETH.
Each row also carries the exact fee: Fee_Wei is the fee in the smallest unit as a decimal
string (Fee is the same amount in ETH, rounded to 8 decimals); Fee_Usd is its value at the
ETH price at the time of the transaction. Fee_Price_Status says how far to trust that
price: ok; no_price (Fee_Usd is empty - never read it as zero); suspect (the price is more than twice, or less than half, the price a day earlier AND a day
later - a likely data glitch, so Fee_Usd is left empty). A
failed transaction (Success = 0) still paid its fee: treat it as a fee-only row.
The fee was paid by the sender (From): count it for this address only on rows where From is the address.
Fee_Status is ok on this chain.
Returns up to limit transactions per page (default 25, at most 10000), newest first, failed transactions
(Success = 0) included unless only_successful=1; a page shorter than limit is the last one.
An unknown `until` hash is not applied (no lower bound); `before` and `until` together bound one range.
With after_time / before_time only that period is read, so the cost follows the period, not the
address's whole history; pass the same pair with every page.
Each row: Tx, Time, Block, TxIndex, From, To, Value, Success, Fee, Fee_Status, Fee_Wei, Fee_Usd, Fee_Price_Status.
Robinhood transfers in
INCOMING Robinhood (robinhood, rh, Robinhood Chain) transfers to an address — where
this wallet received funds from.
NOT the opposite direction → use robinhood_transfers_out.
NOT totals per sender → use robinhood_address_flow_summary.
Returns up to limit transfers (default 20, at most 10000), newest first by default; page back with the
last row's Cursor.
Use
to trace the source of funds backwards. For an address with many transfers set
min_amount or sort='amount', else large sources hide behind recent dust. Query WITHOUT
a currency filter to see where the bulk of funds originated. Address labels are not
available on this chain — judge a counterparty from its own transfer profile
(robinhood_address_profile) instead.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. ETH and the major tokens are priced to 5 minutes, every other token has ONE
price per day, so the value of a small token is approximate. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
Each row: Time, Sender, Currency, Symbol_NonAscii, Contract, Amount, Internal, Tx, Cursor, Amount_Raw, Decimals, Block, Tx_Index, Price_Status, Price_Usd, Value_Usd.
Robinhood transfers out
OUTGOING Robinhood (robinhood, rh, Robinhood Chain) transfers from an address — where
this wallet sent funds. Narrow with after_time (flows after funds arrived), currency
(follow one asset), min_amount (drop dust). For an aggregated "where did the bulk go"
view use robinhood_trace_next_hop; for incoming use robinhood_transfers_in. For an
address with many transfers set min_amount or sort='amount', else large counterparties
hide behind recent dust. Query WITHOUT a currency filter to surface the token → USDT
off-ramp. Page back through history with cursor: pass the Cursor value of the LAST row
of a page to get the next one — unlike before_time it never skips rows that share a
timestamp. Address labels are not available on this chain — judge a counterparty from
its own transfer profile (robinhood_address_profile) instead.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. ETH and the major tokens are priced to 5 minutes, every other token has ONE
price per day, so the value of a small token is approximate. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
Robinhood transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Robinhood transfers database. The
Bitquery MCP specialized robinhood_* tools are the PRIORITY; use this ONLY when none of them
can answer (e.g. an uncovered table). No query optimizer here — naive SQL full-scans
huge tables and JOINs time out.
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
FAST-QUERY RULES: filter on the indexed key tables — `robinhood_api.transfers_sender` (by
sender / outgoing), `robinhood_api.transfers_receiver` (by receiver / incoming),
`robinhood_api.transfers_tx` (by tx hash); NEVER JOIN big tables — use `WHERE col IN (SELECT …)`
(use `GLOBAL IN` when the subquery is referenced inside another subquery, otherwise its
result is not available where it is used). A subquery that itself reads a transfers table (`IN (SELECT Transfer_Sender FROM …transfers_… WHERE …)`) is re-run for every shard and rescans that table — run it as its OWN query first, then pass the result back as a literal list (`IN (unhex('a'), unhex('b'))`). To filter transfers by a specific token, read `transfers_currency` (keyed by the token contract + `Block_Time`); `transfers_sender` / `transfers_receiver` are keyed by address, so filtering those by a token contract scans the table.
Addresses are RAW BYTES `FixedString(20)` in `Transfer_Sender` / `Transfer_Receiver`
(there are NO plain string address columns) →
`Transfer_Sender = unhex(substring(lower('0x…'),3))`, output `concat('0x',lower(hex(col)))`.
Tx hash is `Transaction_Hash` `FixedString(32)` (same unhex/hex pattern).
A SET of hashes or addresses must have the column's exact type:
`Transaction_Hash IN (SELECT toFixedString(unhex(h), 32) FROM …)`, `toFixedString(…, 20)` for
an address. A plain `unhex(…)` set, or a JOIN on a String key, silently misses every value
ending in `00`; `=` and a literal list `IN (unhex('a'), unhex('b'))` are safe.
Currency symbol + decimals are INLINE columns (no dictionaries):
amount = `toFloat64(Transfer_Amount) / pow(10, Transfer_Currency_Decimals)`;
symbol = `Transfer_Currency_Symbol`; token contract = `Transfer_Currency_SmartContract` — itself RAW BYTES in a `String` column (not text), so filter it `= unhex('<40 hex, no 0x>')` and read it back `concat('0x',lower(hex(…)))`; a `'0x…'` text literal matches nothing.
Always add `AND Transfer_Success = 1`. `Transfer_Type`: 'token' = a token transfer,
'transaction' = a plain native-coin send, 'call' = native coin moved by a call. A
transaction's OWN value transfer is stored either as 'transaction' or as a 'call' with
`Call_Index = 0`; only a 'call' with `Call_Index != 0` is an INTERNAL transfer (made by
contract code deeper inside the transaction). For top-level transfers filter
`(Transfer_Type IN ('token','transaction') OR (Transfer_Type = 'call' AND Call_Index = 0))` -
`Transfer_Type IN ('token','transaction')` alone drops a large share of ordinary sends. Time =
`Block_Time`. Date-time values come back as ISO-8601 UTC, e.g. 2026-09-21T15:04:18Z (toString() of a date-time gives 2026-09-21 15:04:18). Other `robinhood_api.*` tables (calls, transactions, balances) are reachable with
an explicit db prefix. Counterparty labels are NOT available for this chain — describe an
address from its transfer profile instead. Read-only; always add a LIMIT of at most 10,000 — a larger answer fails with an error, so aggregate (GROUP BY, count) instead. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x).
Exact table and column names first: chain_list_tables, chain_describe_table and chain_search_columns with database=robinhood_api.
Robinhood tx events
ALL EVENT LOGS in one or more Robinhood (robinhood, rh, Robinhood Chain)
transactions, including decoded arguments plus raw topics and data. Use after
robinhood_find_events identifies a transaction, or whenever a tx receipt's complete
event payload is needed. Accepts up to 50 transaction hashes separated by "|".
NOT the value moved in a transaction → use robinhood_tx_transfers.
`Parsed=0` means no ABI matched: Event, Signature and Arguments can then be empty,
but Topic0, Topics and Data remain usable. Arguments are named objects with Name,
Type, string Value and Indexed; integers are decimal strings to avoid JSON-number
precision loss; use raw Topics/Data for values wider than the decoded numeric fields. Argument names come from one known ABI for the Signature and can be another contract's wording - Topics and Data are the log's own.
By default, reverted call-frame logs, removed logs and
failed transactions are excluded; set only_successful=0 to inspect them with the
returned status fields.
Robinhood tx transfers
All token & native transfers inside one OR SEVERAL Robinhood (robinhood, rh, Robinhood Chain) transactions
(sender → receiver, currency, amount) — pass one tx hash or several separated
by "|" to inspect a batch in a single call. Entry point for tracing when you
have tx hashes. Also returns the called Method signature per transfer.
NOT the event logs of a transaction → use robinhood_tx_events.
For an address's flow over time use robinhood_transfers_out / robinhood_transfers_in.
Address labels are not available on this chain — read an address's shape with
robinhood_address_profile instead of expecting a label lookup to name it.
FRESHNESS: transfers reach this data some minutes after the trade tools see a swap, so
a hash that trader_trades or tx_trades already shows can return NO rows here yet -
that is lag, not a missing transaction: retry in a few minutes.
A transaction's own transfer is TOP-LEVEL, not internal, and is always included.
Internal = 1 marks a transfer moved by contract code deeper inside a transaction;
those are left out unless you pass include_internal=1.
Search columns
FIND COLUMNS by name across the trading_rt tables — which table has a column like "supply",
"fee", "pool" or "trader", with its exact name and type. `query` is a case-insensitive
substring of the column name ("_" is literal), or a LIKE pattern when it contains %
(e.g. "Price_Ohlc%"); `table` optionally narrows the search to table names matched the same
way (e.g. "by_token"). The two combine: query "price" with table "by_token" finds the price
columns of the by-token tables only.
Returns at most 100 rows — exactly 100 means there are more, so narrow
`query` or `table`. Rows are ordered by table, then by the column's position in it. It reads
the column catalog only, never table data. Then call describe_table for the full column list of one table, and
execute_sql to query it.
These are NOT in the trading data, so a column search for them comes back empty — use the
tool instead:
- token holders → <chain>_token_holders (top holders by current balance, EVM chains); no
holder-count column exists anywhere
- contract events / logs / topics → <chain>_find_events, or <chain>_tx_events for known
transactions
- contract calls / method signatures → <chain>_find_calls
- an address's transfers or balances → <chain>_transfers_in / <chain>_transfers_out /
<chain>_address_profile
- liquidity, TVL, pool reserves → not available in this dataset; for the pools and DEXes a
token trades on use token_dex_venues
- a wallet's holdings and PnL → trader_positions
TransactionHeader_Fee / TransactionHeader_FeePayer are the transaction's network fee (in the
chain's native coin) and its payer, not a DEX or liquidity-provider fee. chain_capabilities lists which <chain>_ tools
exist; chain_search_columns searches the per-chain databases (one per call).
Each row: Database, Table, Column, Type.
Solana address flow summary
ADDRESS FLOW SUMMARY / top counterparties: who a Solana (sol, SOL, mainnet-beta) address sends funds TO and receives funds FROM, in one call — self-label + profile
(sent/received transfer counts, distinct receivers/senders) + TOP receivers AND TOP
senders (ranked by number of transfers then Σ amount, with the counterparty's inline
label). Collapses address_profile + trace_next_hop(out) + an incoming-convergence into
a single call — call this FIRST when triaging a hop. Returns a computed Role over the
same window and tokens as the profile counts (the last `days`, all tokens): receive_only
(no outgoing transfer in the window) / send_only (no incoming one) / no_transfers
(neither) / hub (thousands of senders AND receivers — don't trace deeper) / consolidator
(senders ≫ receivers) / distributor (receivers ≫ senders) / relay (neither dominates).
NOT only the statistics, without counterparties → use solana_address_profile.
Profile counts are all-currency; the top arrays honor the
currency and program filters. Solana inline labels are sparse — confirm entities with
address_labels(chain='solana'); unlabeled tokens show as `unknown:<id>`. For raw rows
use solana_transfers_in/out. READING THE TOP ARRAYS: positional 7-tuples
[counterparty, label, amount, currency, mint, transfers, symbol_nonascii] (the
Top_Fields column lists these names in the same order), one entry
per (counterparty, TOKEN) — the same address repeats once per token it moved. Symbols
are not unique; identify a token by its mint. On a very high-traffic address (an
exchange or bridge hub) this aggregates a lot of history and can take tens of seconds
— narrow it with mint or currency to one token and lower days to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with mint, or bound the range with min_amount / max_amount.
Token-2022 note: most unknown:<id> tokens are Solana Token-2022 mints (every pump.fun token made with
create_v2), whose decimals are not yet available, so their totals are RAW base units. Inflated by the
missing decimals, such a total can dwarf a properly scaled token without being a bigger flow, so do
not rank across tokens by an unknown:<id> total (cap it with max_amount, or pin one token with mint).
Resolve the token by its Mint with find_token_by_address (name, symbol, USD price; or token_price for
the price) while it still trades.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
Counts and rankings cover the LAST 90 DAYS by default, not the address's whole
lifetime; raise days for a longer period.
Window_Days / Window_From on the row state the period actually covered: an address
that was busy long ago but quiet since comes back all zeros, which is NOT the same
as an address that never moved anything - raise days to look further back.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Solana address profile
Solana (sol, SOL, mainnet-beta) address STATISTICS — successful value-transfer counts out/in and distinct
counterparties. Triage an address during tracing. Role from the ratio: senders ≫ receivers =
consolidator / sweep; receivers ≫ senders = distributor; ~1↔1 = relay (layering); thousands
of both = mega-hub (exchange / treasury — don't trace deeper).
NOT who it deals with → use solana_address_flow_summary.
NOT the links to draw → use solana_flow_edges.
Counts cover the LAST 90 DAYS by default, not the address's whole
lifetime; raise days for a longer period.
Window_Days / Window_From on the row state the period actually covered: an address
that was busy long ago but quiet since comes back all zeros, which is NOT the same
as an address that never moved anything - raise days to look further back.
ONE row: Window_Days, Window_From, Sent_Transfers, Received_Transfers, Distinct_Receivers, Distinct_Senders.
Solana find instructions
FIND Solana (sol, SOL, mainnet-beta) TRANSACTIONS BY PROGRAM INSTRUCTION — search one WALLET's
value-moving records by the decoded method name and/or the program that produced them
(e.g. "merge" of stake, "mintTo" / "closeAccount" of spl-token, "DecreaseLiquidity" of
Orca), optionally pinned to one token by mint. Returns SLIM per-instruction records
(signature, block, time, program, method, top-level program + method, inner call path,
sender→receiver, amount, currency, mint) — one call instead of scanning whole transactions.
A Currency of unknown:<id> is a token without a known symbol or decimals: Mint identifies
it and its Amount is in RAW base units. Inspect a found transaction with solana_tx_transfers.
WHAT IS SEARCHABLE — only records that move value or touch accounts (transfers, mints,
burns, account create/close, stake operations), and only a FEW programs are decoded into
method names. The common stored names, exactly as they appear:
- spl-token: transfer, transferChecked, mintTo, mintToChecked, burn, burnChecked,
closeAccount, initializeAccount3, setAuthority, syncNative
- system: transfer, createAccount, createAccountWithSeed, transferWithSeed
- spl-associated-token-account: create, createIdempotent; stake: merge, split, withdraw;
address-lookup-table, bpf-upgradeable-loader, vote
- Orca (Whirlpool, PascalCase): Swap, DecreaseLiquidity, CollectFees, CollectReward,
OpenPositionWithMetadata
Everything else is NOT decoded — Raydium (AMM, CPMM, CLMM, LaunchLab), pump.fun, PumpSwap,
Jupiter and other DEX / launchpad / aggregator programs. Their own method names (swap,
swap_base_input, buy_exact_in, migrate_to_cpswap, ...) are never stored in any spelling,
so searching for them returns nothing. Such a program shows up only as its base58 id in
Program / Outer_Program with an EMPTY Method: search it with program=<program id> plus an
address and an empty instruction (or "transferChecked" / "transfer" for just the token
legs it moved).
TWO LEVELS ONLY. Program/Method is the program that executed the record (usually
spl-token or system); Outer_Program/Outer_Method is the TOP-LEVEL instruction of the
transaction it sits in. Programs called in between are not recorded: a Raydium swap
routed through an aggregator shows the aggregator as Outer_Program and Raydium nowhere,
so program=<Raydium id> finds only transactions that called Raydium directly.
ADDRESS must be a wallet (the OWNER that sent or received value). A token MINT, a token
account or a pool / market account is never the sender or receiver of the swaps and
transfers that involve it — pool funds sit under the DEX's shared vault authority, not
under the pool address. Such an account usually appears only as the Receiver of the
createAccount record that funded it, so address=<pool> with instruction=createAccount
finds the transaction that created a pool (e.g. a launchpad migration). For "swaps of
token X" or "trades in pool Y" use pool_recent_trades, tx_trades, early_buyers or
top_traders_by_token (resolve the pool with token_dex_venues); to keep one token within
a wallet's records, pass mint.
FRESHNESS: records arrive with a delay — typically tens of minutes, at times several hours. A
recent transaction may not be searchable yet — retry later instead of concluding it
does not exist.
COST: WITH address → indexed lookup over that wallet's last 90 days (days); it can still
time out when the service is busy — retry later, or lower days. WITHOUT address → scan of
ALL Solana activity in since_time/before_time (default last 7 days, billions of records):
it almost always times out, so give an address whenever you can; it also needs
instruction or program (with neither it returns nothing).
Page back with cursor: pass the Cursor value of the LAST row of a page — unlike
before_block it never skips the other matches in that block.
Solana flow edges
MONEYFLOW GRAPH EDGES out of a Solana (sol, SOL, mainnet-beta) address: Source →
Target, total Amount, Currency, Target label.
NOT choosing which counterparty to follow next → use solana_trace_next_hop.
Building block for a MoneyFlow DIAGRAM —
call per address/hop, collect edges, render Mermaid `graph LR`, flag & stop at labeled
exchange/service nodes. Edges are ranked by number of transfers then amount. Pass a
currency to avoid spam; time-window the edge aggregation with after_time /
before_time. For raw rows use solana_transfers_out. Scan Target_Label FIRST; Solana
inline labels are sparse, so confirm exchange/service nodes with
address_labels(chain='solana'). Unlabeled tokens show as `unknown:<id>`. To spot an
off-ramp, call WITHOUT a currency filter so the token → SOL/USDC switch shows at the
edge. Each edge carries the token Mint — pin one exact token with the mint param. On a
very high-traffic address (an exchange or bridge hub) this aggregates a lot of history
and can take tens of seconds — narrow it with mint or currency to one token, and with
after_time to one period, which is far faster than one wide call.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with mint, or bound the range with min_amount / max_amount.
Token-2022 note: most unknown:<id> tokens are Solana Token-2022 mints (every pump.fun token made with
create_v2), whose decimals are not yet available, so their totals are RAW base units. Inflated by the
missing decimals, such a total can dwarf a properly scaled token without being a bigger flow, so do
not rank across tokens by an unknown:<id> total (cap it with max_amount, or pin one token with mint).
Resolve the token by its Mint with find_token_by_address (name, symbol, USD price; or token_price for
the price) while it still trades.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
Counts and rankings cover the LAST 90 DAYS by default, not the address's whole
lifetime; raise days for a longer period.
Solana signatures
Paginated SIGNATURE HISTORY of a Solana (sol, SOL, mainnet-beta) address — every transaction it participated
in (as sender, receiver or fee payer), newest first, with block, time, success flag,
error and fee. Walks ARBITRARILY DEEP history: page back by passing the LAST signature
of the previous page as `before`; optionally stop at `until` (only rows newer than it).
Use this to reach transactions older than any "recent N" listing, then inspect a
specific one with solana_tx_transfers. An unknown `before` signature yields an empty
page. NOT a transfer list — rows are one per transaction; for value movements use
solana_transfers_in/out.
Covers the LAST 90 DAYS by default; raise days to reach older history (a short or
empty page can just mean the window ended, not that the history did), or bound one period
with after_time / before_time - then only that period is read; pass the same pair with every page.
Solana token creator
WHO CREATED a Solana (sol, SOL, mainnet-beta) TOKEN, and what a creator minted. Answers "who
created / launched this token", "who is behind this mint", "what else did this wallet launch"
and "were these tokens made by the same person" (serial launchers, rug and clone farms).
Pass the token's MINT ADDRESS (base58) - the same address find_tokens / token_price use.
TWO WAYS TO CALL IT, pick one:
mints="<mint>|<mint>" - up to 50 mints, one row each: Creator (the wallet that signed the
token's FIRST minting), Fee_Payer, Created_At, Tx, First_Recipient, First_Mint_Amount,
plus Mint_Events / Distinct_Minters / Last_Mint_At (is minting still open, and by how many
wallets) and the token's Name / Symbol / Decimals. Rows whose creator is SHARED come
first: Creator_Shared counts how many of the requested mints that same wallet created,
which is what exposes one person behind many tokens. A longer list is not an error: the
first 50 distinct mints are used and the rest ignored - compare Mints_Requested with
Mints_Used.
creator="<wallet>" - the tokens THAT wallet minted, newest first, at most `limit` rows.
Matched on the wallet that PAID for the transaction; on most Solana transactions that is
the same wallet that signed it. Use it on a Creator or Fee_Payer a first call returned.
THIS MODE LOOKS AT THE LAST YEAR unless days / after_time say otherwise, so an empty
answer means "nothing in the last year", not "never" - raise days to go further back. Its
Created_At is the wallet's first minting of that token INSIDE the window, which for an old
token is not the token's creation date; re-check a token of interest with mints=.
WHAT "CREATED" MEANS HERE: the earliest recorded minting of that token. Solana does not
record the mint account's initialization as a value movement, so the first minting is the
first moment the token exists with a supply - for a launchpad token (pump.fun and friends)
that is the launch transaction, and the Creator is the launcher's wallet.
Status = NOT_FOUND means no minting is recorded: the address is not a token mint, or the
token was created before the recorded history. UNRESOLVED_MINT means a mints= lookup cannot
place this mint: it works only for tokens listed in the token registry behind it, and many
tokens - nearly every pump.fun token, for one - are never listed there, whatever their age. It is
NOT evidence that the address is not a token - find_token_by_address / token_price usually
still know it - and retrying later does not help. To find who made such a token anyway:
solana_transfers_in with address = the mint, transfer_type = create_account and days large
enough to reach the token's creation returns the transaction that created the mint account;
its Sender paid for that account, which for a launchpad token is the launcher. Then
creator=<that wallet> lists what the wallet minted: a creator= lookup does not use the
registry, so it lists unregistered tokens too (with empty Token_Name / Token_Symbol and no
Decimals or First_Mint_Amount).
THE CREATOR'S STORY IS NOT IN THIS TOOL - build it from the returned wallets:
labels_for_addresses (is the creator a known entity, exchange or scammer),
solana_address_profile and solana_transfers_in / solana_transfers_out (what that wallet
does), solana_signatures and solana_find_instructions (its transactions). The token's price,
supply and market cap come from token_price / token_supply; its first buyers from
early_buyers; its trades from pool_recent_trades.
COST: a lookup walks every minting the token ever had, so an ordinary token answers in
seconds while a wrapper minted on every wrap (wrapped SOL) is refused within a few seconds
with a row-limit error ("Limit for rows ... exceeded") - narrow it with days / after_time, or
accept that the question does not apply to that token.
Solana trace next hop
CONVERGENCE primitive for Solana (sol, SOL, mainnet-beta) tracing: aggregate an
address's OUTGOING flow by counterparty (Σ amount, count, first/last seen), each
labeled, ranked by number of transfers then total amount. Stop when a counterparty is
labeled (exchange / service). Narrow with currency (recommended), after_time /
before_time, min_amount. Unlabeled tokens show as `unknown:<id>`. One row per
(counterparty, TOKEN); identify a token by Mint, not Currency. On a very high-traffic
address (an exchange or bridge hub) this aggregates a lot of history and can take tens
of seconds — narrow it with mint or currency to one token, and with after_time to one
period, which is far faster than one wide call.
NOT edges for a diagram → use solana_flow_edges.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with mint, or bound the range with min_amount / max_amount.
Counts and rankings cover the LAST 90 DAYS by default, not the address's whole
lifetime; raise days for a longer period.
Returns up to top_n rows (default 10, at most 1000), most Transfers first; no rows = nothing matched
in the window.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Each row: Counterparty, Label, Currency, Symbol_NonAscii, Mint, Total_Amount, Transfers, First_Seen, Last_Seen.
Solana transfers in
INCOMING Solana (sol, SOL, mainnet-beta) transfers to an address — where this wallet received funds from,
each sender annotated.
NOT the opposite direction → use solana_transfers_out.
NOT totals per sender → use solana_address_flow_summary.
Returns up to limit transfers (default 20, at most 1000), newest first by default; page back with the
last row's Cursor.
Same narrowing levers as solana_transfers_out, including the
program= filter. Use to trace the source of funds backwards.
Scan the inline Sender_Label first (non-empty = known entity); Solana inline labels are
sparse — confirm with address_labels(chain='solana'). Unlabeled tokens show as `unknown:<id>`
in Currency. For a busy address set min_amount or sort='amount', else large sources hide
behind recent dust.
Each row carries the token Mint — a symbol alone can match several tokens, so pin the real one with the mint param.
Amount is in TOKEN UNITS; Amount_Raw is the same amount as an exact integer string in the
token's smallest unit, with Decimals (null when the token's decimals are unknown).
A token shown as unknown:<id> is the exception: its decimals are not known (Decimals is null),
so its Amount is the RAW count in the token's smallest unit (Amount_Raw is the exact one),
not token units.
Token-2022 note: most unknown:<id> tokens are Solana Token-2022 mints (every pump.fun token made with
create_v2), whose decimals are not yet available, so their Amount is RAW base units, not whole tokens.
Inflated by the missing decimals, such an Amount can dwarf a properly scaled token without being a
bigger transfer, so do not rank or filter across tokens by an unknown:<id> Amount (sort='amount' and
min_amount go by the raw number). Resolve the token by its Mint with find_token_by_address (name,
symbol, USD price; or token_price for the price) while it still trades.
USD: Price_Usd is the hourly USD price of ONE WHOLE token at the time of the transfer and
Value_Usd = Amount x Price_Usd. Price_Status: ok; no_price = no price is known for this token
at that hour, both columns null - never assume one (SOL, native and wrapped, and the listed
tokens are priced, matched by the token itself, never by its symbol; the newest hour may not
be priced yet); no_decimals = the price is known and printed, but the token's decimals are
not (an unknown:<id> row), so Value_Usd is empty: NEVER multiply Amount by Price_Usd on such
a row - its value is Amount_Raw / 10^decimals x Price_Usd once the mint's decimals are known
from elsewhere. Filters stay in token units (there is no
usd filter), and amounts of different tokens must not be compared or added together: pin ONE
token with mint, or bound the range with min_amount / max_amount.
Type is the record kind ("transfer" or "self" by default; widen with transfer_type, e.g.
"transfer|self|close_account") and Success the transaction status (only successful
ones unless only_successful=0). fee_payer keeps only transactions paid by one wallet; the
fee payer and signer of a transaction are listed by solana_tx_transfers.
Covers the LAST 90 DAYS by default; raise days to reach older history (a short or
empty page can just mean the window ended, not that the history did). On a very busy
wallet a wide window can time out - lower days, set after_time, or pin mint.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
Each row: Time, Sender, Sender_Label, Currency, Symbol_NonAscii, Mint, Amount, Tx, Type, Success, Amount_Raw, Decimals, Price_Usd, Value_Usd, Price_Status, Cursor.
Solana transfers out
OUTGOING Solana (sol, SOL, mainnet-beta) transfers from an address — where this wallet sent funds, each
receiver annotated. Narrow with after_time / currency / min_amount, or filter by
program with program=. Page back through older history with cursor: pass the Cursor
value of the LAST row of a page to get the next one — unlike before_time it never
skips rows that share a timestamp. For the
aggregated "where did the bulk go" view use solana_trace_next_hop; for incoming
use solana_transfers_in.
Scan the inline Receiver_Label first (non-empty = known entity, a stop/flag signal); Solana
inline labels are sparse, so confirm entities with address_labels(chain='solana'). Unlabeled
tokens show as `unknown:<id>` in Currency. For an address with many transfers set min_amount
or sort='amount', else large counterparties hide behind recent dust.
Each row carries the token Mint — a symbol alone can match several tokens, so pin the real one with the mint param.
Amount is in TOKEN UNITS; Amount_Raw is the same amount as an exact integer string in the
token's smallest unit, with Decimals (null when the token's decimals are unknown).
A token shown as unknown:<id> is the exception: its decimals are not known (Decimals is null),
so its Amount is the RAW count in the token's smallest unit (Amount_Raw is the exact one),
not token units.
Token-2022 note: most unknown:<id> tokens are Solana Token-2022 mints (every pump.fun token made with
create_v2), whose decimals are not yet available, so their Amount is RAW base units, not whole tokens.
Inflated by the missing decimals, such an Amount can dwarf a properly scaled token without being a
bigger transfer, so do not rank or filter across tokens by an unknown:<id> Amount (sort='amount' and
min_amount go by the raw number). Resolve the token by its Mint with find_token_by_address (name,
symbol, USD price; or token_price for the price) while it still trades.
USD: Price_Usd is the hourly USD price of ONE WHOLE token at the time of the transfer and
Value_Usd = Amount x Price_Usd. Price_Status: ok; no_price = no price is known for this token
at that hour, both columns null - never assume one (SOL, native and wrapped, and the listed
tokens are priced, matched by the token itself, never by its symbol; the newest hour may not
be priced yet); no_decimals = the price is known and printed, but the token's decimals are
not (an unknown:<id> row), so Value_Usd is empty: NEVER multiply Amount by Price_Usd on such
a row - its value is Amount_Raw / 10^decimals x Price_Usd once the mint's decimals are known
from elsewhere. Filters stay in token units (there is no
usd filter), and amounts of different tokens must not be compared or added together: pin ONE
token with mint, or bound the range with min_amount / max_amount.
Type is the record kind ("transfer" or "self" by default; widen with transfer_type, e.g.
"transfer|self|close_account") and Success the transaction status (only successful
ones unless only_successful=0). fee_payer keeps only transactions paid by one wallet; the
fee payer and signer of a transaction are listed by solana_tx_transfers.
Covers the LAST 90 DAYS by default; raise days to reach older history (a short or
empty page can just mean the window ended, not that the history did). On a very busy
wallet a wide window can time out - lower days, set after_time, or pin mint.
Solana transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Solana transfers database (`solana`).
Bitquery MCP solana_* tools are the PRIORITY; use this ONLY when none can answer. No query
optimizer here: account-based model — query the per-address tables `solana.transfers_from`
(outgoing, key `transfer_from`) and `solana.transfers_to` (incoming, key `transfer_to`);
NEVER JOIN big tables (use `IN (SELECT …)`). There is NO tx-keyed transfers table and
transfers_from/to have NO `signature` column — to look up a transaction, use solana_tx_transfers.
Both tables are organized by day of `tx_date` back to 2020 and keyed only by address: ALWAYS
filter `tx_date` (e.g. `tx_date >= today() - 7`), with or without an address, or the query reads
the whole history and may time out. A bound on `tx_time` alone does not narrow the read.
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
This data runs on an older release of the engine: some functions and syntax in that reference
(map() and toJSONString() among them) do not exist here — when a statement is refused for an
unknown function or setting, use the forms shown in this description.
Addresses are PLAIN base58 strings in `transfer_from` / `transfer_to`, matched verbatim
(case-sensitive, no decoding). A row's tx id (base58) = `dictGetString('solana_tx','signature',bitOr(bitShiftLeft(toUInt64(block),32),toUInt64(transaction_index)))`. Time = `tx_time`. Date-times come back as 'YYYY-MM-DD hh:mm:ss' UTC; select formatDateTime(tx_time, '%FT%TZ') for ISO-8601 (2026-09-21T15:04:18Z), the shape the other tools return.
Amounts use the `currency` dict (the on-row `amount` is a raw integer):
amount = `toFloat64(amount) / dictGetFloat64('currency','divider',toUInt64(currency_id))`;
symbol = `dictGetString('currency','symbol',toUInt64(currency_id))` — guard dict-misses with
`dictHas('currency',toUInt64(currency_id))` (the long-tail SPL token would otherwise read raw).
Always add `AND success = 1 AND transfer_type IN ('transfer','self')` (drops
create/close_account, vote, rent … non-money rows). Labels are INLINE via the
`address_annotation` dict:
`dictGetString('address_annotation','text',tuple(toUInt32(blockchain_id),addr))`
(sparse on Solana — also use labels_for_addresses). Read-only. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x). A result of more than 25,000 rows
is not cut off - the whole query fails with an error - so aggregate (GROUP BY, count) or add a LIMIT of at most 25,000.
Exact table and column names first: chain_list_tables, chain_describe_table and chain_search_columns with database=solana.
Solana tx transfers
ALL VALUE MOVEMENTS + PARSED INSTRUCTIONS of one or more Solana (sol, SOL, mainnet-beta) TRANSACTIONS by
signature — pass a single signature or up to 50 separated by "|". Slim per-instruction
rows: program, method, inner call path, sender→receiver, amount, currency, success —
a compact structured view instead of the full transaction JSON. Narrow to one
program's instructions with `program`. Failed transactions show Success=0 with Error.
Covers value movements and account lifecycle (transfers, stake ops, mints/burns,
create/close), including the inner token legs of swaps; raw instruction bytes and log
messages are not stored. Each row carries the token Mint (native SOL = "-"), which
identifies tokens whose Currency reads unknown:<id>; for those the decimals are unknown
too, so their Amount is in RAW base units. Program/Method is the program that
executed the row, Outer_Program/Outer_Method the top-level instruction; most DEX,
launchpad and aggregator programs are not decoded, so they show as a base58 program id
with an empty Method (see solana_find_instructions for the decoded names).
Amount_Raw is the amount as an exact integer string in the token's smallest unit, with Decimals
(null when unknown). USD: Price_Usd is the hourly USD price of ONE WHOLE token and Value_Usd the
value of Amount. Price_Status: ok; no_price = no price is known for this token at that hour,
both columns null (SOL, native and wrapped, and the listed tokens are priced, matched by the
token itself); no_decimals = the price is printed but the token's decimals are unknown and its
Amount is raw (an unknown:<id> row), so Value_Usd is empty - never multiply Amount by
Price_Usd there.
Token-2022 note: most unknown:<id> tokens are Solana Token-2022 mints (every pump.fun token made with
create_v2), whose decimals are not yet available, so their Amount is RAW base units, not whole tokens;
inflated by the missing decimals it can look far larger than the transfer was. Resolve the token by
its Mint with find_token_by_address (name, symbol, USD price; or token_price for the price) while it
still trades.
FRESHNESS: transactions arrive with a delay — typically tens of minutes, at times several hours.
An EMPTY result for a recent signature usually means it is not indexed yet, not that it
does not exist - retry later; for the decoded swap of a fresh DEX trade use tx_trades.
Find candidate signatures with solana_signatures or solana_find_instructions.
Token chains
CROSS-CHAIN presence of a token by NAME or SYMBOL — which blockchains it
trades on: one row per token (Symbol + Name) with the list of networks, a
per-chain address / price / volume breakdown, chain count and total USD
volume. Use for "is <token> on multiple chains / which chains is it on",
"multichain tokens matching X", tokenized-stock or wrapped-asset families
(e.g. xStock). Set min_chains=2 for multichain-only. NOT for one token's
id / price (use find_tokens or find_token_by_address); NOT for the DEX pools
of one token on ONE chain (use token_dex_venues).
Same query syntax as find_tokens: `|` ORs several alternatives (e.g.
`spyx|tslax`); mode=like enables `%` / `_` wildcards. Looks back
`window_days` days, or covers a fixed period with after_time / before_time
(UTC; edges round outward to whole hours; only the last 30 days are kept,
and a period with no hour inside them is an error). Window_Start /
Window_End (UTC, end exclusive) report the period actually searched.
Grouped by (Token_Symbol, Token_Name) so unrelated same-symbol tokens stay
separate. `Lookalike_Addresses` lists the Per_Chain addresses that carry the
symbol of an established asset on their chain (look-alike letters such as a
Cyrillic `О` count as the same) but are a DIFFERENT token from the one that
symbol denotes there — never present them as that asset; a group made only
of such addresses is listed after all other groups. `Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII (normal
for CJK / emoji names).
LONG NAMES: a name longer than 256 characters or a symbol longer than 64 is
not searched (spam tokens that glue hundreds of asset names together) —
look such a token up with find_token_by_address. Returned names are cut at
128 characters and symbols at 32, ending in `…`; Name_Truncated /
Symbol_Truncated = 1 marks a cut value.
Token dex venues
DEX VENUES / pools / launchpad breakdown for ONE token (or up to 50) over a
time window — which DEX protocols, AMM programs and liquidity pools it
trades on, ranked by USD volume or trade count, with buy vs sell trades,
buy / sell volume, buyers, sellers and first / last price; group_by=token
gives the token's TOTAL trade stats for the window instead. Use for "which
DEX / launchpad does <token> trade on", "top pools for <token>", "is
<token> on Raydium / LaunchLab / Uniswap / PumpFun", "where is the
liquidity", "how many trades / buyers / sellers / volume did <token> have
in the last hour". NOT trader wallets (use top_traders_by_token), NOT a
price chart (use token_ohlcv), NOT a per-minute series (use
token_trade_bars).
NOT a token's first trade — First_Trade / First_Price_Usd here are the
first inside the window; for the very first trade of one token or a list
of up to 50 use token_launch_stats (`addresses`).
Covers rare / newly-launched tokens.
Aggregates the token's individual swaps. Per row: Trade_Count, Buy_Trades,
Sell_Trades, Volume_Usd, Buy_Volume_Usd, Sell_Volume_Usd, Distinct_Pools,
Distinct_Traders, Unique_Buyers, Unique_Sellers, Quote_Symbols (up to 20),
First_Price_Usd / Last_Price_Usd (first and last priced swap in the
window), First_Trade / Last_Trade. A Buy is a swap in which the trader
received this token. USD volume values each swap at the lower of its two
priced sides, so a broken token price cannot inflate it; prices ignore
dust swaps under $0.01. A swap is recorded under ONE of its two tokens. A
token that is the pricing (quote) side of its pairs — a stablecoin, for
example — is counted only in the pairs where it is the traded side, so its
figures here are a lower bound, and a token that is always the quote side
(USDT on Solana) returns no rows although it trades: an empty answer for
such a token does not mean it has no market.
`group_by` picks the granularity:
- pool — one row per liquidity pool (default; "list the pools")
- protocol — one row per DEX protocol family ("rank the DEXes")
- program — one row per AMM program / launchpad address ("rank launchpads")
- token — one row per token: its totals for the window
WINDOW: `after_time` / `before_time` (UTC — "2026-09-15 08:00:00", a date,
or unix seconds) select an absolute period [after_time, before_time).
Without after_time the window is the `window_hours` before before_time (or
before now); after_time takes precedence. Trade history reaches back about
30 days; an older start is moved up to it.
BATCH: several addresses in `address` (up to 50, separated by `|`, `,` or spaces) — rows
carry Token_Address and Network, grouped per token in the order given;
`limit` applies per token (at most 1000 rows per call). Every row carries
Addresses_Requested, Addresses_Invalid and Addresses_Used; the rule is in
the `address` parameter; Addresses_Not_Found lists the addresses looked
up that have no trade in the window (when nothing is found the result is empty, so no row carries the list). Pass
`blockchain` whenever it is known: without it every chain the address
trades on is reported separately. An empty `address` with a chain is its
native coin as the traded side (on Solana wrapped SOL; Arc has none).
Sort with `sort`: volume_usd (default) or trades. Use `find_tokens` /
`find_token_by_address` first if you only have a name / symbol. Counts
include swaps the indexer recorded twice (about 1% on Solana, near zero
elsewhere); pool_recent_trades lists swaps with those copies removed.
`Symbol_NonAscii` = 1 flags a `Token_Symbol` that is not plain ASCII. That
is normal for CJK / emoji token names, but it is also how a scam token
impersonates a major one: Cyrillic or Greek look-alike letters make a fake
`USDT` / `SOL` / `BTC` read identically to a human. Never treat such a
token as the asset it resembles — say the symbol is a look-alike.
Symbols longer than 32 characters are cut and end in `…` (spam tokens carry
symbols of up to 32,000 characters).
Token launch stats
LAUNCH SNAPSHOT of ONE token, or FIRST TRADES of a LIST of up to 50 tokens
in one call (`addresses`): the first recorded trade (time, transaction,
pool, DEX, first USD price) and what happened in the first
`window_seconds` after it — trades, buys and sells, unique traders and
buyers, how many wallets traded in the very first block and in the first
10 seconds, buy / sell / total USD, the first price and the price at the
end of the window, supply at launch, and for ONE token the top 20 wallets
of that window by USD volume. Answers "how did this launch go", "how many
snipers were in the first block", "how much was bought in the first
minute", "who dumped at launch", "when did each of these tokens first
trade, at what price, on which DEX and pool". For a list of tokens pass
them all in `addresses`: one call, no loop and no SQL. NOT
token_dex_venues — its First_Trade is the first trade inside its time
window, not the token's first trade. For the full ranked list of early
wallets (sorting, minimum size, windows up to a day) use early_buyers; to
find launches use new_tokens, then pass their addresses here; for
minute-by-minute activity afterwards use token_trade_bars. Parameter
names used elsewhere map as token_address = address, network =
blockchain.
Works for rare and newly-launched tokens.
The first trade is the earliest one Bitquery holds, and trade history
reaches back about 30 days (History_Start is its first day; on Arc it starts
on 2026-09-16, when Arc trades begin), so for an older token it is a lower
bound, not the launch: when Launch_May_Predate_History = 1 the first trade
falls on that first day and the real launch may be older — say so instead
of calling it the launch. A token that stopped trading and later resumed is
also anchored at its first trade inside that history. On Solana, trades
within the same second can be recorded out of order, so First_Trade_Time is
exact but First_Tx / First_Pool can be another trade of that same second.
Window_Complete = 0 means the window has not fully elapsed yet, so the
counts are still growing.
Columns: Token_Address, Network, First_Trade_Time (first_trade_time),
First_Tx (first_tx), First_Pool (first_pool), First_Protocol
(first_protocol), Launch_May_Predate_History, History_Start, Window_Seconds
(window_seconds), Window_Complete, Supply_At_Launch (supply_at_launch — NULL
when unknown), First_Price_Usd, Last_Price_Usd_In_Window, Trades_In_Window
(trades_in_window), Buys_In_Window, Sells_In_Window,
Unpriced_Trades_In_Window, Unique_Traders_In_Window
(unique_traders_in_window), Unique_Buyers_In_Window, Wallets_In_First_Block,
Wallets_In_First_10s, Buy_Usd_In_Window (buy_usd_in_window),
Sell_Usd_In_Window (sell_usd_in_window), Volume_Usd_In_Window
(volume_usd_in_window), Top_Wallets (top_wallets). First_Price_Usd is the
first priced trade inside the window.
LIST (`addresses`; an `address` given too joins the list): one row per
token, in the order given, with the columns above except Top_Wallets, plus
Addresses_Requested, Addresses_Invalid and Addresses_Used — the rule is in
the `addresses` parameter — and Addresses_Not_Found, the addresses looked
up with no trade in the history (or none on the requested chain); [] when
every one was found, and when none is found the result is empty. The same
window_seconds applies to every token.
Top_Wallets holds up to 20 objects: trader, trades, buy_usd, sell_usd,
volume_usd, first_time_in_window, first_offset_ms (delay after the token's
first trade) and is_first_block. is_first_block = 1 when the wallet's first
trade in the window shares the block time of the token's first trade (on
chains with several blocks per second this can include the next block); a
wallet traded in the first 10 seconds when first_offset_ms < 10000, and
Wallets_In_First_10s counts those. trader is the transaction SIGNER on the
EVM chains; on Solana the signer that owns the swapped tokens (on a
gas-sponsored swap the user, not the app that paid the fee); often a router
or other contract on Tron; a bot's own contract is found through
trader_trades and the chain's tx_transfers tool.
Wallets that only SOLD inside the window
are included — tokens received without a trade and dumped at launch show up
here. USD figures value each swap at the lower of its two priced sides;
Unpriced_Trades_In_Window counts swaps without a price. Supply_At_Launch and
prices are NULL when unknown. An empty result means the address never traded
on that chain within the history.
Pass `blockchain` whenever it is known (for a list it applies to every
address); without it the chain of each token's earliest trade is used and
returned as Network.
Token ohlcv
OHLC PRICE HISTORY of a token: OHLC / OHLCV candles (open, high, low, close,
volume) over time for ONE token or up to 50 — the data behind a price chart
or candlestick chart. Use for "price of <token> over time", "OHLC",
"candles", "price chart", "historical price between two dates", "price at
<time>", volatility. NOT a single latest price (use token_price); for a
well-known coin with no chain pinned use currency_ohlcv; for trade counts
and traders per bucket built from individual swaps use token_trade_bars.
Covers Ethereum, Arbitrum, Base, Matic, Optimism, Binance Smart Chain, Tron,
Solana, Robinhood and Arc, including rare and newly-launched tokens; resolve a
symbol with `find_tokens` first.
Candles of `interval_seconds`: 1, 3, 5, 10, 30, 60, 300, 900, 1800 or 3600
(for 4h / 1d candles request 3600 and aggregate). Period: `after_time` /
`before_time` (UTC), or `window_hours` back from before_time or now —
after_time wins; about 30 days of history. Newest candle first (`order` =
oldest flips it), at most `limit` candles per token; to page back pass the oldest
Time as before_time. Every row carries Token_Address and Network. Batch:
up to 50 addresses, separated by `|`, `,` or spaces; every row carries
Addresses_Requested, Addresses_Invalid and Addresses_Used — the rule is in
the `address` parameter — and Addresses_Not_Found, the addresses looked up
that have no candle in the window (when nothing is found the result is empty, so no row carries the list). An empty `address` is the chain's
native coin (on Solana wrapped SOL; Arc has none — use currency_ohlcv with
usdc). Latest tick: interval_seconds=1, window_hours=1,
first row (larger candles lag by up to their size).
One row per candle (re-written copies of an open candle are collapsed).
A candle's High and Low cover EVERY swap in it, however small and in
whichever pool, and a swap's price is worked out from its own two amounts,
so one tiny or unusual swap can stretch them far past anything that could
actually be traded at — the closes are the robust series.
Market_Cap_Usd needs a known circulating supply — null is normal for
long-tail tokens; Fdv_Usd is the total-supply valuation — call it FDV, never
market cap. Both are null when the supply is unknown or not credible (e.g.
parked on a burn address), and they are this token's OWN valuation: `null`
for a token that stands for a multi-chain or bridged asset (WETH, WBTC,
USDC, LINK on each of its chains). Asset_Market_Cap_Usd / Asset_Fdv_Usd
carry the whole asset's figures on every candle. token_price says which
case applies. For a well-known coin
(USDC, USDT, WETH, WBTC, BTC, ETH, SOL, DAI, …) with no chain or contract
pinned prefer currency_ohlcv — it aggregates the asset across chains.
Token price
Latest single-point price / market cap / supply / FDV for ONE token or a
BATCH of up to 50 tokens (by address, optional chain). Use for "price of
<token>", "market cap of <address>", "current prices of a list of tokens".
NOT Hyperliquid: a perp / spot / HIP-3 market there is hyperliquid_price.
NOT a time series — use token_ohlcv for charts/history; for a well-known
coin with no chain pinned use currency_price.
Returns one row per token with the most recent on-chain USD price, the
valuation price the market cap and FDV are computed from, market cap,
total / circulating / max supply, fully-diluted valuation and the
start of the latest hourly interval Bitquery has seen. Backed by
Bitquery's DEX index across Ethereum, Arbitrum, Base, Matic, Optimism,
Binance Smart Chain, Tron, Solana, Robinhood and Arc — works for rare / long-tail /
newly-launched tokens.
BATCH: put several addresses in `address` (up to 50, separated by `|`, `,`
or spaces) — one call instead of one call per token. Every row carries
Addresses_Requested, Addresses_Invalid and Addresses_Used; the rule is in
the `address` parameter; Addresses_Not_Found lists the addresses looked
up that returned no row ([] when every one was found; when nothing is found the result is empty, so no row carries the list). Rows come back in
the order the addresses were
given, one row per (address, chain); an address with no trade in the last
7 days returns no row. With `blockchain` empty, every chain an address trades on gets its
own row (the same 0x address can be a different token on another chain) —
pass the chain whenever it is known.
NATIVE COIN: an empty `address` with `blockchain` set is that chain's
native coin — ETH, BNB, MATIC or TRX (a row with an empty Token_Address).
On Solana it returns wrapped SOL (mint
So11111111111111111111111111111111111111112, symbol WSOL), the form SOL
trades in on DEXes, at SOL's price. Arc has no native-coin row and the
call is rejected: its gas token USDC is the token
0x3600000000000000000000000000000000000000.
VALUATION PRICE — `Market_Cap_Usd` and `Fdv_Usd` are
`Valuation_Price_Usd` x the supply, so every valuation in a row can be
recomputed from a price in the same row. `Valuation_Price_Usd` is the
average price of the newest hour in which real volume changed hands, NOT
the latest single swap: one odd or tiny swap prints a price nobody could
trade at, and an hour can close with no real volume behind it at all, which
was putting valuations out by a factor of thousands.
`Last_Price_Usd` is still that latest swap, so it can sit far from
`Valuation_Price_Usd` — when it does, the token last really traded at the
valuation price and the latest print is an outlier or an hour with no
real volume. Quote `Valuation_Price_Usd` whenever you quote a market cap
or an FDV, and say so when the latest price differs from it.
The same basis is used by `token_price`, `token_supply`, `currency_price`,
`currency_supply`, `find_tokens`, `find_token_by_address`,
`trending_tokens`, `new_tokens` and `launch_cohort`, so a valuation does
not change from one of them to the next. Which hour counts as real volume
is judged against the volume of the period a tool reads, so a tool that
looks further back can pick an older hour than one reading only the last
few hours; for something whose recent trading is thin the two valuations
can differ, and the wider one is the better-supported figure.
MARKET CAP vs FDV — `Market_Cap_Usd` is circulating-supply based and is
returned ONLY when a circulating supply is actually known for the token;
otherwise it is `null`. Most long-tail tokens have no circulating-supply
figure, so `null` is normal and does NOT mean the token is untraded — read
`Fdv_Usd` (the total-supply valuation) instead, and call it FDV, never
"market cap". `Fdv_Usd` is itself `null` when even the total supply is
unknown — then no valuation at all is available for this token, and
`Total_Supply` / `Circulating_Supply` are `null` too. A supply figure
that is not known is always `null` (unknown), never 0. A circulating
supply reported above the total supply is capped at the total, and the
market cap then equals the FDV.
BOTH valuations (token and Asset_* alike) are additionally WITHHELD (`null`,
with a non-empty `Valuation_Warning`) when the supply behind them is not credible: a supply
far larger than any real token, or a resulting valuation larger than any
plausible market. Mint-and-burn tokens report exactly that — supply parked
on a burn address (`0x…dead`, `0x0`) still counts in `Total_Supply`, so the
raw valuation lands many orders of magnitude above anything real. When
`Valuation_Warning` is set, report the valuation as unavailable and say
why — do NOT rebuild it yourself from supply x price. To see how much of
the supply is burned, call the chain's `<chain>_token_holders` tool
(`chain_capabilities` lists the chains that have one).
TOKEN vs ASSET — Total_Supply, Circulating_Supply, Max_Supply,
Market_Cap_Usd and Fdv_Usd are THIS token's own figures. They are `null`
for a token that stands for a multi-chain or bridged asset (WETH, WBTC,
USDC, LINK on each of its chains, ETH on a layer-2): the data holds only
the whole asset's supply for it. Asset_Currency_Id, Asset_Total_Supply,
Asset_Circulating_Supply, Asset_Market_Cap_Usd and Asset_Fdv_Usd always
hold the whole asset's figures (equal to the token's own when the token is
its own asset) — use them for "market cap of USDC / WETH" and say they are
the asset's. When the asset exists on one chain only (e.g. PUMP),
Asset_Fdv_Usd is effectively this token's FDV. A bridged copy listed
under its own id but carrying the asset's supply also gets a
Valuation_Warning.
`Symbol_NonAscii` = 1 flags a `Token_Symbol` that is not plain ASCII. That
is normal for CJK / emoji token names, but it is also how a scam token
impersonates a major one: Cyrillic or Greek look-alike letters make a fake
`USDT` / `SOL` / `BTC` read identically to a human. Never treat such a
token as the asset it resembles — say the symbol is a look-alike.
Use `find_tokens` or `find_token_by_address` first if you only have a
name / symbol and need to resolve the correct address + blockchain.
IF THE USER IS ASKING ABOUT A WELL-KNOWN CRYPTOCURRENCY (USDC, USDT,
WETH, WBTC, BTC, ETH, SOL, DAI, …) AND HAS NOT PINNED A SPECIFIC
BLOCKCHAIN OR CONTRACT, prefer `currency_price` instead — it
aggregates every token of that asset across every indexed chain and
gives a better price estimate and wider coverage than this
single-contract query.
IF THE USER EXPLICITLY WANTS A REAL-TIME / UP-TO-THE-SECOND QUOTE
("right now", "current price", "latest tick"), this tool reads from
the 1-hour bucket and can lag up to 1 hour. Call `token_ohlcv` with
`interval_seconds=1` and `window_hours=1` instead and take the first
row — 1 s is the finest granularity Bitquery stores.
Names longer than 128 characters and symbols longer than 32 are cut and end
in `…` (spam tokens carry names of up to 34,000 characters).
Token supply
Latest SUPPLY only (total / circulating / max), market cap and FDV for ONE
token or a BATCH of up to 50 tokens by address (+ optional chain). Use when
the user asks ONLY about supply / market cap, not price. Does NOT return
price / OHLC / volume — use token_price for the current price, token_ohlcv
for a series; for a well-known coin with no chain pinned use
currency_supply.
Backed by Bitquery's DEX index across Ethereum, Arbitrum, Base,
Matic, Optimism, Binance Smart Chain, Tron, Solana, Robinhood and Arc — works for
rare / long-tail / newly-launched tokens. Use `find_tokens` /
`find_token_by_address` first if you only have a symbol and need
to resolve the correct address + blockchain.
BATCH: several addresses (up to 50, separated by `|`, `,` or spaces). Every
row carries Addresses_Requested, Addresses_Invalid and Addresses_Used; the
rule is in the `address` parameter; Addresses_Not_Found lists the
addresses looked up that returned no row ([] when every one was found;
when nothing is found the result is empty, so no row carries the list).
One row per (address,
chain), in the order given; an address with no trade in the last 7 days
returns no row. With `blockchain` empty every chain the address trades on
gets its own row. An empty `address` is the chain's native coin (see that
parameter; on Solana wrapped SOL, on Arc none).
VALUATION PRICE — `Market_Cap_Usd` and `Fdv_Usd` are
`Valuation_Price_Usd` x the supply, so every valuation in a row can be
recomputed from a price in the same row. `Valuation_Price_Usd` is the
average price of the newest hour in which real volume changed hands, NOT
the latest single swap: one odd or tiny swap prints a price nobody could
trade at, and an hour can close with no real volume behind it at all, which
was putting valuations out by a factor of thousands.
It can therefore differ from the `Last_Price_Usd` that `token_price` returns
for the same token — that one is the latest swap. Quote
`Valuation_Price_Usd` whenever you quote a market cap or an FDV.
The same basis is used by `token_price`, `token_supply`, `currency_price`,
`currency_supply`, `find_tokens`, `find_token_by_address`,
`trending_tokens`, `new_tokens` and `launch_cohort`, so a valuation does
not change from one of them to the next. Which hour counts as real volume
is judged against the volume of the period a tool reads, so a tool that
looks further back can pick an older hour than one reading only the last
few hours; for something whose recent trading is thin the two valuations
can differ, and the wider one is the better-supported figure.
MARKET CAP vs FDV — `Market_Cap_Usd` is circulating-supply based and is
returned ONLY when a circulating supply is actually known for the token;
otherwise it is `null`. Most long-tail tokens have no circulating-supply
figure, so `null` is normal and does NOT mean the token is untraded — read
`Fdv_Usd` (the total-supply valuation) instead, and call it FDV, never
"market cap". `Fdv_Usd` is itself `null` when even the total supply is
unknown — then no valuation at all is available for this token, and
`Total_Supply` / `Circulating_Supply` are `null` too. A supply figure
that is not known is always `null` (unknown), never 0. A circulating
supply reported above the total supply is capped at the total, and the
market cap then equals the FDV.
BOTH valuations (token and Asset_* alike) are additionally WITHHELD (`null`,
with a non-empty `Valuation_Warning`) when the supply behind them is not credible: a supply
far larger than any real token, or a resulting valuation larger than any
plausible market. Mint-and-burn tokens report exactly that — supply parked
on a burn address (`0x…dead`, `0x0`) still counts in `Total_Supply`, so the
raw valuation lands many orders of magnitude above anything real. When
`Valuation_Warning` is set, report the valuation as unavailable and say
why — do NOT rebuild it yourself from supply x price. To see how much of
the supply is burned, call the chain's `<chain>_token_holders` tool
(`chain_capabilities` lists the chains that have one).
TOKEN vs ASSET — Total_Supply, Circulating_Supply, Max_Supply,
Market_Cap_Usd and Fdv_Usd are THIS token's own figures. They are `null`
for a token that stands for a multi-chain or bridged asset (WETH, WBTC,
USDC, LINK on each of its chains, ETH on a layer-2): the data holds only
the whole asset's supply for it. Asset_Currency_Id, Asset_Total_Supply,
Asset_Circulating_Supply, Asset_Market_Cap_Usd and Asset_Fdv_Usd always
hold the whole asset's figures (equal to the token's own when the token is
its own asset) — use them for "market cap of USDC / WETH" and say they are
the asset's. When the asset exists on one chain only (e.g. PUMP),
Asset_Fdv_Usd is effectively this token's FDV. A bridged copy listed
under its own id but carrying the asset's supply also gets a
Valuation_Warning.
`Symbol_NonAscii` = 1 flags a `Token_Symbol` that is not plain ASCII. That
is normal for CJK / emoji token names, but it is also how a scam token
impersonates a major one: Cyrillic or Greek look-alike letters make a fake
`USDT` / `SOL` / `BTC` read identically to a human. Never treat such a
token as the asset it resembles — say the symbol is a look-alike.
IF THE USER IS ASKING ABOUT A WELL-KNOWN CRYPTOCURRENCY (USDC, USDT,
WETH, WBTC, BTC, ETH, SOL, DAI, …) AND HAS NOT PINNED A SPECIFIC
BLOCKCHAIN OR CONTRACT, prefer `currency_supply` instead — it
aggregates every token of that asset across every indexed chain and
gives wider coverage than this single-contract query.
Names longer than 128 characters and symbols longer than 32 are cut and end
in `…` (spam tokens carry names of up to 34,000 characters).
Token trade bars
TRADE-TAPE BARS for ONE token, or for a LIST of up to 50 tokens in one call
(`addresses`), built from the individual swaps — per time bucket (30-second / 1-minute / 5-minute / 15-minute / 1-hour candles of
30s / 1m / 5m / 15m / 1h): trades, buy vs sell trades, buy / sell /
total USD volume, unique traders, open / high / low / close in USD, and FDV /
market cap at the bucket's last trade. Empty buckets are included with 0
trades, so the series has no gaps. Use for "buy vs sell pressure per
minute", "trades and traders every 5 minutes", "volume spikes", "a
30-second chart of a launch", "5-minute buy / sell volume of these 20 tokens".
For a plain price chart over a long period use
token_ohlcv (cheaper); for the individual swaps of a token or pool use
pool_recent_trades; for how a token's launch went use token_launch_stats.
Parameter names used elsewhere map as token_address = address, network =
blockchain, from = after_time, to = before_time.
Works for rare and newly-launched tokens.
WINDOW: after_time (from) / before_time (to) in UTC — "2026-09-15 08:00:00",
a date, or unix seconds; default = the last 24 hours up to now. The window is
widened to whole buckets (start rounded down, end rounded up, end exclusive)
and never runs past now. A value that is not a date-time is rejected with an
error. At most 1440 buckets come back: 30s covers 12 hours, 1m 24 hours, 5m
5 days, 15m 15 days, 1h the whole ~30 days of trade history. A longer window
is cut at its START and keeps its end — with interval=30s the default 24
hours returns only the newest 12 hours — so read the first row's
Bucket_Start for where the series really begins. The last row is the bucket
still in progress. An EMPTY result means the token had no trades in the
window on that chain (or after_time is later than before_time).
Columns: Bucket_Start (bucket_start), Bucket_End (bucket_end, exclusive),
Network, Trades (trades), Buy_Trades (buy_trades), Sell_Trades
(sell_trades), Unpriced_Trades, Buy_Usd (buy_usd), Sell_Usd (sell_usd),
Volume_Usd (volume_usd), Unique_Traders (unique_traders), Open / High / Low /
Close (open / high / low / close, USD), Last_Close, Fdv_Usd, Market_Cap_Usd,
Pool_Address (pool) and Protocol (protocol) — the last two only when
pool_address is set.
Reading the rows: Buy_Trades + Sell_Trades = Trades; a Buy is a swap in
which the trader received this token. USD volume values each swap at the
lower of its two priced sides, so a broken token price cannot inflate it;
Unpriced_Trades counts swaps with no price on either side — the bucket's USD
figures are then partial, and NULL when no swap in it was priced. Open /
High / Low / Close ignore dust swaps under $0.01 (they print junk prices)
and are NULL in a bucket without a priced swap; that cut does not remove
every odd print, since a swap's price is worked out from its own two
amounts, so a small or unusual swap above $0.01 can still stretch a
bucket's High or Low far past anything that could actually be traded at —
the closes are the robust series; Last_Close carries the
latest close through empty buckets for charting. Fdv_Usd is a fully-diluted
valuation — never call it market cap; both are NULL when the supply is
unknown or not credible, and they are this token's OWN valuation: `null`
for a token that stands for a multi-chain or bridged asset (WETH, WBTC,
USDC, LINK on each of its chains), while Asset_Fdv_Usd /
Asset_Market_Cap_Usd carry the whole asset's figures per bucket.
LIST (`addresses`; an `address` given too joins the list): one series per
token, in the order given; every row carries Token_Address and the columns above
except Pool_Address / Protocol, plus Addresses_Requested, Addresses_Invalid
and Addresses_Used — the rule is in the `addresses` parameter — and
Addresses_Not_Found (the addresses with no trade in the window; when none
is found the result is empty). At most 10000 rows in total: every token
gets the same window, cut at its START to 10000 ÷ addresses used buckets
(at most 1440; 200 each for 50 tokens) — read the first row's Bucket_Start.
With `blockchain` empty an address that trades on several chains returns
one series per chain (rows past 10000 are cut), so pass the chain when it
is known. pool_address works with one token only.
Pass `blockchain` whenever it is known: a 0x address can exist on several
chains. Without it one token's bars use the chain with the most trades of
this address in the window, returned as Network. `pool_address` limits the bars to
one pool; `address` must then be the token traded in that pool, not its
quote asset. The bars count swaps in which this token is the traded side of
its pair — for widely used quote assets (WSOL, WETH, USDC) that is only part
of the swaps that touched them; use currency_ohlcv for those.
Top traders by network
Rank trader WALLETS across an ENTIRE network (every token, every pool) in
a recent window. Use for "top DEX traders on <chain> right now". For the
Hyperliquid leaderboard use hyperliquid_top_traders. For one
token use top_traders_by_token; for one pair use top_traders_by_pair.
Trader_Address is the transaction SIGNER on the EVM chains (a
transaction relayed for a smart account counts for that account). On
Solana it is the signer that owns the tokens of this swap or of another
swap in the same transaction — on a gas-sponsored swap (an app pays the
fee and the user co-signs) the user, not the fee payer — else the fee
payer. On Tron it is often a router or other contract the swap passed
through, not the signing account. A bot may sign while its own contract holds
and moves the tokens — to find that contract, open one of
the wallet's Tx_Hash values (trader_trades lists them) with the chain's
tx_transfers tool (eth_tx_transfers, bsc_tx_transfers, …); transfer
tools run on the signer then show few or no outgoing transfers.
Because there is no per-network index, the query scans a time range;
keep `window_hours` small (default 1, max 24). Use `min_trade_usd` to
focus on whales and drop dust trades.
Sort options: volume_usd (default), trades.
WINDOW: after_time / before_time in UTC; when after_time is empty the
window is the window_hours hours before the end; before_time empty = now.
The window is cut to the last 24 hours before its end.
TRADE SIZE IS CROSS-CHECKED: a swap has two sides, so each trade is
valued at the more conservative of the two. A token whose USD price is
stale or manipulated — common on brand-new or thin-liquidity contracts —
therefore cannot inflate a wallet's ranking: such a trade is counted at
what the other side of the swap was actually worth. When the two sides
disagree, the inflated one is almost always the traded token, while the
other side of the swap is a liquid asset whose price is sound — so the
lower figure is what actually changed hands, not a guess. Only when
NEITHER side carries a price is there nothing to report: the USD figures
then come back EMPTY, and you must report that as unavailable (a dash),
never as zero. Unpriced_Trades counts how many of this row's trades had
no price on either side, and Volume_Coverage is the share of trades the
USD totals actually cover (1 = all of them). When Volume_Coverage is
below 1 the USD totals are PARTIAL — say so instead of presenting them
as the full picture.
Top traders by pair
Rank trader WALLETS of a specific token PAIR (base + quote) on one chain,
across every pool that pairs them. Use for "top traders of <BASE>/<QUOTE>".
For a single token (any pair) use top_traders_by_token.
Trader_Address is the transaction SIGNER on the EVM chains (a
transaction relayed for a smart account counts for that account). On
Solana it is the signer that owns the tokens of this swap or of another
swap in the same transaction — on a gas-sponsored swap (an app pays the
fee and the user co-signs) the user, not the fee payer — else the fee
payer. On Tron it is often a router or other contract the swap passed
through, not the signing account. A bot may sign while its own contract holds
and moves the tokens — to find that contract, open one of
the wallet's Tx_Hash values (trader_trades lists them) with the chain's
tx_transfers tool (eth_tx_transfers, bsc_tx_transfers, …); transfer
tools run on the signer then show few or no outgoing transfers.
Choose `sort` for intent (see top_traders_by_token for semantics):
volume_usd (default), trades, net_buy_usd, realized_usd.
Realized_Net_Usd (and sort=realized_usd) is Sell USD − Buy USD over the
window — a CASH FLOW, not profit; per-wallet profit is trader_positions.
WINDOW: after_time / before_time in UTC; when after_time is empty the
window is the window_hours hours before the end; before_time empty = now.
Trade history reaches back about 30 days.
TRADE SIZE IS CROSS-CHECKED: a swap has two sides, so each trade is
valued at the more conservative of the two. A token whose USD price is
stale or manipulated — common on brand-new or thin-liquidity contracts —
therefore cannot inflate a wallet's ranking: such a trade is counted at
what the other side of the swap was actually worth. When the two sides
disagree, the inflated one is almost always the traded token, while the
other side of the swap is a liquid asset whose price is sound — so the
lower figure is what actually changed hands, not a guess. Only when
NEITHER side carries a price is there nothing to report: the USD figures
then come back EMPTY, and you must report that as unavailable (a dash),
never as zero. Unpriced_Trades counts how many of this row's trades had
no price on either side, and Volume_Coverage is the share of trades the
USD totals actually cover (1 = all of them). When Volume_Coverage is
below 1 the USD totals are PARTIAL — say so instead of presenting them
as the full picture. Note that Last_Price_Usd is the
token's last quoted price and is NOT cross-checked — on brand-new or
thin-liquidity contracts it can sit far from what trades actually
cleared at.
Symbols longer than 32 characters are cut and end in `…` (spam tokens carry
symbols of up to 32,000 characters).
Top traders by token
Rank trader WALLETS of ONE token by volume / activity / net-buy /
realized P&L. Use for "top traders / biggest buyers / whales of <token>".
For net accumulation only use accumulating_traders_by_token; for P&L
ranking use profitable_traders_by_token; for the wallets that bought in
the first seconds AFTER a launch use early_buyers (the window here ends
now, it does not start at the launch).
Works for any indexed token incl. rare / newly-deployed / memecoin contracts.
Trader_Address is the transaction SIGNER on the EVM chains (a
transaction relayed for a smart account counts for that account). On
Solana it is the signer that owns the tokens of this swap or of another
swap in the same transaction — on a gas-sponsored swap (an app pays the
fee and the user co-signs) the user, not the fee payer — else the fee
payer. On Tron it is often a router or other contract the swap passed
through, not the signing account. A bot may sign while its own contract holds
and moves the tokens — to find that contract, open one of
the wallet's Tx_Hash values (trader_trades lists them) with the chain's
tx_transfers tool (eth_tx_transfers, bsc_tx_transfers, …); transfer
tools run on the signer then show few or no outgoing transfers.
Ranks trader wallets for a single token on a specific blockchain over
a look-back window. Returns per trader: trade count, total / buy /
sell USD volume, net base-token position (Buy − Sell in base units),
Net_Buy_Usd, Realized_Net_Usd, first and last trade times, plus the
token's last seen USD price. Realized_Net_Usd = Sell USD − Buy USD over
the window: a CASH FLOW, not profit — a wallet selling tokens it bought
before the window reads as a big gain, one still holding what it bought
as a big loss. For profit use profitable_traders_by_token or
trader_positions (Realized_Pnl_Usd / Total_Pnl_Usd).
Choose `sort` to match intent:
- volume_usd — biggest total USD volume (default; "biggest traders")
- trades — most active by trade count ("most active traders")
- net_buy_usd — biggest net accumulators (Buy_USD − Sell_USD)
- realized_usd — biggest net cash-out (Realized_Net_Usd, a cash flow, not profit)
Caveat for STABLECOINS / settlement tokens (USDT, USDC, A7A5, …): DEX volume is
negligible (often a few $), so this returns irrelevant dust. The real movers of such a
token live in TRANSFERS, not swaps — switch to the transfer layer (eth_/tron_flow_edges,
*_trace_next_hop, *_address_profile / *_address_flow_summary) instead.
WINDOW: after_time / before_time in UTC; when after_time is empty the
window is the window_hours hours before the end; before_time empty = now.
Trade history reaches back about 30 days.
TRADE SIZE IS CROSS-CHECKED: a swap has two sides, so each trade is
valued at the more conservative of the two. A token whose USD price is
stale or manipulated — common on brand-new or thin-liquidity contracts —
therefore cannot inflate a wallet's ranking: such a trade is counted at
what the other side of the swap was actually worth. When the two sides
disagree, the inflated one is almost always the traded token, while the
other side of the swap is a liquid asset whose price is sound — so the
lower figure is what actually changed hands, not a guess. Only when
NEITHER side carries a price is there nothing to report: the USD figures
then come back EMPTY, and you must report that as unavailable (a dash),
never as zero. Unpriced_Trades counts how many of this row's trades had
no price on either side, and Volume_Coverage is the share of trades the
USD totals actually cover (1 = all of them). When Volume_Coverage is
below 1 the USD totals are PARTIAL — say so instead of presenting them
as the full picture. Note that Last_Price_Usd is the
token's last quoted price and is NOT cross-checked — on brand-new or
thin-liquidity contracts it can sit far from what trades actually
cleared at.
Symbols longer than 32 characters are cut and end in `…` (spam tokens carry
symbols of up to 32,000 characters).
Trader activity
Bucketed TIMELINE of a wallet's trading activity, or of up to 50 wallets
at once (per minute / 15m / hour / day): trade count, USD volume, buy/sell
split, distinct tokens / pools / networks per bucket. Use for "when was
<wallet> active / trading pattern / hourly activity". For a one-row
summary use trader_profile; for holdings use trader_positions; for the
individual trades use trader_trades.
Trader_Address is the transaction SIGNER on the EVM chains (a
transaction relayed for a smart account counts for that account). On
Solana it is the signer that owns the tokens of this swap or of another
swap in the same transaction — on a gas-sponsored swap (an app pays the
fee and the user co-signs) the user, not the fee payer — else the fee
payer. On Tron it is often a router or other contract the swap passed
through, not the signing account. A bot may sign while its own contract holds
and moves the tokens — to find that contract, open one of
the wallet's Tx_Hash values (trader_trades lists them) with the chain's
tx_transfers tool (eth_tx_transfers, bsc_tx_transfers, …); transfer
tools run on the signer then show few or no outgoing transfers.
WINDOW: after_time / before_time in UTC; when after_time is empty the
window is the window_hours hours before the end (default 168); before_time
empty = now. Trade history reaches back about 30 days. Rows are grouped by
wallet (in the order given), newest bucket first, at most `limit` buckets
per wallet. Addresses_Requested / Addresses_Invalid / Addresses_Used on
every row: distinct entries passed / entries that are not a valid
address, skipped / wallets used; the rule is in the trader_address
parameter.
TRADE SIZE IS CROSS-CHECKED: a swap has two sides, so each trade is
valued at the more conservative of the two. A token whose USD price is
stale or manipulated — common on brand-new or thin-liquidity contracts —
therefore cannot inflate the USD figures: such a trade is counted at
what the other side of the swap was actually worth. When the two sides
disagree, the inflated one is almost always the traded token, while the
other side of the swap is a liquid asset whose price is sound — so the
lower figure is what actually changed hands, not a guess. Only when
NEITHER side carries a price is there nothing to report: the USD figures
then come back EMPTY, and you must report that as unavailable (a dash),
never as zero. Unpriced_Trades counts how many of this row's trades had
no price on either side, and Volume_Coverage is the share of trades the
USD totals actually cover (1 = all of them). When Volume_Coverage is
below 1 the USD totals are PARTIAL — say so instead of presenting them
as the full picture.
Trader positions
Per-TOKEN positions of a wallet, or of up to 50 wallets at once (rows
grouped by wallet, in the order given): what it bought and sold of each
token in a window, the position still held and its current value,
realized / unrealized / total P&L at average cost, average buy / sell
price, how often it opened and closed a position and for how long it held.
Use for "what positions / open bags does <wallet> hold", "P&L of <wallet>
per token", "entry price / average buy price of <wallet> on <token>", "did
it take profit", "how long does it hold". For a one-row summary per wallet
(win rate, total realized P&L) use trader_profile; for the individual
trades use trader_trades; for an activity timeline use trader_activity.
Trader_Address is the transaction SIGNER on the EVM chains (a
transaction relayed for a smart account counts for that account). On
Solana it is the signer that owns the tokens of this swap or of another
swap in the same transaction — on a gas-sponsored swap (an app pays the
fee and the user co-signs) the user, not the fee payer — else the fee
payer. On Tron it is often a router or other contract the swap passed
through, not the signing account. A bot may sign while its own contract holds
and moves the tokens — to find that contract, open one of
the wallet's Tx_Hash values (trader_trades lists them) with the chain's
tx_transfers tool (eth_tx_transfers, bsc_tx_transfers, …); transfer
tools run on the signer then show few or no outgoing transfers.
WINDOW: after_time / before_time in UTC; when after_time is empty the
window is the window_hours hours before the end (default 168); before_time
empty = now. Trade history reaches back about 30 days. Everything is
window-scoped: holdings from before the window are not seen, and only DEX
swaps are (transfers, airdrops and gas are not).
P&L AT AVERAGE COST (positions opened inside the window):
- Realized_Pnl_Usd: profit on what was SOLD — each sale is charged the
average price of the in-window buys still held, in time order. Empty
when nothing was matched. Realized_Roi_Pct = Realized_Pnl_Usd / cost of
the matched quantity × 100.
- Matched_Sell_Base: quantity sold against those buys. Unmatched_Sell_Base:
sold with no in-window buy behind it (bought before the window or
received by transfer) — in NO P&L column; when it is large the P&L
covers only part of the selling.
- Open_Base = quantity bought in the window − Matched_Sell_Base (the
in-window position still held); Open_Cost_Usd = its average cost.
- Unrealized_Pnl_Usd = Open_Base × Last_Price_Usd − Open_Cost_Usd; empty
when nothing is open or the price is unknown.
- Total_Pnl_Usd = Realized_Pnl_Usd + Unrealized_Pnl_Usd, a side with
nothing to report counting 0. Empty when these columns were not
computed (Pnl_Status not ok), the token has no priced trade in the
window, or an open position has no current price.
- Position_Value_Usd = Open_Base × Last_Price_Usd — the value of the
position Total_Pnl_Usd is about. Where the average-cost columns were
not computed it falls back to Net_Base × Last_Price_Usd.
- Last_Price_Usd: the token's latest on-chain price (last 6 hours; empty
when it did not trade then). Avg_Buy_Price_Usd / Avg_Sell_Price_Usd:
USD per token over the priced buys / sells.
- Closed_Rounds: positions opened and sold out (down to 1% or less)
inside the window; Avg_Hold_Seconds: from a round's first buy to the
sale that closed it; Open_Since: when the round still open started.
CASH-FLOW COLUMNS (every trade; they assume the wallet held NOTHING when
the window started):
- Net_Base = Bought_Base − Sold_Base (native units); it equals Open_Base −
Unmatched_Sell_Base when every trade is priced.
- Net_Cash_Flow_Usd = Sell USD − Buy USD, a CASH FLOW, not profit.
Realized_Usd is kept for compatibility and equals Net_Cash_Flow_Usd
(deprecated: use Net_Cash_Flow_Usd; removal would be a breaking change) —
never present either as profit; profit is Realized_Pnl_Usd.
- Cash_Flow_Pnl_Usd = Net_Cash_Flow_Usd + Net_Base × Last_Price_Usd (what
Total_Pnl_Usd used to be): it charges the wallet the current value of
tokens it held before the window and sold inside it — quote
Total_Pnl_Usd instead.
Also: Trade_Count, Buys, Sells, Volume_Usd, Buy_Volume_Usd,
Sell_Volume_Usd, Unpriced_Trades, Volume_Coverage, First_Trade /
Last_Trade, First_Buy_Time / Last_Sell_Time, Window_Start / Window_End,
Addresses_Requested / Addresses_Invalid / Addresses_Used,
Symbol_NonAscii, Status, Pnl_On, Pnl_Status.
Trades with no USD price on either side are left out of the average-cost
figures. Swaps inside one transaction have no known order: buys are taken
before sells there. The average-cost columns are computed only while the
call covers at most 2,000,000 trades; above that they are empty and
Pnl_Status says so (Pnl_On = 1 when they were computed) — narrow the
window, blockchain or token, or pass fewer wallets. A call covering more
than 50,000,000 trades is not computed at all: it returns one row per
wallet whose Status is TOO_LARGE and whose figures are empty — narrow it
the same way. Otherwise Status = ok.
A position whose current value is UNKNOWN (Position_Value_Usd empty —
no recent price for the token) is always returned, whatever
`min_position_usd` says, so it cannot be silently dropped. Only positions
where |Position_Value_Usd| ≥ `min_position_usd` are returned.
A token appears only through the swaps in which it is the traded token of
the pool: a wallet that pays WETH, SOL or USDC for memecoins shows the
memecoins, and its WETH / SOL / USDC row covers only the swaps where that
coin itself was bought or sold against another asset.
Sort options (per wallet): position_usd (default, |Position_Value_Usd|
DESC), pnl_usd (Total_Pnl_Usd), realized_usd (Net_Cash_Flow_Usd, a cash
flow), realized_pnl_usd, volume_usd, last_trade.
TRADE SIZE IS CROSS-CHECKED: a swap has two sides, so each trade is
valued at the more conservative of the two. A token whose USD price is
stale or manipulated — common on brand-new or thin-liquidity contracts —
therefore cannot inflate the USD figures: such a trade is counted at
what the other side of the swap was actually worth. When the two sides
disagree, the inflated one is almost always the traded token, while the
other side of the swap is a liquid asset whose price is sound — so the
lower figure is what actually changed hands, not a guess. Only when
NEITHER side carries a price is there nothing to report: the USD figures
then come back EMPTY, and you must report that as unavailable (a dash),
never as zero. Unpriced_Trades counts how many of this row's trades had
no price on either side, and Volume_Coverage is the share of trades the
USD totals actually cover (1 = all of them). When Volume_Coverage is
below 1 the USD totals are PARTIAL — say so instead of presenting them
as the full picture. Note that
Last_Price_Usd is the token's last quoted price and is NOT
cross-checked — on brand-new or thin-liquidity contracts it can sit far
from what trades actually cleared at, so any figure derived from it
(position value, unrealized PnL) inherits that error. A swap the index
recorded twice (about 1% of Solana swaps) is counted twice here;
trader_trades lists it once.
Symbol_NonAscii = 1 marks a Token_Symbol that is not plain ASCII: it can
be a look-alike built from Greek/Cyrillic letters that renders like a
well-known ticker. Trust Token_Address, not the symbol.
Symbols longer than 32 characters are cut and end in `…` (spam tokens carry
symbols of up to 32,000 characters).
Trader profile
One SUMMARY row per wallet over a window — pass one wallet or up to 50
(separated by |, commas or spaces). Trade count, buy/sell USD volume, cash flow, realized P&L
and win rate, holding time, distinct tokens / pools / networks, biggest &
average trade, first/last trade, networks and DEX protocol families used.
Use for "tell me about / profile this wallet", "compare these wallets",
"win rate / P&L / holding time of these wallets". DEX swaps only — a
wallet's Hyperliquid perp activity is hyperliquid_trader_summary /
hyperliquid_trader_positions. For per-token positions, unrealized and
total P&L use trader_positions; for the individual trades use
trader_trades; for an activity timeline use trader_activity.
Trader_Address is the transaction SIGNER on the EVM chains (a
transaction relayed for a smart account counts for that account). On
Solana it is the signer that owns the tokens of this swap or of another
swap in the same transaction — on a gas-sponsored swap (an app pays the
fee and the user co-signs) the user, not the fee payer — else the fee
payer. On Tron it is often a router or other contract the swap passed
through, not the signing account. A bot may sign while its own contract holds
and moves the tokens — to find that contract, open one of
the wallet's Tx_Hash values (trader_trades lists them) with the chain's
tx_transfers tool (eth_tx_transfers, bsc_tx_transfers, …); transfer
tools run on the signer then show few or no outgoing transfers.
WINDOW: after_time / before_time in UTC; when after_time is empty the
window is the window_hours hours before the end (default 168); before_time
empty = now. Trade history reaches back about 30 days. Rows come back in
the order the wallets were given; a wallet with no trade in the window has
no row.
COLUMNS (one row per wallet):
- Addresses_Requested / Addresses_Invalid / Addresses_Used: distinct
entries passed / entries that are not a valid address, skipped / wallets
used (at most 50); the rule is in the trader_address parameter.
- Window_Start / Window_End: the window used.
- Trade_Count, Buys, Sells, Volume_Usd, Buy_Volume_Usd, Sell_Volume_Usd,
Unpriced_Trades, Volume_Coverage, Max_Trade_Usd, Avg_Trade_Usd,
First_Trade / Last_Trade, Distinct_Tokens / Distinct_Pools /
Distinct_Networks, Networks_Traded, Protocol_Families_Used.
- Net_Cash_Flow_Usd = Sell USD − Buy USD: a CASH FLOW, not profit —
tokens bought and still held count against it, so an accumulating
wallet reads as a large "loss". Realized_Usd is kept for compatibility
and equals Net_Cash_Flow_Usd (deprecated: use Net_Cash_Flow_Usd; removal
would be a breaking change); never present either as P&L — profit is
Realized_Pnl_Usd.
- Realized_Pnl_Usd: profit on what the wallet SOLD, at average cost,
summed over its tokens (the sum of trader_positions' Realized_Pnl_Usd
for the same window): each sale is charged the average price of the
wallet's in-window buys of that token still held. Sales of tokens
bought BEFORE the window have no cost here and are left out (per token
they are Unmatched_Sell_Base in trader_positions), so on a short window
it covers only part of the selling. There is no unrealized part in this
row — trader_positions has Unrealized_Pnl_Usd and Total_Pnl_Usd.
- Tokens_With_Realized_Pnl: tokens with such matched sales;
Winning_Tokens / Losing_Tokens split them by the sign of their realized
P&L; Win_Rate = Winning_Tokens / Tokens_With_Realized_Pnl.
- Closed_Rounds: positions opened and sold out (down to 1% or less)
inside the window; Avg_Hold_Seconds / Median_Hold_Seconds: from the
first buy of such a round to the sale that closed it.
- Pnl_On / Pnl_Status: the P&L columns are computed only while the call
covers at most 2,000,000 trades; above that they are empty, Pnl_On = 0
and Pnl_Status says so — narrow the window or blockchain, or pass fewer
wallets.
Trades without a USD price on either side are left out of the P&L
figures. Swaps inside one transaction have no known order: buys are taken
before sells there. Only DEX swaps are seen: transfers in or out,
airdrops and gas are not.
TRADE SIZE IS CROSS-CHECKED: a swap has two sides, so each trade is
valued at the more conservative of the two. A token whose USD price is
stale or manipulated — common on brand-new or thin-liquidity contracts —
therefore cannot inflate the USD figures: such a trade is counted at
what the other side of the swap was actually worth. When the two sides
disagree, the inflated one is almost always the traded token, while the
other side of the swap is a liquid asset whose price is sound — so the
lower figure is what actually changed hands, not a guess. Only when
NEITHER side carries a price is there nothing to report: the USD figures
then come back EMPTY, and you must report that as unavailable (a dash),
never as zero. Unpriced_Trades counts how many of this row's trades had
no price on either side, and Volume_Coverage is the share of trades the
USD totals actually cover (1 = all of them). When Volume_Coverage is
below 1 the USD totals are PARTIAL — say so instead of presenting them
as the full picture. A swap the index recorded twice (about 1% of Solana
swaps) is counted twice here; trader_trades lists it once.
Trader trades
ROW-BY-ROW DEX TRADE LIST of a wallet, or of up to 50 wallets at once: one
row per swap with time, transaction, network, DEX and pool, side, token and
quote amounts, USD value, price and the token's market cap at that moment.
Answers "show / list / export the trades of <wallet>", "what did this wallet
buy or sell on <token>", "latest trades of these wallets", "first trades of
this wallet", "biggest trades of <wallet>". NOT a summary: for totals use
trader_profile, for per-token positions and realized P&L use
trader_positions, for an activity timeline use trader_activity. Parameter
names used elsewhere map as trader_address / wallet = address, network =
blockchain, from / to = after_time / before_time.
Trader_Address is the transaction SIGNER on the EVM chains (a
transaction relayed for a smart account counts for that account). On
Solana it is the signer that owns the tokens of this swap or of another
swap in the same transaction — on a gas-sponsored swap (an app pays the
fee and the user co-signs) the user, not the fee payer — else the fee
payer. On Tron it is often a router or other contract the swap passed
through, not the signing account. A bot may sign while its own contract holds
and moves the tokens — to find that contract, open one of
the wallet's Tx_Hash values (trader_trades lists them) with the chain's
tx_transfers tool (eth_tx_transfers, bsc_tx_transfers, …); transfer
tools run on the signer then show few or no outgoing transfers.
WINDOW: after_time / before_time in UTC ("2026-09-15 08:00:00", a date, or
unix seconds). Empty after_time = 24 hours before the window end; empty
before_time = now. Trade history reaches back about 30 days; a longer
window is cut to the last 31 days before its end.
FILTERS: blockchain, token (the traded token's contract / mint, or
"native"), pool, side (buy / sell), min_usd.
ORDER AND PAGING: sort=recent (default, newest first) or sort=oldest
(oldest first). Every row carries a Cursor; pass the Cursor of the LAST row
as cursor, with the same filters and window, to get the next page. The walk
is complete when a page comes back empty. sort=usd returns the largest
trades of the window as a TOP-N whose Cursor is EMPTY — it is not a page
walk; start a walk with recent or oldest.
READING A ROW: Side = Buy means the wallet received Amount of the token
(Token_*) and paid Quote_Amount of the quote asset (Quote_*); Sell is the
reverse. Each swap is listed once, under the token the index treats as the
traded token of that pool: a swap that paid WETH / SOL / USDC for a
memecoin is a Buy of the memecoin, not a Sell of WETH. Usd values the swap
at the LOWER of its two priced sides, because a stale or manipulated token
price inflates one side (see top_traders_by_token); Usd is empty when
neither side carries a price — report that as unavailable, never as zero.
Usd_Token_Side / Usd_Quote_Side are the two sides as recorded. Price_Usd is
the token's quoted USD price at the trade and is not cross-checked;
Price_In_Quote is quote units per token. Market_Cap_Usd / Fdv_Usd are the
token's values at the time of the trade, empty when unknown. Pool_Id is set
for pools that live inside a shared pool manager (Uniswap v4 style), where
Pool_Address is the manager.
Several equal fills inside one transaction are separate rows (they share
Tx_Hash and differ only in Cursor); a swap recorded twice by the indexer is
listed once. The order of swaps inside one transaction is not known.
Addresses_Requested / Addresses_Invalid / Addresses_Used on every row:
distinct entries passed / entries that are not a valid address, skipped /
wallets used; the rule is in the address parameter.
Names longer than 128 characters and symbols longer than 32 are cut and end
in `…` (spam tokens carry names of up to 34,000 characters).
Trending tokens
Ranked LIST of the hottest / trending tokens by volume (or gainers /
losers / most volatile), optionally on one chain — also a network
SCREENER over a past period (after_time / before_time) with FDV,
price-change and address-pattern filters. Use for open-ended "what's hot /
top movers / what's pumping today / top Base tokens on Sept 3". For
Hyperliquid markets use hyperliquid_markets (sort=change). NOT for one
named token — use token_price / token_ohlcv for that; NOT for tokens that
launched just now — use new_tokens, which ranks by FIRST trade.
Surfaces freshly-launched memecoins and long-tail tokens (Ethereum, Arbitrum,
Base, Matic, Optimism, Binance Smart Chain, Tron, Solana, Robinhood, Arc).
Aggregates hourly bars over a window and returns per token: total USD
volume, first/last USD price and % change over the window, latest market
cap / FDV, the latest interval seen, and the window actually used
(Window_Start inclusive, Window_End exclusive, UTC). First_Price_Usd is the
open of the token's first hourly bar in the window (for a token launched
inside it, the bar of its whole launch hour).
WINDOW — default: the last `window_hours` (1–168) up to now. For a PAST
period pass after_time and/or before_time (UTC, e.g. "2026-09-03" or
"2026-09-03 14:00"): with both, the window is [after_time, before_time);
with only after_time it runs to now; with only before_time it is the
`window_hours` that end there. Edges round outward to whole hours, the
window is at most 168 hours (a longer one keeps its newest 168), and only
the last 30 days are kept. A window that selects no retained hour (or has
after_time ≥ before_time) is an error, not an empty list.
VALUATION PRICE — `Market_Cap_Usd` and `Fdv_Usd` are
`Valuation_Price_Usd` x the supply, so every valuation in a row can be
recomputed from a price in the same row. `Valuation_Price_Usd` is the
average price of the newest hour in which real volume changed hands, NOT
the latest single swap: one odd or tiny swap prints a price nobody could
trade at, and an hour can close with no real volume behind it at all, which
was putting valuations out by a factor of thousands.
`Last_Price_Usd` is still that latest swap, so it can sit far from
`Valuation_Price_Usd` — when it does, the token last really traded at the
valuation price and the latest print is an outlier or an hour with no
real volume. Quote `Valuation_Price_Usd` whenever you quote a market cap
or an FDV, and say so when the latest price differs from it.
The same basis is used by `token_price`, `token_supply`, `currency_price`,
`currency_supply`, `find_tokens`, `find_token_by_address`,
`trending_tokens`, `new_tokens` and `launch_cohort`, so a valuation does
not change from one of them to the next. Which hour counts as real volume
is judged against the volume of the period a tool reads, so a tool that
looks further back can pick an older hour than one reading only the last
few hours; for something whose recent trading is thin the two valuations
can differ, and the wider one is the better-supported figure.
`Price_Change_Pct` is the exception: it compares the window's FIRST and
LAST price directly, both single swaps, and is NOT measured on
`Valuation_Price_Usd` — a token can therefore show a price change that
its market cap and FDV do not follow.
`Market_Cap_Usd` is circulating-supply based and is `null` when no
circulating supply is known for the token — normal for most long-tail and
freshly-launched tokens, and not a sign the token is untraded. `Fdv_Usd`
(the total-supply valuation) is returned alongside it; label that number
FDV, never "market cap", and treat a huge one with suspicion — supply that
was minted and then parked on a burn address (`0x…dead`, `0x0`) still
counts in the total supply behind it. Do NOT rank or headline tokens by
`Fdv_Usd`. Both valuations, and the Asset_* figures below, are WITHHELD
(`null`, with a non-empty `Valuation_Warning`) when the supply or valuation
behind them is implausible — report the valuation as unavailable, do not
rebuild it from price × supply.
TOKEN vs ASSET — Market_Cap_Usd and Fdv_Usd are THIS token's own
valuation. They are `null` for a token that stands for a multi-chain or
bridged asset (WETH, WBTC, USDC, LINK on each of its chains, ETH on a
layer-2): the data holds only the whole asset's supply for it.
Asset_Currency_Id, Asset_Market_Cap_Usd and Asset_Fdv_Usd always hold the
whole asset's figures (equal to the token's own when the token is its own
asset) — say they are the asset's. When the asset exists on one chain
only (e.g. PUMP), Asset_Fdv_Usd is effectively this token's FDV. A bridged
copy listed under its own id but carrying the asset's supply also gets a
Valuation_Warning. The FDV filters read Fdv_Usd, or Asset_Fdv_Usd where
the token's own is `null`.
LOOK-ALIKES: `Symbol_Lookalike` = 1 means the token carries the symbol of an
established asset on the same chain (letters that only look alike count as
the same, e.g. a Cyrillic `О` in `SОL`) but is a DIFFERENT token from the
one that symbol denotes there — never present it as that asset.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII (normal for
CJK / emoji names). Look-alikes, and tokens with an implausible supply or
valuation that are not a recognised asset, are listed AFTER all other
rows, whatever the sort — their volume is often wash trading.
Choose `sort` to match intent:
- volume_usd — biggest USD volume (default; "most traded / hot")
- gainers — biggest positive % price change ("top pumpers")
- losers — biggest negative % price change ("biggest dumps")
- price_change — biggest absolute % move either direction ("most volatile")
Use `min_volume_usd` to filter out dust / illiquid tokens when
ranking by price change, otherwise a $10 token with a 10000x print
will dominate. Screener filters (all optional, combine freely):
min_fdv_usd / max_fdv_usd (latest FDV; tokens without a known FDV are
dropped while either is set), min_price_change_pct / max_price_change_pct
(window % change; tokens without a usable first price are dropped while
either is set), address_pattern (launchpad family, e.g. `%pump`).
Trade and trader counts are not in this list, and volume alone does not
prove a market: two wallets swapping a token back and forth against another
worthless token print any volume they like. Before presenting an unfamiliar
token from the top of the list, pass its address (several candidates can go
in one call, up to 50) to token_dex_venues with group_by=token and the same
window — Trade_Count and Distinct_Traders show how many swaps and traders
are behind the volume; a handful of traders behind millions of dollars
points to wash trading.
Names longer than 128 characters and symbols longer than 32 are cut and end
in `…`; Name_Truncated / Symbol_Truncated = 1 marks a cut value.
Tron address flow summary
ADDRESS FLOW SUMMARY / top counterparties: who a Tron (trx, TRX, TRON) address sends funds TO and receives funds FROM, in one call — profile (sent/received transfer
counts, distinct receivers/senders) + TOP receivers AND TOP senders. Collapses
address_profile + trace_next_hop(out) + an incoming convergence into a single call —
call this FIRST when triaging a hop. Returns a computed Role:
receive_only (no outgoing transfer in the period) / send_only (no incoming one) /
no_transfers (neither) / consolidator (senders ≫ receivers) / distributor (receivers ≫
senders) / hub (thousands of both — don't trace deeper) / relay. The profile counts
and Role ALWAYS cover all tokens: currency and contract narrow only the top arrays
(tron_address_profile applies them to every count). Pass the returned counterparties to labels_for_addresses to identify them. For
raw rows use tron_transfers_in/out; for one direction's full ranking use
tron_trace_next_hop. READING THE TOP ARRAYS: one entry per (counterparty, TOKEN) — the
same address repeats once per token it moved. Symbols are not unique; identify a token
by `contract`. On a very high-traffic address (an exchange or bridge hub) this
aggregates a lot of history and can take tens of seconds — narrow it with contract or
currency to one token to make it far faster.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
after_time / before_time bound BOTH the profile counts and the top arrays to one period
(without them both cover the whole history).
Counts and arrays are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trading account can
show few or no outgoing transfers here. To find the address that really moves its
tokens, open one of its transaction hashes (for example a Tx_Hash from trader_trades)
with tron_tx_transfers, then trace that address (tron_contract_creator with creator
set to this account lists the contracts it deployed).
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Tron address profile
Tron (trx, TRX, TRON) address STATISTICS — successful transfer counts out/in and distinct
counterparties. Triage an address during tracing. For one-call triage that ALSO
returns the top counterparties, prefer tron_address_flow_summary.
Role from the ratio: senders ≫ receivers = consolidator / sweep; receivers ≫
senders = distributor; ~1↔1 = relay (layering); thousands of both = mega-hub
(exchange / treasury — don't trace deeper). No outgoing transfers at all =
receive-only and no incoming = send-only, not a consolidator / distributor.
First_Sent / Last_Sent / First_Received / Last_Received = first and last transfer in each
direction. Bound a period with after_time / before_time; restrict to one token with
contract (or currency) to also get Sent_Amount / Received_Amount in that token's units -
without a token filter the amounts are NULL, because different tokens cannot be added.
currency / contract (like after_time / before_time) narrow EVERY count, time and
amount here - unlike tron_address_flow_summary, whose profile counts always cover
all tokens.
The counts are the transfers OF THIS ADDRESS itself. A bot account signs its
transactions while a contract it controls holds and moves the tokens - the contract
its transactions go TO, or a separate one - so a very active trading account can
show few or no outgoing transfers here. To find the address that really moves its
tokens, open one of its transaction hashes (for example a Tx_Hash from trader_trades)
with tron_tx_transfers, then trace that address (tron_contract_creator with creator
set to this account lists the contracts it deployed).
Tron contract creator
WHO CREATED a Tron (trx, TRX, TRON) contract, and what a creator deployed. Answers "who created / deployed
this token", "who is behind this contract", "what else did this deployer launch", and
"were these tokens made by the same person" (serial deployers, rug and clone farms).
NOT who funded a wallet → use tron_first_funder.
On this chain a token IS a contract, so pass the TOKEN'S CONTRACT ADDRESS in contracts.
TWO WAYS TO CALL IT, pick one - setting both is refused, because the two answer different questions and their shared-creator counters would be mixed:
contracts="T..|T.." - up to 50 contracts, one row each: Creator (the address whose
code ran CREATE), Signer, Created_At, Block_Number, Tx, Deploy_Value, Gas_Used and
Deploy_Success. Rows whose creator or signer is SHARED come first: Creator_Shared /
Signer_Shared count how many of the requested contracts have that same creator / signer, which
is what exposes one person behind many tokens. A longer list is not an error: the first
50 distinct addresses are used and the rest ignored - compare Contracts_Requested
with Contracts_Used and split a longer list into several calls.
creator="T.." - the contracts THAT address deployed, newest first, inside the window (days,
after_time, before_time), at most `limit` rows. Use it on the Creator or Signer a first call
returned, to see the rest of that deployer's output. Creator_Shared is empty in this form -
every row has the same creator by construction, so the counter would only repeat the row count.
Creator_Is_Contract = 1 means the contract was deployed BY OTHER CONTRACT CODE - a
token factory, a launchpad or a DEX pair factory - and then Creator is that factory, which is the
SAME address for every token it ever made, while Signer is the person who asked for it. On a
factory-made token read Signer, not Creator. Deploy_Depth is how deep inside the transaction the
deployment happened (0 = the transaction itself) and Call_Index is the deployment's position in
that transaction - one transaction can deploy several contracts, and Call_Index is what tells
those rows apart when everything else about them looks the same.
Status = NOT_FOUND means no deployment is recorded for that address: it is a plain wallet, not a
contract, or the deployment is older than the recorded history of this chain. Creations is
normally 1; a higher number means the address was created more than once (destroyed and
redeployed), and the row describes the EARLIEST creation.
THE CREATOR'S STORY IS NOT IN THIS TOOL - build it from the returned addresses:
labels_for_addresses (is the creator a known entity, exchange or scammer), tron_first_funder
(who funded the creator, and whether several creators share one sponsor), tron_address_profile
and tron_transfers_in / tron_transfers_out (what that wallet does), tron_flows_between
(what moved between the creator and the token). The token's own name, symbol, price and market
cap come from find_token_by_address; its first buyers from early_buyers.
Amounts are the native coin, never USD. COST: a contract deployed by an ACCOUNT is looked up at the same small cost whatever the contract's
size - a few seconds at most, even for the most heavily used token. A contract deployed BY OTHER
CONTRACT CODE (Creator_Is_Contract = 1: a factory-made pair, a launchpad token) is found through
that contract's own history instead, which grows with how much the contract is used. A row-limit
error ("Limit for rows ... exceeded") means the list contains such an address and it is too busy:
drop that address, or split the list.
Tron find calls
FIND SMART-CONTRACT CALLS on one Tron (trx, TRX, TRON) contract — "who called method X on contract Y, when, did it succeed"
in one filtered query. Match by method name
(e.g. "transfer"), full signature ("transfer(address,uint256)"), or raw 4-byte
selector (e.g. a9059cbb) — useful when the method is unnamed. Without after_time
the search covers the most recent 7 days (ending at the cursor's time, or at
before_time, if set) — set after_time to search further back. Value
is the TRX attached to the call. Inspect a found tx's token movements with
tron_tx_transfers.
NOT event logs a contract emitted → use tron_find_events.
NOT what one address signed → use tron_transactions.
Returns up to limit calls (default 20, at most 10000), newest first; page back with the last row's
Cursor - each page covers the days window ending there.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Calls inside one transaction come back in no particular order - sort them by
CallPath if you need execution order.
Each row carries the call's decoded input Arguments (Name, Type, Value; integers are
decimal strings in raw units, NOT divided by token decimals; addresses in base58) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). A method the decoder does not recognise has
no Arguments.
Each row: Tx, Time, Block, Caller, Method, Signature, Selector, CallPath, Value, Success, Reverted, Error, GasUsed, Cursor, Arguments, ArgumentCount, ArgumentsTruncated.
Tron find events
FIND EVENT LOGS on one Tron (trx, TRX, TRON) contract by event name — e.g. all "Transfer" events
or a rare custom event, in one filtered query. Match by event name or full
signature ("Transfer(address,address,uint256)"), case-insensitive. Without
after_time the search covers the most recent 7 days (ending at the cursor's time,
or at before_time, if set) — set after_time to search further back. Page back
through history with cursor: pass the Cursor value of the LAST row of a page to
get the next one — unlike before_time it never skips rows that share a timestamp.
`contract` matches logs that contract EMITTED ITSELF (a proxy token is found
by its public address), plus — when it is a proxy's implementation — the
logs its code emitted for that proxy. Logs emitted by OTHER contracts it
calls are NOT included: a DEX router's swaps are logged by the pair/pool it
calls, not by the router, so contract=<router> with event=Swap returns
NOTHING even when the router executed thousands of swaps. An empty result
for a router, aggregator or smart wallet does NOT mean there was no
activity. To get those logs, pass the pair/pool (or token) address as
`contract`; if it is unknown, list the router's transactions with
tron_find_calls (contract=<router>) and pass their Tx hashes (up to 50,
"|"-separated) to tron_tx_events with event=Swap — its CallPath shows which
call produced each log. Inspect a found tx's token
movements with tron_tx_transfers; for calls use tron_find_calls.
Each row carries the log's decoded Arguments (Name, Type, Value, Indexed; integers are
decimal strings in raw units, NOT divided by token decimals; addresses in base58) - at most
32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut
list (every array element counts as one). Parsed=0 rows have no Arguments. Argument NAMES
come from one known ABI for the Signature: a contract that emits the same Signature with
other parameter names gets those names too, so a Name can be wrong for this contract -
identify an argument by its position and Type, and check a doubtful one against the raw
Topics/Data. For raw
Topics/Data, or the rest of a cut list, pass the Tx to tron_tx_events. Unrecognized events can be found here by `topic0`.
ONE ROW = ONE EVENT LOG. A contract can be called many times inside a single
transaction and each of those internal calls can emit its own logs, so the same
event name legitimately repeats within one transaction - that is NOT duplication.
Rows are told apart by CallIndex (which internal call emitted the log) together
with LogInCall (the log's position inside that call); that pair is unique within
a transaction. To COUNT events, count the returned rows - never de-duplicate on
Tx/Event/Emitter, which would merge genuinely different logs into one.
LogIndex is the log's position within the whole transaction.
SCAN COST scales with the window, not with the limit: on a very high-traffic
contract set days=1 and page back with cursor - several times cheaper than
a 7-day window for the same page. Widen days for quiet contracts or rare matches.
Rows inside one transaction come back in no particular order - sort them by
CallIndex then LogInCall if you need emission order.
Tron first funder
FIRST FUNDER / COMMON SPONSOR of up to 50 Tron (trx, TRX, TRON) addresses: for each address the
EARLIEST incoming transfer INSIDE THE WINDOW (by default the last 180 days - not necessarily
the first ever, see WINDOW) - who sent it (Funder), which account paid that transaction's fee (Tx_From), when
(First_Time), how much of which token, and the Tx. Answers "who funded these wallets" and "do
these wallets share a sponsor" (sybil, sniper and airdrop-farming clusters).
NOT who deployed a contract → use tron_contract_creator.
Pass the addresses separated by "|". A longer list is not an error: the first 50 distinct addresses are
used and the rest are ignored - every row reports Addresses_Requested / Addresses_Used, so compare
them and split a longer list into several calls. One row per used address, and rows whose funder is shared come FIRST:
Funder_Shared = how many of the requested addresses have that same first funder,
Tx_From_Shared = the same count for the transaction's signer - it catches wallets funded
through a public batch-sending contract, where Funder is the contract and the signer is the real
sponsor. Funder_In_Set = 1 when the funder is itself one of the requested addresses (a funding
chain). Via_Internal_Call = 1 marks funding sent by contract code deeper inside a transaction; the transfer a transaction makes itself is top-level, so it reads 0. Incoming_In_Window = how many qualifying incoming transfers the address had in
the window.
WHAT COUNTS AS FUNDING: by default native TRX only (asset_type="native"); set
asset_type="token" or "all", or pin one token with contract, to look at token funding instead.
Zero-amount transfers, mints and self-transfers never count; raise min_amount to skip dust.
WINDOW: the first funding INSIDE the last `days` days (default 180, at most 730)
ending at before_time or now, or starting at after_time within the same limit.
Status = FIRST_IN_WINDOW: the earliest qualifying funding between Window_From and Window_To. It is
the address's first-ever funding ONLY if the address had no activity before Window_From, and this
tool does not check that. To check one address, compare First_Time with the First_Received of
tron_address_profile for it (an earlier First_Received means it already received something
before the window). To look further back, call again with before_time set to the row's
Window_From. Status = NO_INCOMING_IN_WINDOW means nothing qualifying
arrived in the window: call again for those addresses with before_time set to their Window_From
to look further back.
COST grows with the number of addresses times the length of the window: for dozens of
addresses keep days at 180 and page back with before_time rather than widening
days. A row-limit error ("Limit for rows ... exceeded") means an address in the list is too busy (an
exchange, bridge or popular contract) or the window is too long - drop that address or shorten
days. Amounts are TOKEN UNITS, never USD. To identify funders, pass them to
labels_for_addresses; to see everything that moved between the funders and the wallets, use
tron_flows_between.
Tron flow edges
MONEYFLOW GRAPH EDGES out of a Tron (trx, TRX, TRON) address: Source → Target, total
Amount, Currency. Building block for a MoneyFlow DIAGRAM — call per address/hop,
collect edges, render Mermaid `graph LR`. Pass the Target addresses to
labels_for_addresses to flag & stop at exchange nodes. Pass a currency to avoid spam;
call WITHOUT a currency filter to spot a token → USDT off-ramp at the edge. For raw
rows use tron_transfers_out. Each edge carries the token Contract — pin one exact
token with the contract param. On a very high-traffic address (an exchange or bridge
hub) this aggregates a lot of history and can take tens of seconds — narrow it with
contract or currency to one token to make it far faster.
NOT choosing which counterparty to follow next → use tron_trace_next_hop.
Amount is in TOKEN UNITS and totals for different tokens must not be compared or
added together. Amount_Usd values the edge in US dollars (to the cent) at each
transfer's own time, summed over the period; it is set only for the native coin
and a few major tokens, and is empty - never zero - for any other token, or when
the stored price looks unreliable. Usd_Priced_Share is the share of the edge's
amount that could be priced (0 to 1); when it is below 1 Amount_Usd covers only
that priced part, and Unpriced_Transfers counts the transfers left unpriced.
Filter edges by US dollars with min_usd, and set order_by=usd to rank by
Amount_Usd, unpriced edges last, instead of by token amount. For a token-unit
ranking pin ONE token with contract, or bound the range with min_amount /
max_amount.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK /
emoji names, but also how a scam token impersonates a major one with Cyrillic or
Greek look-alike letters - never treat such a token as the asset it resembles.
In the top arrays it is the `symbol_nonascii` field of each entry.
Bound one period with after_time / before_time. First_Seen / Last_Seen give each
edge's first and last transfer.
NOT a multi-hop trace - this is ONE address's direct outgoing edges. To FOLLOW the money across up to 3 hops in a single call (USD-valued, labelled, with exchange / mixer / bridge stops), use flow_graph (chain=tron).
Tron flows between
FLOWS BETWEEN TWO ADDRESS SETS on Tron (trx, TRX, TRON): every successful transfer (tokens and native
TRX) from any address of set A to any address of set B, and back, in ONE call - "did these
wallets ever pay those wallets", "how much moved between my suspects and the exchange
wallets", "which of these deposit addresses sent to that hot wallet". Pass up to
50 addresses per set separated by "|" (TAbc…|TDef…). A longer list is not an error:
the first 50 distinct addresses of each set are used and the rest are ignored (an address that fails its checksum is not used either) -
every row reports A_Addresses_Requested / A_Addresses_Used and B_Addresses_Requested /
B_Addresses_Used, so compare them and split a longer set into several calls. Leave addresses_b EMPTY to get every
counterparty of the A set, both directions, grouped per A address - the multi-address form of
tron_flow_edges.
mode="summary" (default) returns one row per (Direction, Sender, Receiver, token) with
Transfers, total Amount, First_Time, Last_Time and the latest Tx, ordered by `sort`.
mode="rows" returns the individual transfers newest first; page with cursor: pass the Cursor
value of the LAST row, with all other arguments unchanged, to get the next page (a summary row
carries no Cursor). A rows-mode row is a LEDGER LINE: besides the amount it carries Amount_Raw (the
exact integer amount in the token's smallest unit) with Decimals, Block and Tx_Index, and Price_Usd
(the token's USD price at the time of the transfer), Value_Usd = Amount x Price_Usd and
Price_Status - "ok"; "no_price" = no price is known for this token at that time, so Price_Usd and
Value_Usd are empty (never read that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check it with
price_at. TRX and every priced token have ONE price per day, so a value is approximate; TRC-10 tokens are not priced. On a summary row those seven columns are empty: a total over a
period has no single price. Self = 1 (both modes) marks a movement whose counterparty is another
address of set A - a move inside the set, not income and not spending.
Direction A_TO_B = sent by an A address to a B address, B_TO_A = sent by a B
address to an A address; an address listed in both sets appears in both directions. With
addresses_b empty the same holds for a transfer between two A addresses: it is listed as A_TO_B
for its sender AND as B_TO_A for its receiver, so never add rows of both directions together.
WINDOW: the last `days` days (default 30, at most 366) ending at before_time, or now;
after_time sets the start instead, within the same 366-day limit. Window_From / Window_To
on every row show the range searched; for an older period set before_time. An empty result means
no transfer between the sets in that window - or that no address of a set passed its checksum (A_Addresses_Used / B_Addresses_Used are then 0, but an empty result carries no row to show it), or that contract failed its checksum.
COST: the search is keyed on set A, so put the SMALLER and less busy set in addresses_a -
individual wallets, not exchange hot wallets, bridges or token contracts. If the call fails
with a row-limit error ("Limit for rows ... exceeded"), swap the two sets, shorten days, or
split set A. Cost also grows with the number of addresses in set A times the window.
Each row carries the token Contract (empty for native TRX and for TRC-10 tokens, which have no contract - those carry their token id in Token_Id instead); a symbol alone can match
look-alike clones, so pin one token with contract, or restrict to native or tokens with
asset_type. Amount is in TOKEN UNITS: totals of different tokens must not be compared or added
together, there is no usd filter (min_amount is in token units), and sort="amount" is only
meaningful with one token pinned. To identify the addresses, pass them to
labels_for_addresses.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Tron native balances
NATIVE COIN BALANCE of up to 50 Tron (trx, TRX, TRON) addresses you ALREADY HAVE: each address's
current TRX balance (the coin that pays gas) - for filtering a known set of wallets down to the funded
ones, e.g. an airdrop cohort.
To discover holders you do not have yet, use tron_token_holders. NOT one address's transfer history → use tron_address_flow_summary.
Pass the addresses separated by "|" (T..) - up to 50; addresses after the
50th distinct one are ignored (compare Addresses_Requested with Addresses_Used), so split
a longer list into several calls.
ALL current balances: each address's balance is the SUM of every delta in its whole history (no
date window), so a dormant-but-funded wallet is included. A set that holds a VERY busy wallet
(many millions of balance updates) may be refused on the row budget; split it. A NEGATIVE summed
balance is rare and usually a log artifact (a missing or double-stored delta): it is still returned,
but Balance_Inconsistent = 1 marks it suspect.
Native_Balance is in TRX (6 decimals); Native_Balance_Raw is the exact integer amount (sun);
Balance_As_Of is when that balance was last updated. To identify the addresses, pass them to
labels_for_addresses.
Each row: Address, Native_Balance, Native_Balance_Raw, Balance_As_Of, Balance_Inconsistent, Addresses_Requested, Addresses_Used.
Tron token holders
LIST all WALLETS / ADDRESSES HOLDING more than a given amount of an asset — NATIVE TRX included —
when you do NOT already have the addresses: the full list of holders by CURRENT on-chain balance
(balance = the SUM of the holder's whole balance history), built for EXPORT (up to 10000 holders
per page, paged with cursor, min_amount floor). ASSET: a TRC-20 CONTRACT address (T...) is ranked LARGEST BALANCE FIRST. NATIVE TRX (pass
TRX or native) is exported in ADDRESS ORDER, not ranked (the native holder set is too large to
rank globally) — so for native, min_amount is the point, not the ordering: it DEFAULTS to 1 (holders
of 1 TRX or more); pass min_amount=0 to include every funded address (very many pages). TRC-10 is not supported.
FUNDED ONLY: pass min_amount to keep only addresses at or above a balance — e.g. min_amount=1
returns only holders with 1 unit or more. Zero and negative (inconsistent) balances are excluded.
PAGING: pass Next_Cursor of the previous page (keep the same token, min_amount and limit). An EMPTY
page that STILL has a Next_Cursor means keep going (a native address window with no qualifying
holder); an empty Next_Cursor = done. A holder never repeats across pages, so the merged pages are
the full holder list (native comes in address order, no de-dup needed).
Balance is in the asset's OWN units (`Decimals` gives the scale; TRX = 6), never USD. A row with an
empty Holder is a status row: read Status (OK / EMPTY_WINDOW / TOO_LARGE / NO_HOLDERS / BAD_CURSOR).
Tron token senders
TOKEN SENDERS COHORT on Tron (trx, TRX, TRON): the addresses that SENT a given token at least `min_transfers`
times inside a time window, most recently active first - "wallets that actively use this token",
"build a cohort or airdrop list of recent senders of this token".
NOT one wallet's own outgoing transfers → use tron_transfers_out.
This counts SENDERS of the token, one row per sender; it does not value or label them - pass the
returned addresses to labels_for_addresses, and to tron_native_balances to keep only funded
wallets.
Pass the token's CONTRACT address in token (Tron base58 (T...)); a symbol also matches clone tokens, so
pin the exact contract.
WINDOW: the last `days` days (default 1, at most 30) ending at before_time or now;
after_time sets the start instead. A sender must reach `min_transfers` sends WITHIN this window, so a
short recent window keeps only clearly-active wallets - the recency the cohort wants. There is no
full-history mode: to go further back, page with before_time.
PAGING: newest-active first, at most `limit` rows. If the result has `limit` rows there may be more -
set before_time to the oldest Last_Transfer_Time returned and call again, then combine and
de-duplicate the pages.
COST grows with the token's volume times the window: widen `days` step by step. A row-limit error
("Limit for rows ... exceeded") means the token is too busy for that window - shorten days.
Each row: Address, Transfers, First_Transfer_Time, Last_Transfer_Time.
Tron trace dominant path
AUTO-WALK the dominant (largest-total-amount) OUTGOING edge of ONE token from a
Tron (trx, TRX, TRON) address, hop by hop, up to 5 hops — collapses ~5 manual
tron_trace_next_hop calls into one. Every hop returns Hop*_To (the address that
received), Hop*_Token (the contract of the token that moved) and Hop*_Edge_Total, plus
Hops_Found (how many hops resolved) and Path_Status for the walk itself.
Hop*_Edge_Total is NOT the amount that travelled along the path: it is the ALL-TIME
total of EVERY transfer of that token between that hop's sender and receiver, so it
can be orders of magnitude larger than the sum you are tracing and the hop totals are
not comparable with each other. To break one edge down — its transfer count
(Transfers), first/last seen, and the full ranking of that address's edges — call
tron_trace_next_hop on the hop's sender.
The walk NEVER goes back to an address it has already visited (the seed included), so
it cannot bounce back and forth between the same two wallets — each hop is the largest
edge to a NEW address.
READ Path_Status FIRST — NO_MATCH means the token filter matched nothing (wrong symbol,
or that symbol belongs to a different token — pass `contract`), PATH_END means the
trail really ran out, DEPTH_LIMIT means it may continue past hop 5. All-NULL hops with
NO_MATCH are a filter problem, not a dead end.
Pass the hop addresses to labels_for_addresses and read down to the FIRST labeled
address (CEX / service) — that's the destination.
Pin the token with `contract` whenever you know it — a SYMBOL is not unique, clone
tokens reuse popular symbols, and with a symbol alone the hops can drift between
look-alike tokens; compare the per-hop token contract to spot that.
LIMITS: follows only the single biggest edge per hop (misses splits / fan-outs), fixed
depth 5, and transfers to the burn address are not followed. For branching / adaptive
tracing call tron_trace_next_hop hop by hop, identify each hop with
labels_for_addresses and choose the next address yourself (prompt_playbook with
playbook=money_flow returns the full step-by-step procedure); for one hop's full ranking use
tron_trace_next_hop. Heavy multi-hop walk — can time out on a very busy address; retry,
or narrow it with `contract` / a less-busy token.
Tron trace next hop
CONVERGENCE primitive for Tron (trx, TRX, TRON) tracing: aggregate an address's
OUTGOING flow by counterparty (Σ amount, count, first/last seen), largest first.
NOT edges for a diagram → use tron_flow_edges.
NOT an automatic walk along the largest edge → use tron_trace_dominant_path.
Narrow with currency (recommended), after_time, min_amount. Pass the top
counterparties to labels_for_addresses to spot an exchange / bridge (= the
destination, stop there). One row per (counterparty, TOKEN); identify a token by
Contract, not Currency. On a very high-traffic address (an exchange or bridge hub)
this aggregates a lot of history and can take tens of seconds — narrow it with
contract or currency to one token, and with after_time to one period, which is far
faster than one wide call.
Amounts here are TOKEN UNITS, never USD - no USD value is available in this
data, so there is no usd filter and totals for different tokens must not be
compared or added together. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Returns up to top_n rows (default 10, at most 10000), largest Total_Amount first; no rows = nothing matched.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Each row: Counterparty, Currency, Symbol_NonAscii, Contract, Total_Amount, Transfers, First_Seen, Last_Seen.
Tron transactions
TRANSACTION HISTORY WITH FEES of a Tron (trx, TRX, TRON) address — every transaction the address
SENT (signed and paid for), newest first, deep-pageable: time, hash, type, contract called,
success, and what it cost.
Returns up to limit transactions per page (default 25, at most 10000), newest first, failed transactions
(Success = 0) included unless only_successful=1; page back with the last row's Cursor.
Fee is the TRX burned for the transaction; Fee_Sun is the same
amount exactly, in SUN (1 TRX = 1,000,000 SUN), as a decimal string. Energy_Fee_Sun and
Net_Fee_Sun are the parts burned for energy and for bandwidth - Fee can be larger than their
sum (activating a new account, for example, is charged in Fee only) and is 0 when staked or
free resources covered the transaction. Energy_Used is ALL the energy the transaction
consumed, the part paid for by burning TRX included. Net_Used is only the bandwidth taken
from the free or staked allowance: bandwidth paid for by burning TRX shows in Net_Fee_Sun
while Net_Used reads 0, so Net_Used = 0 does not mean the transaction used no bandwidth.
Fee_Usd is the fee at the TRX price of that day; Fee_Price_Status: ok; no_price (Fee_Usd is
empty - never read it as zero); suspect (the price is more than twice, or less than half, the price a day earlier AND a day
later - a likely data glitch, so Fee_Usd is left empty). A failed transaction (Success = 0) still
paid its fee: treat it as a fee-only row.
NOT a transfer list and no amounts here: transactions the address only RECEIVED are not
listed, and what a transaction moved is in tron_tx_transfers (pass its Tx) or
tron_transfers_out / tron_transfers_in.
Without after_time the search covers the most recent 30 days (ending at the cursor's time, or
at before_time, if set) — set after_time or raise days to reach further back. SCAN COST scales with the window, not
with the limit: on a very busy address set days=1 and page back with cursor.
Result is the outcome recorded in the transaction's receipt.
Each row: Tx, Time, Block, TxIndex, Type, Contract, Success, Result, Fee, Fee_Sun, Energy_Fee_Sun, Net_Fee_Sun, Energy_Used, Net_Used, Fee_Usd, Fee_Price_Status, Cursor.
Tron transfers in
INCOMING Tron (trx, TRX, TRON) transfers to an address — where this wallet received
funds from.
NOT the opposite direction → use tron_transfers_out.
NOT totals per sender → use tron_address_flow_summary.
Returns up to limit transfers (default 20, at most 10000), newest first by default; page back with the
last row's Cursor.
Use to trace the source of
funds backwards. For an address with many transfers set min_amount or sort='amount',
else large sources hide behind recent dust. Query WITHOUT a currency filter to see
where the bulk of funds originated. To identify counterparties, pass the returned
addresses to labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. TRX and every priced token have ONE price per day, so a value is approximate;
TRC-10 tokens (no contract) are not priced. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
`Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token.
Each row: Time, Sender, Currency, Symbol_NonAscii, Contract, Amount, Tx, Cursor, Amount_Raw, Decimals, Block, Tx_Index, Price_Status, Price_Usd, Value_Usd.
Tron transfers out
OUTGOING Tron (trx, TRX, TRON) transfers from an address — where this wallet sent
funds. Narrow with after_time / currency / min_amount. For the aggregated view use
tron_trace_next_hop; for incoming use tron_transfers_in. For an address with many
transfers set min_amount or sort='amount', else large counterparties hide behind
recent dust. Query WITHOUT a currency filter to surface the token → USDT off-ramp.
Page back through history with cursor: pass the Cursor value of the LAST row of a page
to get the next one — unlike before_time it never skips rows that share a timestamp.
To identify counterparties, pass the returned addresses to labels_for_addresses.
Each row carries the token Contract — a symbol alone can match look-alike clones, so
pin the real token with the contract param.
Amount is in TOKEN UNITS; amounts of different tokens must never be added together.
Each row also carries Price_Usd - the token's USD price at the time of the transfer -
and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is
known for this token at that time, so Price_Usd and Value_Usd are empty (never read
that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or
less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with
price_at. TRX and every priced token have ONE price per day, so a value is approximate;
TRC-10 tokens (no contract) are not priced. There is no usd filter: min_amount /
max_amount are in token units. For a ranking you can reason about, pin ONE token
with contract, or bound the range with min_amount / max_amount.
Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals
its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
Tron transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Tron transfers database. Bitquery MCP
tron_* tools are the PRIORITY; use this ONLY when none can answer. A list of wallets / addresses by
current balance, or the balance of known addresses, is tron_token_holders / tron_native_balances —
do not write it here. No query optimizer
here: filter on the indexed key tables — `tron_api.transfers_sender` (outgoing),
`tron_api.transfers_receiver` (incoming), `tron_api.transfers_tx` (by tx hash); NEVER JOIN
big tables (use `IN (SELECT …)`, or `GLOBAL IN` when a subquery is nested inside another).
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
Addresses are RAW BYTES `FixedString(20)` in `Transfer_Sender` / `Transfer_Receiver` (no
0x41 prefix). The user gives base58 (T…):
match `Transfer_Sender = substring(base58Decode('T…'),2,20)`,
output `base58Encode(concat(concat(unhex('41'),col),substring(SHA256(SHA256(concat(unhex('41'),col))),1,4)))`.
Tx hash is `Transaction_Hash` `FixedString(32)` (hex, no 0x): match one with
`Transaction_Hash = unhex('<64hex>')`, several with `Transaction_Hash IN (unhex('a'),
unhex('b'))` (both index-friendly — do NOT use `hex(Transaction_Hash) = …`, that full-scans);
output `lower(hex(Transaction_Hash))`.
A SET built in a subquery must have the column's exact type:
`Transaction_Hash IN (SELECT toFixedString(unhex(h), 32) FROM …)`, `toFixedString(…, 20)` for
an address. A plain `unhex(…)` set, or a JOIN on a String key, silently misses every value
ending in `00`.
NEVER put a raw `FixedString` byte column (`Transfer_Sender`/`Transfer_Receiver`/
`Transaction_Hash`) in the SELECT list as-is — the raw bytes are not valid text and corrupt
the result; ALWAYS wrap them (`base58Encode(…)` / `lower(hex(…))`) as shown above.
Currency symbol + decimals are INLINE columns (no dictionaries):
amount = `toFloat64(Transfer_Amount) / pow(10, Transfer_Currency_Decimals)`;
symbol = `Transfer_Currency_Symbol`. Always add `AND Transfer_Success = 1` (Tron has NO
`Transfer_Type` column). Time = `Block_Time`. Date-time values come back as ISO-8601 UTC, e.g. 2026-09-21T15:04:18Z (toString() of a date-time gives 2026-09-21 15:04:18). Other `tron_api.*` tables (calls,
transactions, balances) are reachable with an explicit db prefix. In
`tron_api.balances_by_address` / `balances_by_currency` `Balance_Amount` is a SIGNED Int256 DELTA
per event, NOT an absolute value: a holder's current balance is `sum(Balance_Amount)` GROUP BY
`Balance_Address` (NOT `argMax` / `argMaxMerge`, which read a single delta). `balances_by_address`
is keyed by address (per-address or address-set lookups), `balances_by_currency` by
`Currency_SmartContract` (per-token); native TRX is `Currency_SmartContract = '' AND Currency_Native
= 1` (6 decimals). Counterparty labels
are NOT in this database — use labels_for_addresses. Read-only; always add a LIMIT of at most 10,000 — a larger answer fails with an error, so aggregate (GROUP BY, count) instead. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x).
Exact table and column names first: chain_list_tables, chain_describe_table and chain_search_columns with database=tron_api.
Tron tx events
ALL EVENT LOGS in one or more Tron (trx, TRX, TRON) transactions, including
decoded arguments plus raw topics and data. Use after tron_find_events identifies
a transaction, or whenever a transaction's complete event payload is needed. Accepts
up to 50 transaction hashes separated by "|". `Parsed=0` means no ABI matched: Event,
Signature and Arguments can then be empty, but Topic0, Topics and Data remain usable.
NOT the value moved in a transaction → use tron_tx_transfers.
Address arguments are returned as Tron base58 addresses; integers remain decimal
strings to avoid JSON-number precision loss; use raw Topics/Data for values wider than
the decoded numeric fields. By default, reverted call-frame logs,
removed logs and failed transactions are excluded; set only_successful=0 to inspect
them with the returned status fields. Unlike EVM chains, LogIndex is populated on
Tron and gives the event's ordinal in the whole transaction.
Tron tx transfers
All transfers inside ONE OR SEVERAL Tron (trx, TRX, TRON) transactions (sender → receiver,
currency, amount) — pass one tx hash or several separated by "|". Each row
carries its tx hash and the called method, so batch results stay attributable.
NOT the event logs of a transaction → use tron_tx_events.
Entry point for tracing from a tx hash. For an address's flow use
tron_transfers_out / tron_transfers_in. To identify the addresses, pass them to
labels_for_addresses.
FRESHNESS: transfers reach this data some minutes after the trade tools see a swap, so
a hash that trader_trades or tx_trades already shows can return NO rows here yet -
that is lag, not a missing transaction: retry in a few minutes.
Returns up to limit transfers (default 100, at most 10000) for all the hashes together, ordered by Tx,
largest Amount first; successful transfers only.
Each row: Tx, Sender, Receiver, Currency, Amount, Method.
Tx trades
DECODED DEX swaps inside ONE transaction — every swap leg of a tx: side,
tokens, base/quote amounts, USD size, price, DEX and pool. Use for "what
swaps happened in <tx>", "decode this DEX transaction", "what did this tx
trade". This returns DECODED trades (Side, amounts, protocol); for the raw
token MOVEMENTS in a tx use the transfer tools (eth_tx_transfers /
tron_tx_transfers) instead.
Adding or removing liquidity is NOT a trade and produces NO rows here
(an LP mint/burn moves tokens but nothing is swapped), so an empty
result on such a transaction is the CORRECT answer, not a gap — say the
transaction contains no swaps rather than reporting missing data. Use
the chain's tx_transfers tool to see the LP token mint/burn and the
deposits that went with it.
COST / CORRECTNESS: there is NO transaction index — to keep this cheap PASS
`token_address` (resolve it first with find_token_by_address) so it filters
on the indexed token key. WITHOUT `token_address` it falls back to scanning
every trade in the last `lookback_days` days (heavy — ~GBs per day). Trades are
kept about 30 days, but this scan stops at 7. AN EMPTY RESULT means
the tx is OUTSIDE the lookback window OR had no DEX swap (it may still have
plain transfers — check eth_/tron_tx_transfers); widen `lookback_days` (max
7) or supply `token_address` before concluding "no trades".
`Symbol_NonAscii` = 1 flags a `Token_Symbol` that is not plain ASCII. That
is normal for CJK / emoji token names, but it is also how a scam token
impersonates a major one: Cyrillic or Greek look-alike letters make a fake
`USDT` / `SOL` / `BTC` read identically to a human. Never treat such a
token as the asset it resembles — say the symbol is a look-alike.
Symbols longer than 32 characters are cut and end in `…` (spam tokens carry
symbols of up to 32,000 characters).
Xlm address flow summary
ADDRESS FLOW SUMMARY / top counterparties: who a Stellar (xlm, XLM, stellar, lumens) account pays
and who pays it, in one call — profile (payments sent / received, distinct receivers / senders)
+ TOP receivers AND TOP senders (ranked by number of transfers then Σ amount).
NOT only the statistics, without counterparties → use xlm_address_profile.
Collapses
address_profile + trace_next_hop(out) + an incoming convergence into a single call — call this
FIRST when triaging a hop. Returns a computed Role over the same window and assets as the
profile counts (the last `days`, all assets): receive_only (no outgoing transfer in the window)
/ send_only (no incoming one) / no_transfers (neither) / hub (thousands of senders AND receivers
— don't trace deeper) / consolidator (senders ≫ receivers) / distributor (receivers ≫ senders) /
relay (neither dominates). Stellar payments carry no destination tag: thousands of senders
paying into ONE receiver (Role consolidator, Top_Receivers a single account) is the typical
shape of an exchange deposit account sweeping to its hot wallet - check both with the label
call below. Profile counts are all-asset; the top arrays honor currency, currency_id,
min_amount and max_amount.
The arrays carry NO labels: pass Address and the Top_Receivers / Top_Senders counterparties to
labels_for_addresses(chain='stellar') in ONE call — it knows the reserve accounts of some large exchanges;
coverage is otherwise sparse, so an empty answer is a coverage gap, not a clean account. For raw
rows use xlm_transfers_in / xlm_transfers_out.
READING THE TOP ARRAYS: positional 6-tuples [counterparty, amount, currency, issuer,
currency_id, transfers] (the Top_Fields column lists these names in the same order), one entry
per (counterparty, asset) — the same address repeats once per asset it moved. Receivers carry
the asset this account SENT, senders the asset it RECEIVED.
COUNTED: payments and path payments to another account, plus account creations (funding a new
account) and account merges (closing this account into another). Claimable balances (their
receiver is a one-time balance id - follow one with xlm_transfers_out on that id) and offer
fills are NOT counted; liquidity-pool and smart-contract (Soroban) movements are not in this
data. Failed transactions never count.
ASSETS: XLM is Currency_Id 417896 (Issuer empty). Any other asset is a code issued by an account,
and one Currency_Id stands for one code of ONE issuer - but anybody can issue a code: "USDC" has
dozens of issuers, most of them look-alikes, so read Issuer (the real USDC is issued by
GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN) and pin a token with currency_id or
currency=code:issuer. The same code and issuer can appear under two ids (a 4- and a
12-character asset type).
Amounts are in the asset's own units (XLM, not stroops; every Stellar asset has 7 decimals) and
never USD - no price or USD value of Stellar assets is available here, so totals of different
assets must not be compared or added together. For a ranking you can reason about, pin ONE asset
with currency_id, or bound the range with min_amount / max_amount.
Counts and rankings cover the LAST 90 DAYS by default, not the account's whole lifetime; raise
days for a longer period (history back to 2015). Window_Days / Window_From on the row state the
period actually covered: an account busy long ago but quiet since comes back all zeros - raise
days.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Xlm address profile
Stellar (xlm, XLM, stellar, lumens) account STATISTICS — payments sent / received (payments and
path payments plus account creations and merges, between two different accounts), distinct
receivers / senders, conversions to itself, accounts it created, claimable balances created and
claimed, filled exchange offers, transactions signed (successful and failed), fees paid
(Fees_Paid_XLM - including fees it paid as a sponsor for other accounts' transactions), first /
last activity, and Created_By = the account that created (funded) it when that happened inside
the window.
NOT who it deals with → use xlm_address_flow_summary.
Triage an account during tracing. Role from the ratios: senders ≫ receivers =
consolidator / sweep; receivers ≫ senders = distributor (an airdrop or payout account creates
many accounts or balances); ~1↔1 = relay (layering); thousands of both = hub (exchange / service
— don't trace deeper); thousands of senders and ONE receiver = typically an exchange deposit
account sweeping to its hot wallet (Stellar payments carry no destination tag). Failed_Transactions
far above the successful ones = an automated bot.
Counts cover the LAST 90 DAYS by default, not the account's whole lifetime; raise days for a
longer period (history back to 2015; to find the creator of an older account call
xlm_transfers_in with type='account' and a large days). Window_Days / Window_From on the row
state the period actually covered: an account that was busy long ago but quiet since comes back
all zeros, which is NOT the same as an account that never moved anything - raise days to look
further back. No USD values; for labels use labels_for_addresses(chain='stellar').
Xlm flow edges
MONEYFLOW GRAPH EDGES out of a Stellar (xlm, XLM, stellar, lumens) account: Source → Target, total
Amount, Currency, Issuer, Currency_Id and transfer count. Building block for a MoneyFlow DIAGRAM
— call per address/hop, collect edges, render Mermaid `graph LR`, flag & stop at exchange /
service nodes (the edges carry no labels — identify targets with labels_for_addresses(chain='stellar') in one
call). Edges are ranked by number of transfers then amount. Pin an asset with currency_id to
avoid dust and spam tokens; time-window the edges with after_time / before_time. An edge carries
the asset that LEFT the source: a path payment shows only the sent side (what the target
received is in xlm_transfers_in of the target), and a conversion inside one account (a path
payment to itself) is not an edge at all — to spot an off-ramp, call WITHOUT a currency filter
and compare the assets of consecutive hops. For raw rows use xlm_transfers_out.
NOT choosing which counterparty to follow next → use xlm_trace_next_hop.
COUNTED: payments and path payments to another account, plus account creations (funding a new
account) and account merges (closing this account into another). Claimable balances (their
receiver is a one-time balance id - follow one with xlm_transfers_out on that id) and offer
fills are NOT counted; liquidity-pool and smart-contract (Soroban) movements are not in this
data. Failed transactions never count.
ASSETS: XLM is Currency_Id 417896 (Issuer empty). Any other asset is a code issued by an account,
and one Currency_Id stands for one code of ONE issuer - but anybody can issue a code: "USDC" has
dozens of issuers, most of them look-alikes, so read Issuer (the real USDC is issued by
GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN) and pin a token with currency_id or
currency=code:issuer. The same code and issuer can appear under two ids (a 4- and a
12-character asset type).
Amounts are in the asset's own units (XLM, not stroops; every Stellar asset has 7 decimals) and
never USD - no price or USD value of Stellar assets is available here, so totals of different
assets must not be compared or added together. For a ranking you can reason about, pin ONE asset
with currency_id, or bound the range with min_amount / max_amount.
Counts and rankings cover the LAST 90 DAYS by default, not the account's whole lifetime; raise
days for a longer period (history back to 2015).
Xlm trace dominant path
AUTO-WALK the dominant (largest total amount) OUTGOING edge of ONE asset from a Stellar (xlm, XLM,
stellar, lumens) account, hop by hop, up to 5 hops — collapses ~5 manual xlm_trace_next_hop
calls into one. Follows XLM by default (currency_id 417896). Every hop returns Hop*_To (the
account that received), Hop*_Edge_Total and Hop*_Transfers, plus Hops_Found and Path_Status for
the walk itself.
Hop*_Edge_Total is NOT the amount that travelled along the path: it is the total of EVERY
transfer of that asset between that hop's sender and receiver over the whole window (days,
counted back from today on every hop), so it can be far larger than the sum you are tracing and
the hop totals are not comparable with each other. For one hop's full ranking call
xlm_trace_next_hop on the hop's sender.
The walk NEVER goes back to an account it has already visited (the seed included).
READ Path_Status FIRST — NO_MATCH means no outgoing transfer of this asset in the window (wrong
currency_id, or raise days), PATH_END means the trail really ran out, DEPTH_LIMIT means it may
continue past hop 5. The walk carries no labels and does not stop at exchanges by itself: pass
the hop accounts to labels_for_addresses(chain='stellar') in one call and read down to the first labeled
account; past an exchange the hops are the exchange's own movements, not the traced funds.
COUNTED: payments and path payments to another account, account creations and account merges
(the sent side of a path payment, in the asset that LEFT the sender) — claimable balances and
offer fills are not followed. currency_id stands for one asset code of one issuer (take it
from xlm_transfers_out or xlm_trace_next_hop); a hop INTO the asset's issuer means the asset
was redeemed. Amounts are in the asset's own units (XLM, not stroops), never USD.
LIMITS: follows only the single biggest edge per hop (misses splits / fan-outs), fixed depth 5.
For branching tracing call xlm_trace_next_hop hop by hop and choose the next account yourself
(prompt_playbook with playbook=money_flow returns the full procedure). A multi-hop walk over busy
accounts can take several seconds; lower days, or raise min_amount to step over dust edges.
Xlm trace next hop
CONVERGENCE primitive for Stellar (xlm, XLM, stellar, lumens) tracing: aggregate an account's
OUTGOING transfers by receiver and asset (Σ amount, count, first/last seen), ranked by number of
transfers then total amount. Stop when a receiver is an exchange / service — the rows carry no
labels, so check the receivers with labels_for_addresses(chain='stellar') in one call; a receiver that
thousands of accounts pay (xlm_address_flow_summary Role hub) is typically an exchange deposit
account. Narrow with currency_id (recommended), after_time / before_time, min_amount. One row
per (receiver, asset); for raw rows use xlm_transfers_out.
NOT edges for a diagram → use xlm_flow_edges.
NOT an automatic walk along the largest edge → use xlm_trace_dominant_path.
COUNTED: payments and path payments to another account, plus account creations (funding a new
account) and account merges (closing this account into another). Claimable balances (their
receiver is a one-time balance id - follow one with xlm_transfers_out on that id) and offer
fills are NOT counted; liquidity-pool and smart-contract (Soroban) movements are not in this
data. Failed transactions never count.
ASSETS: XLM is Currency_Id 417896 (Issuer empty). Any other asset is a code issued by an account,
and one Currency_Id stands for one code of ONE issuer - but anybody can issue a code: "USDC" has
dozens of issuers, most of them look-alikes, so read Issuer (the real USDC is issued by
GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN) and pin a token with currency_id or
currency=code:issuer. The same code and issuer can appear under two ids (a 4- and a
12-character asset type).
Amounts are in the asset's own units (XLM, not stroops; every Stellar asset has 7 decimals) and
never USD - no price or USD value of Stellar assets is available here, so totals of different
assets must not be compared or added together. For a ranking you can reason about, pin ONE asset
with currency_id, or bound the range with min_amount / max_amount.
Counts and rankings cover the LAST 90 DAYS by default, not the account's whole lifetime; raise
days for a longer period (history back to 2015). On a very busy account this aggregates
millions of transfers and can take several seconds — pin currency_id and narrow the period.
Returns up to top_n rows (default 10, at most 200), most Transfers first; no rows = nothing matched
in the window.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Each row: Counterparty, Currency, Issuer, Currency_Id, Total_Amount, Transfers, First_Seen, Last_Seen.
Xlm transfers in
INCOMING Stellar (xlm, XLM, stellar, lumens) transfers to an account — where it received XLM and
issued assets from, newest first: sender, amount, asset and issuer, record Type and operation
per row. Use it to trace the source of funds backwards. Page back through older history with
cursor: pass the Cursor value of the LAST row of a page — unlike before_time it never skips rows
that share a ledger. Same record types and amount rules as xlm_transfers_out; for the aggregated
view use xlm_address_flow_summary.
AMOUNTS: Amount / Currency is what this account actually received; Sent_Amount / Sent_Currency
is what the sender actually spent. They differ on a path payment (converted on the way) and on
an offer fill.
TYPE: payment = a payment or path payment from another account (Sender = this account means a
conversion); account = the Sender created (funded) this account - with type='account' and a
large days this finds who created an account - or merged itself into it, handing over all its
XLM; claimable_balance = this account claimed a claimable balance, so Sender is the balance's
72-character hex id - call xlm_transfers_in with that id as address to see who created it (an
address with thousands of such claims is usually collecting airdrops); maker = a standing
exchange offer of this account was filled (it got Currency and gave Sent_Currency). Fees and
failed transactions never appear here (the fees an account paid are listed by xlm_transfers_out
with include_fees=1). Liquidity-pool movements and smart-contract (Soroban) token movements are
NOT recorded in this data. Pass type='payment' for payments only.
The memo of each transaction (the customer id an exchange asks depositors to add, for example)
is not on these rows: pass up to 50 Tx hashes of a page to xlm_tx_transfers in ONE call.
ASSETS: XLM is Currency_Id 417896 (Issuer empty). Any other asset is a code issued by an account,
and one Currency_Id stands for one code of ONE issuer - but anybody can issue a code: "USDC" has
dozens of issuers, most of them look-alikes, so read Issuer (the real USDC is issued by
GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN) and pin a token with currency_id or
currency=code:issuer. The same code and issuer can appear under two ids (a 4- and a
12-character asset type).
Amounts are in the asset's own units (XLM, not stroops; every Stellar asset has 7 decimals);
Amount_Raw is the same amount as an exact integer string in the smallest unit (Decimals = 7).
USD: Price_Usd is the hourly USD price of Currency at the time of the transfer and Value_Usd =
Amount x Price_Usd, with Price_Status ok - available for XLM and a handful of listed assets,
each priced by its own Currency_Id (one code of ONE issuer), so a look-alike of the same code
never inherits a price. Every other asset reads Price_Status no_price with both columns null -
never assume a price for it. The newest hour may not be priced yet. Filters stay in asset units
(there is no usd filter), and amounts of different assets must not be compared or added
together: pin ONE asset with currency_id, or bound the range with min_amount / max_amount.
Rows carry no labels: identify senders with labels_for_addresses(chain='stellar') - coverage is sparse, mostly
exchange reserve wallets.
Covers the LAST 90 DAYS by default; raise days to reach older history (back to 2015; a short or
empty page can just mean the window ended, not that the history did). Records arrive a few
minutes after the ledger closes.
Returns limit transfers per page (default 20, at most 1000), newest first, plus any records identical in
every field to the last one (so a page can exceed limit); a sort='amount' page is a top-N and
carries no Cursor.
Each row: Time, Sender, Currency, Issuer, Currency_Id, Amount, Amount_Raw, Decimals, Sent_Currency, Sent_Issuer, Sent_Currency_Id, Sent_Amount, Type, Operation, Ledger, Tx, Price_Usd, Value_Usd, Price_Status, Cursor.
Xlm transfers out
OUTGOING Stellar (xlm, XLM, stellar, lumens) transfers from an account — where it sent XLM and
issued assets, newest first: receiver, amount, asset and issuer, record Type and operation per
row. Page back through older history with cursor: pass the Cursor value of the LAST row of a
page to get the next one — unlike before_time it never skips rows that share a ledger. For the
aggregated "where did the bulk go" view use xlm_trace_next_hop; for incoming use
xlm_transfers_in; for every record of one transaction (and its memo) use xlm_tx_transfers.
AMOUNTS: Amount / Currency is what actually left this account, Delivered_Amount /
Delivered_Currency what the receiver actually got. They differ on a path payment (a payment
converted on the way, possibly to this account itself), and on an offer fill.
TYPE: payment = a payment or path payment to another account (Receiver = this account means a
conversion from one asset into another); account = this account created (funded) a new account,
or was merged into Receiver - closing it and sending all its XLM; claimable_balance = this
account locked value into a claimable balance, so Receiver is the balance's 72-character hex
id - call xlm_transfers_out with that id as address to see who claimed it (it can also be
claimed back by this account); maker = a standing exchange offer of this account was filled by
someone else's trade or path payment (Receiver = this account; it gave Currency and got
Delivered_Currency) - the trading account itself has no record of its own. Operation names the
Stellar operation. FEES are listed only on request: include_fees=1 adds one record per
transaction whose fee this account paid (Type fee, Receiver empty, Amount = the fee in XLM, with
its Value_Usd; on a fee-bump transaction the payer is the sponsor, not the signer), and
type='fee' lists the fees alone. A FAILED transaction moves nothing and leaves only its fee, so
without the fees it does not appear. Liquidity-pool deposits, withdrawals and swaps and
smart-contract (Soroban) token movements are NOT recorded in this data. Pass type='payment' for
payments only.
The memo of each transaction (an exchange's customer id, for example) is not on these rows: pass
up to 50 Tx hashes of a page to xlm_tx_transfers in ONE call to read them.
ASSETS: XLM is Currency_Id 417896 (Issuer empty). Any other asset is a code issued by an account,
and one Currency_Id stands for one code of ONE issuer - but anybody can issue a code: "USDC" has
dozens of issuers, most of them look-alikes, so read Issuer (the real USDC is issued by
GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN) and pin a token with currency_id or
currency=code:issuer. The same code and issuer can appear under two ids (a 4- and a
12-character asset type).
Amounts are in the asset's own units (XLM, not stroops; every Stellar asset has 7 decimals);
Amount_Raw is the same amount as an exact integer string in the smallest unit (Decimals = 7).
USD: Price_Usd is the hourly USD price of Currency at the time of the transfer and Value_Usd =
Amount x Price_Usd, with Price_Status ok - available for XLM and a handful of listed assets,
each priced by its own Currency_Id (one code of ONE issuer), so a look-alike of the same code
never inherits a price. Every other asset reads Price_Status no_price with both columns null -
never assume a price for it. The newest hour may not be priced yet. Filters stay in asset units
(there is no usd filter), and amounts of different assets must not be compared or added
together: pin ONE asset with currency_id, or bound the range with min_amount / max_amount.
Rows carry no labels: identify receivers with labels_for_addresses(chain='stellar') - coverage is sparse, mostly
exchange reserve wallets.
Covers the LAST 90 DAYS by default; raise days to reach older history (back to 2015; a short or
empty page can just mean the window ended, not that the history did). Records arrive a few
minutes after the ledger closes.
Xlm transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Stellar (xlm, XLM, stellar, lumens) data.
Bitquery MCP xlm_* tools are the PRIORITY; use this ONLY when none can answer. No query optimizer
here: account model — query the per-address tables `stellar.transfers_from` (outgoing, key
`transfer_from`) and `stellar.transfers_to` (incoming, key `transfer_to`); per transaction
`stellar.transfers_tx` (key `tx_hash_bin`). NEVER JOIN big tables (use `IN (SELECT …)`). Use the
`stellar` database only: `stellar_flow` starts in December 2023 and misses some ledgers.
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
This data runs on an older release of the engine: some functions and syntax in that reference
(map() and toJSONString() among them) do not exist here — when a statement is refused for an
unknown function or setting, use the forms shown in this description.
EVERY table is organized by month of `tx_date` back to 2015 and keyed only by address or hash:
ALWAYS filter `tx_date` (e.g. `tx_date >= today() - 30`) or the query reads the whole history
and may time out. Time = `tx_time`, ledger = `block`; date-times come back as
'YYYY-MM-DD hh:mm:ss' UTC; select formatDateTime(t, '%FT%TZ') for ISO.
Transfer columns: tx_hash_bin (binary — `hex(tx_hash_bin)` out, `unhex('…')` in), tx_sender,
operation (payment, path_payment_strict_send, path_payment_strict_receive, create_account,
account_merge, create_claimable_balance, claim_claimable_balance, manage_buy_offer,
manage_sell_offer, …), op_index, effect_index, transfer_from, transfer_to (G-addresses in upper
case; a claimable balance appears as its 72-character hex id in lower case), currency_from_id /
value_from (what left the sender), currency_to_id / value_to (what the receiver got), direction:
'payment' (payments and path payments; from = to is a conversion), 'account' (create_account
funding and account_merge), 'claimable_balance' (create: account → balance id; claim: balance id
→ claimant), 'maker' (a filled standing offer; from = to = the offer owner, value_from what it
gave, value_to what it got), 'fee' (one per transaction, from = the account that paid it - the
fee-bump sponsor when there is one; a FAILED transaction leaves only its fee row). Exclude fees
with `direction != 'fee'`; for account-to-account flow use `direction IN ('payment', 'account')
AND transfer_from != transfer_to`.
Amounts: every asset has 7 decimals and the values are raw integers (XLM in stroops) — amount =
`toFloat64(value_from) / 10000000`. XLM is currency id 417896; any other id is ONE asset code of
ONE issuer: code = `dictGetString('currency','symbol',toUInt64(id))`, and
`dictGetString('currency','name',toUInt64(id))` is "CODE [ISSUER]" — guard misses with
`dictHas('currency',toUInt64(id))`. Many issuers reuse popular codes (USDC), so compare issuers.
Transaction status, fee (stroops), fee_account, memo (memo_type, memos) and signer (tx_sender):
`stellar.transactions` (key tx_hash_bin) and `stellar.transactions_sender` (key tx_sender) —
success (1 = succeeded, 0 = failed). Payments with their path and source / destination limits: `stellar.payments_from` /
`payments_to` / `payments_tx`. Also present: stellar.operations_account / operations_tx,
effects_tx, balance_effects_address (key address, currency_id), trade_effects_tx,
liquidity_pool_effects / liquidity_pool_trade_effects, claimable_balance_effects, blocks —
inspect with DESCRIBE TABLE first. Liquidity-pool and smart-contract (Soroban) movements are not
in the transfer tables. No USD values or prices; no inline labels (use labels_for_addresses with
chain='stellar'). Read-only. 64-bit integers come back as JSON numbers, exact only up to 2^53:
return a hash such as cityHash64(...) or any other 64-bit id as toString(x), and a raw
value_from / value_to as toString(value_from) or as the divided amount. A result of more than
25,000 rows is not cut off - the whole query fails with an error - so aggregate (GROUP BY,
count) or add a LIMIT of at most 25,000.
Xlm tx transfers
ALL VALUE RECORDS of one or more Stellar (xlm, XLM, stellar, lumens) TRANSACTIONS by hash — pass a
single 64-hex transaction hash or up to 50 separated by "|". One row per record: sender →
receiver, sent and delivered amount, asset and issuer, record Type (payment / account /
claimable_balance / maker / fee) and operation, plus the transaction's Success flag, Fee_XLM,
the account that paid the fee (Fee_Account - a fee-bump sponsor when it differs from Signer),
the Signer (source account) and the MEMO (Memo_Type none / text / id / hash / return, and
Memo; a hash or return memo is shown base64-encoded, as on the ledger): an exchange deposit
account tells its customers apart by the memo, so the memo of a payment into an exchange
identifies the customer account there.
A path payment is ONE payment record (what the sender spent → what the receiver got) plus a
maker record for every standing offer it filled (sender = receiver = the offer owner; it gave
Currency and got Delivered_Currency); liquidity-pool legs are not recorded.
A claimable balance shows the balance's 72-character hex id as receiver (creation) or sender
(claim). FAILED transactions (Success 0) consist of their fee record only: nothing else moved.
ASSETS: XLM is Currency_Id 417896 (Issuer empty). Any other asset is a code issued by an account,
and one Currency_Id stands for one code of ONE issuer - but anybody can issue a code: "USDC" has
dozens of issuers, most of them look-alikes, so read Issuer (the real USDC is issued by
GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN). The same code and issuer can appear
under two ids (a 4- and a 12-character asset type).
Amounts are in the asset's own units (XLM, not stroops). USD: Price_Usd / Value_Usd are the
hourly USD price and the value of Amount, with Price_Status ok - for XLM and a handful of listed
assets, each priced by its own Currency_Id, the fee record included (its Value_Usd is the fee in
USD). Every other asset reads Price_Status no_price with both columns null.
WINDOW: searches the LAST 30 DAYS (days) ending at before_time (else today); a hash outside the
window returns NOTHING. For an older transaction set before_time near its date (the Time
xlm_transfers_in / xlm_transfers_out showed for it) and keep days small - that is one quick
read. Only when the date is unknown raise days (days=5000 searches the whole history in one
call, but it reads every month of it: seconds when the data is cached, tens of seconds and
occasionally a minute when it is not). Records
arrive a few minutes after the ledger closes, so a hash from the last minutes may not be found
yet. Find hashes with xlm_transfers_in / xlm_transfers_out.
Rows carry no labels: identify the sender, receiver and signing accounts with
labels_for_addresses(chain='stellar') in one call — coverage is sparse, mostly exchange
reserve wallets.
Xrp address flow summary
ADDRESS FLOW SUMMARY / top counterparties: who an XRP Ledger (xrp, XRP, ripple, XRPL) account
pays and who pays it, in one call — profile (payments sent / received, distinct receivers /
senders, tagged incoming payments) + TOP receivers AND TOP senders (ranked by number of payments
then Σ amount).
NOT only the statistics, without counterparties → use xrp_address_profile.
Collapses address_profile + trace_next_hop(out) + an incoming convergence into a
single call — call this FIRST when triaging a hop. Returns a computed Role over the same window
and currencies as the profile counts (the last `days`, all currencies): receive_only (no
outgoing payment in the window) / send_only (no incoming one) / no_transfers (neither) / hub
(thousands of senders AND receivers — don't trace deeper) / consolidator (senders ≫ receivers)
/ distributor (receivers ≫ senders) / relay (neither dominates). An account paid mostly with
destination tags (Tagged_Payments_Received close to Payments_Received) is a shared deposit
account — an exchange or custodian — whatever its Role. Profile counts are all-currency; the
top arrays honor currency, currency_id, issuer, min_amount and max_amount.
The arrays carry NO labels: pass Address and the Top_Receivers / Top_Senders counterparties to
labels_for_addresses(chain='ripple') in ONE call — it knows the reserve and proof-of-reserves
accounts of the large exchanges (Binance's among them); coverage is otherwise sparse, so an
empty answer is a coverage gap, not a clean account. For raw rows use xrp_transfers_in /
xrp_transfers_out.
READING THE TOP ARRAYS: positional 6-tuples [counterparty, amount, currency, currency_id,
payments, tagged_payments] (the Top_Fields column lists these names in the same order), one
entry per (counterparty, currency) — the same address repeats once per currency it moved.
tagged_payments > 0 on a receiver = you paid a shared deposit account (exchange) with
destination tags.
ONLY PAYMENTS between two different accounts are counted; value moved by an account deletion,
check, escrow, payment channel, AMM or NFT sale has no recorded counterparty and is not in the
arrays (see Type=other in xrp_transfers_in / xrp_transfers_out). Failed transactions never
count.
CURRENCY: native XRP is currency_id 413663; any other currency_id is a currency CODE that
look-alike issuers reuse — pin the real token with currency_id plus issuer (receivers: the token
this account sent; senders: the token this account received).
Amounts here are TOKEN UNITS, never USD - no USD value is available in this data, so there is
no usd filter and totals for different currencies must not be compared or added together. For
a ranking you can reason about, pin ONE currency with currency_id, or bound the range with
min_amount / max_amount.
Counts and rankings cover the LAST 90 DAYS by default, not the account's whole lifetime; raise
days for a longer period. Window_Days / Window_From on the row state the period actually
covered: an account busy long ago but quiet since comes back all zeros - raise days.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Xrp address profile
XRP Ledger (xrp, XRP, ripple, XRPL) account STATISTICS — payments sent / received, distinct
receivers / senders, how many incoming payments carried a destination tag and how many
different tags, other value records (account deletions, checks, escrows, AMM, NFT legs), filled
exchange offers, transactions signed (successful and failed) and fees paid (Fees_Paid_XRP, in
XRP - fees are always paid in XRP), first / last activity. Triage an account during tracing. Role from the ratios: senders ≫ receivers =
consolidator / sweep; receivers ≫ senders = distributor; ~1↔1 = relay (layering); thousands of
both = hub (exchange / service — don't trace deeper). Tagged_Payments_Received close to
Payments_Received with many Distinct_Destination_Tags = a shared deposit account (exchange,
custodian). Failed_Transactions far above the successful ones = an automated bot.
NOT who it deals with → use xrp_address_flow_summary.
Counts cover the LAST 90 DAYS by default, not the account's whole lifetime; raise days for a
longer period. Window_Days / Window_From on the row state the period actually covered: an
account that was busy long ago but quiet since comes back all zeros, which is NOT the same as
an account that never moved anything - raise days to look further back. No USD values; for
labels use labels_for_addresses(chain='ripple').
Xrp flow edges
MONEYFLOW GRAPH EDGES out of an XRP Ledger (xrp, XRP, ripple, XRPL) account: Source → Target,
total Amount, Currency, Currency_Id, payment count and how many of them carried a destination
tag.
NOT choosing which counterparty to follow next → use xrp_trace_next_hop.
Building block for a MoneyFlow DIAGRAM — call per address/hop, collect edges, render
Mermaid `graph LR`, flag & stop at exchange / service nodes (the edges carry no labels —
identify targets with labels_for_addresses(chain='ripple') in one call; a target receiving
tagged payments is a shared deposit
account, typically an exchange). Edges are ranked by number of payments then amount. Pin a
currency with currency_id to avoid dust and spam tokens; time-window the edges with after_time
/ before_time. An edge carries the currency that LEFT the source: a cross-currency payment shows
only the sent side (what the target received is in xrp_transfers_in of the target), and a
conversion into another currency inside one account (a payment to itself) is not an edge at all
— to spot an off-ramp, call WITHOUT a currency filter and compare the currencies of consecutive
hops. For raw rows use xrp_transfers_out.
ONLY PAYMENTS between two different accounts form edges. Value moved by an account deletion,
check, escrow, payment channel, AMM or NFT sale has no recorded target on its sending leg, so it
is NOT an edge here — open such transactions (Type=other in xrp_transfers_out) with
xrp_tx_transfers (an escrow or payment channel pays out in a later, separate transaction).
Failed transactions never count.
CURRENCY: native XRP is Currency_Id 413663; any other Currency_Id is a currency CODE that
look-alike issuers reuse — pin the real token with currency_id plus issuer (matched on the token
that left the source).
Amounts here are TOKEN UNITS, never USD - no USD value is available in this data, so there is
no usd filter and totals for different currencies must not be compared or added together. For
a ranking you can reason about, pin ONE currency with currency_id, or bound the range with
min_amount / max_amount.
Counts and rankings cover the LAST 90 DAYS by default, not the account's whole lifetime; raise
days for a longer period.
Xrp trace dominant path
AUTO-WALK the dominant (largest total amount) OUTGOING PAYMENT edge of ONE currency from an XRP
Ledger (xrp, XRP, ripple, XRPL) account, hop by hop, up to 5 hops — collapses ~5 manual
xrp_trace_next_hop calls into one. Follows native XRP by default (currency_id 413663). Every hop
returns Hop*_To (the account that received), Hop*_Edge_Total, Hop*_Transfers and
Hop*_Tagged_Transfers (how many of those payments carried a destination tag), plus Hops_Found and
Path_Status for the walk itself.
Hop*_Edge_Total is NOT the amount that travelled along the path: it is the total of EVERY payment
of that currency between that hop's sender and receiver over the whole window (days, counted
back from today on every hop), so it can be far larger than the sum you are tracing and the hop
totals are not comparable with each other. For one hop's full ranking call xrp_trace_next_hop on
the hop's sender.
The walk NEVER goes back to an account it has already visited (the seed included), and by
default it STOPS at an account that was paid with destination tags: that is a shared deposit
account, typically an exchange, and its onward payments are the service's own movements, not
the traced funds (Path_Status EXCHANGE_DEPOSIT; stop_at_tagged=0 walks on).
READ Path_Status FIRST — NO_MATCH means no outgoing payment of this currency in the window (wrong
currency_id, or raise days), PATH_END means the trail really ran out, DEPTH_LIMIT means it may
continue past hop 5. The walk carries no labels: pass the hop accounts to
labels_for_addresses(chain='ripple') in one call and read down to the first labeled account.
ONLY PAYMENTS count: value that left through an account deletion, check, escrow, payment channel,
AMM or NFT sale is not followed. currency_id identifies a currency CODE, which look-alike issuers
reuse, and the walk does not separate issuers — for an issued token check each hop with
xrp_trace_next_hop and its issuer filter; a hop INTO the token's issuer means the tokens were
redeemed. Amounts are in the currency's own units (XRP, not drops), never USD.
LIMITS: follows only the single biggest edge per hop (misses splits / fan-outs), fixed depth 5.
For branching tracing call xrp_trace_next_hop hop by hop and choose the next account yourself
(prompt_playbook with playbook=money_flow returns the full procedure). A multi-hop walk over busy
accounts can take several seconds; lower days, or raise min_amount to step over dust edges.
Xrp trace next hop
CONVERGENCE primitive for XRP Ledger (xrp, XRP, ripple, XRPL) tracing: aggregate an account's
OUTGOING PAYMENTS by receiver and currency (Σ amount, count, how many carried a destination tag,
first/last seen), ranked by number of payments then total amount. Stop when a receiver is an
exchange / service — the rows carry no labels, so check the receivers with
labels_for_addresses(chain='ripple') in one call; a receiver
whose payments carry destination tags (Tagged_Transfers, Distinct_Destination_Tags) is a shared
deposit account, typically an exchange. Narrow with currency_id (recommended), after_time /
before_time, min_amount. One row per (receiver, currency); for raw rows use xrp_transfers_out.
NOT edges for a diagram → use xrp_flow_edges.
NOT an automatic walk along the largest edge → use xrp_trace_dominant_path.
ONLY PAYMENTS between two different accounts are counted. Value that left through an account
deletion, a check, an escrow or payment channel, an AMM or an NFT sale is recorded without a
receiver and is NOT in this ranking — look for Type=other rows in xrp_transfers_out and open
those transactions with xrp_tx_transfers (an escrow or payment channel pays out in a later,
separate transaction). Failed transactions never count.
CURRENCY: native XRP is Currency_Id 413663; any other Currency_Id identifies only a currency
CODE, which look-alike issuers reuse (counterfeit "RLUSD", "USD") — pin the real token with
currency_id plus issuer (matched on the token that left this account).
Amounts here are TOKEN UNITS, never USD - no USD value is available in this data, so there is
no usd filter and totals for different currencies must not be compared or added together. For
a ranking you can reason about, pin ONE currency with currency_id, or bound the range with
min_amount / max_amount.
Counts and rankings cover the LAST 90 DAYS by default, not the account's whole lifetime; raise
days for a longer period. On a very busy account (an exchange hot wallet) this aggregates
millions of payments and can take several seconds — pin currency_id and narrow the period.
Returns up to top_n rows (default 10, at most 200), most Transfers first; no rows = nothing matched
in the window.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Each row: Counterparty, Currency, Currency_Id, Total_Amount, Transfers, Tagged_Transfers, Distinct_Destination_Tags, First_Seen, Last_Seen.
Xrp transfers in
INCOMING XRP Ledger (xrp, XRP, ripple, XRPL) transfers to an r-address — where this account
received XRP and issued tokens from, newest first: sender, amount, currency, Destination_Tag,
record Type and transaction type per row. Use it to trace the source of funds backwards, and
with destination_tag to list the deposits of ONE customer of an exchange account. Page back
through older history with cursor: pass the Cursor value of the LAST row of a page — unlike
before_time it never skips rows that share a ledger. Same record types and amount rules as
xrp_transfers_out; for the aggregated view use xrp_address_flow_summary.
AMOUNTS: Amount / Currency is what this account actually received (the delivered amount, never
the inflated face value of a partial payment); Sent_Amount / Sent_Currency is what the sender
actually spent. They differ on a cross-currency payment, and can also differ on a payment of an
issued token (for example by the issuer's transfer fee). XRP is in XRP (not drops).
TYPE: payment = a Payment from another account (Sender = this account means a currency
conversion); trade = a standing exchange offer of this account was filled; other = one leg of
an account deletion, check, escrow release, payment-channel claim, AMM or NFT sale, or
path-payment rounding, so Sender is EMPTY here. Rounding remainders of that kind below
0.000001 (floating-point leftovers of token payments and offer fills, no real value; a token
issuer receives hundreds of thousands) are hidden unless include_dust=1. For an account
deletion, cashed check, AMM or NFT sale the paying leg is a separate record of the same
transaction: open the Tx with
xrp_tx_transfers to see who paid. An escrow release or payment-channel claim pays out what was
locked in an EARLIER transaction, so its payer is not in that transaction. nft_trade / mint /
burn = NFTs (Currency is the NFT id). Fees never appear here (the fees an account paid are
listed by xrp_transfers_out with include_fees=1), and neither do failed transactions —
except a failed (expired) NFT offer acceptance, which still shows its nft_trade record although
the NFT did not move; xrp_tx_transfers shows Success. Pass type='payment' for payments only.
CURRENCY: native XRP is always Currency_Id 413663; any other currency is an issued token, and
its Currency_Id identifies only the CODE — look-alike issuers airdrop counterfeit "RLUSD",
"USD" and similar tokens under the same code. Pin the real token with currency_id plus issuer
(keeps payments that delivered that issuer's token).
USD: Price_Usd is the hourly USD price of Currency at the time of the transfer and Value_Usd =
Amount x Price_Usd - for XRP only (Price_Status ok). An issued token has no price here
(Price_Status no_price, both columns null): never assume one, a currency code says nothing
about the token's value. The newest hour may not be priced yet. Amounts and their filters stay
in TOKEN UNITS (there is no usd filter), and amounts of different currencies must not be
compared or added together: pin ONE currency with currency_id, or bound the range with
min_amount / max_amount.
Destination_Tag: "0" = no tag. An account whose incoming payments nearly all carry different
tags is a shared (exchange / custodial) deposit account. Rows carry no labels: identify senders
with labels_for_addresses(chain='ripple') — coverage is sparse, mostly exchange reserve wallets.
Covers the LAST 90 DAYS by default; raise days to reach older history (a short or empty page
can just mean the window ended, not that the history did). Records arrive a few minutes after
the ledger closes.
Returns limit transfers per page (default 20, at most 1000), newest first, plus any records identical in
every field to the last one (so a page can exceed limit); a sort='amount' page is a top-N and
carries no Cursor.
Each row: Time, Sender, Currency, Currency_Id, Amount, Sent_Currency, Sent_Currency_Id, Sent_Amount, Destination_Tag, Type, Tx_Type, Ledger, Tx, Price_Usd, Value_Usd, Price_Status, Cursor.
Xrp transfers out
OUTGOING XRP Ledger (xrp, XRP, ripple, XRPL) transfers from an r-address — where this account
sent XRP and issued tokens, newest first: receiver, amount, currency, Destination_Tag, record
Type and transaction type per row. Page back through older history with cursor: pass the
Cursor value of the LAST row of a page to get the next one — unlike before_time it never skips
rows that share a ledger. For the aggregated "where did the bulk go" view use
xrp_trace_next_hop; for incoming use xrp_transfers_in; for every record of one transaction use
xrp_tx_transfers.
AMOUNTS: Amount / Currency is what actually left this account, Delivered_Amount /
Delivered_Currency what the receiver actually got — never the inflated face value of a partial
payment. They differ on a cross-currency payment, and can also differ on a payment of an issued
token (for example by the issuer's transfer fee). XRP is in XRP (not drops).
TYPE: payment = a Payment to another account (Receiver = this account means a currency
conversion); trade = a standing exchange offer of this account was filled (it gave Currency and
got Delivered_Currency); other = one leg of an account deletion, check, escrow, payment channel,
AMM or NFT sale, or path-payment rounding, so Receiver is EMPTY here. Rounding remainders of
that kind below 0.000001 (floating-point leftovers of token payments and offer fills, no real
value) are hidden unless include_dust=1. For an account deletion,
cashed check, AMM or NFT sale the receiving leg is a separate record of the same transaction:
open the Tx with xrp_tx_transfers to see where it went. Funding an escrow or payment channel
records only this paying leg — the payout is a later, separate transaction on the receiver's
side. nft_trade / mint / burn = NFTs (Currency is the NFT id). FEES are listed only on
request: include_fees=1 adds one record per transaction this account signed (Type fee, Receiver
empty, Amount = the fee in XRP, with its Value_Usd), and type='fee' lists the fees alone. A
FAILED transaction leaves only its fee, so without the fees failed transactions do not appear —
except a failed (expired) NFT offer acceptance, which still shows its nft_trade record although
the NFT did not move; xrp_tx_transfers shows Success. Pass type='payment' for payments only.
CURRENCY: native XRP is always Currency_Id 413663. Other currencies are issued tokens shown by
their code (hex codes decoded to text when readable). Currency_Id identifies the CODE, not the
token — every issuer's "USD" or "RLUSD" shares one id, including look-alike counterfeit issuers.
Pin the real token with currency_id plus issuer (keeps payments whose SENT token has that
issuer); the issuers of each payment are shown by xrp_tx_transfers.
USD: Price_Usd is the hourly USD price of Currency at the time of the transfer and Value_Usd =
Amount x Price_Usd - for XRP only (Price_Status ok). An issued token has no price here
(Price_Status no_price, both columns null): never assume one, a currency code says nothing
about the token's value. The newest hour may not be priced yet. Amounts and their filters stay
in TOKEN UNITS (there is no usd filter), and amounts of different currencies must not be
compared or added together: pin ONE currency with currency_id, or bound the range with
min_amount / max_amount.
Destination_Tag identifies the receiver's customer at a shared account (an exchange deposit
carries one); "0" = no tag. Rows carry no labels: identify receivers with
labels_for_addresses(chain='ripple') — coverage is sparse, mostly exchange reserve wallets.
Covers the LAST 90 DAYS by default; raise days to reach older history (a short or empty page
can just mean the window ended, not that the history did). Records arrive a few minutes after
the ledger closes.
Xrp transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the XRP Ledger (xrp, XRP, ripple, XRPL) data.
Bitquery MCP xrp_* tools are the PRIORITY; use this ONLY when none can answer. No query optimizer
here: account model — query the per-address tables `ripple_flow.transfers_from` (outgoing, key
`transfer_from`) and `ripple_flow.transfers_to` (incoming, key `transfer_to`); per transaction
`ripple.transfers_tx` (key `tx_hash_bin`). NEVER JOIN big tables (use `IN (SELECT …)`).
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
This data runs on an older release of the engine: some functions and syntax in that reference
(map() and toJSONString() among them) do not exist here — when a statement is refused for an
unknown function or setting, use the forms shown in this description.
EVERY table is organized by month of `tx_date` back to 2013 and keyed only by address or hash:
ALWAYS filter `tx_date` (e.g. `tx_date >= today() - 30`) or the query reads the whole history
and may time out. Time = `tx_time`, ledger index = `block`; date-times come back as
'YYYY-MM-DD hh:mm:ss' UTC; select formatDateTime(t, '%FT%TZ') for ISO.
Transfer columns: tx_hash_bin (binary — `hex(tx_hash_bin)` out, `unhex('…')` in), tx_type
(Payment, OfferCreate, AccountDelete, CheckCash, EscrowFinish, …), transfer_from, transfer_to
(classic r-addresses, case-sensitive), currency_from_id / value_from (what left the sender),
currency_to_id / value_to (what the receiver got — the delivered amount), destination_tag
(String, '0' = none), direction: 'payment' (account to account; from = to is a currency
conversion), 'trade' (a filled offer, from = to), 'other' (one leg of an account deletion,
check, escrow, payment channel, AMM, NFT sale or path rounding — exactly one of transfer_from /
transfer_to is empty), 'nft_trade' / 'mint' / 'burn' (NFTs), 'fee' (one per signed transaction;
a FAILED transaction leaves only its fee row, except an expired NFT offer acceptance that still
lists an nft_trade row). Exclude fees with `direction != 'fee'`; for
account-to-account flow use `direction = 'payment' AND transfer_from != transfer_to`.
Amounts: amount = `value_from / dictGetFloat64('currency','divider',toUInt64(currency_from_id))`
(XRP is currency id 413663, stored in drops, divider 1e6; issued tokens divider 1); code =
`dictGetString('currency','symbol',toUInt64(id))` — 3-letter codes as text, others as 40-hex, NFT ids 64-hex
(`splitByChar('\0', unhex(code))[1]` decodes e.g. RLUSD). A currency id is a CODE shared by
every issuer of that code (counterfeit issuers included); transfer rows carry no issuer — it is in
`ripple.payments_from` / `payments_to` / `payments_tx` (successful Payments: amount_*,
delivered_*, send_max_* currency_id / value / issuer, tag, partial). Transaction status, fee
(drops), memos, source_tag and signer: `ripple.transactions_tx` (key tx_hash_bin) and
`ripple.transactions_sender` (key tx_sender) — result ('tesSUCCESS', 'tecPATH_DRY', …),
success. Per-account balance changes, including the token issuer: `ripple.balances` (key account, currency_id). Also
present: ripple.offers_*, escrows_tx, checks_tx, nftoken_offers_*, account_roots_tx — inspect
with DESCRIBE TABLE first. No USD values; no inline labels (use labels_for_addresses with
chain='ripple'). Read-only. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x). A result of more than 25,000 rows is not cut off - the whole query
fails with an error - so aggregate (GROUP BY, count) or add a LIMIT of at most 25,000.
Xrp tx transfers
ALL VALUE RECORDS of one or more XRP Ledger (xrp, XRP, ripple, XRPL) TRANSACTIONS by hash —
pass a single 64-hex transaction hash or up to 50 separated by "|". One row per record: sender →
receiver, sent and delivered amount and currency, the token ISSUER of a payment, destination
tag, record Type (payment / trade / other / nft_trade / mint / burn / fee), plus the
transaction's Result, Success flag, Fee_XRP, Source_Tag and signing account. This is where a
counterparty missing from xrp_transfers_in/out shows up: an account deletion, cashed check, AMM
or NFT sale is recorded as separate legs of the same transaction (one with an empty receiver,
one with an empty sender) — read both legs here. Escrows and payment channels are the exception:
the funding transaction lists only the paying leg and the later release / claim transaction only
the receiving leg.
FAILED transactions (Result tec..., Success 0) consist of their fee record only: nothing else
moved. One exception: a failed (expired) NFT offer acceptance still lists an nft_trade record
although the NFT did not move — trust Success. A path payment also lists the filled offers of
other accounts (Type trade, sender = receiver) and one-sided legs of AMM pools, of the token
issuer and of rounding (Type other, rounding amounts near 1e-12). Issuer on a payment record is
the issuer of what LEFT the sender — the value the issuer filter of xrp_transfers_out and the
out-side flow tools match; Delivered_Issuer is what the receiver got.
Issuer / Delivered_Issuer name the account that issued the token on a payment record ("" for
XRP, null where the record type carries no issuer); Currency_Id identifies only the currency
CODE, so compare issuers to tell a real token from a look-alike of the same code. Partial = 1
marks a payment sent with the partial-payment flag (the delivered amount is what counts, and
is what Delivered_Amount shows).
USD: Price_Usd / Value_Usd are the hourly USD price and the value of Amount, for records in XRP
only (Price_Status ok) - the fee record included, so its Value_Usd is the fee in USD. An issued
token has no price here (Price_Status no_price, both columns null).
WINDOW: searches the LAST 30 DAYS (days) ending at before_time (else today); a hash outside the
window returns NOTHING. For an older transaction set before_time near its date (the Time
xrp_transfers_in / xrp_transfers_out showed for it) and keep days small. Only when the date is
unknown raise days (days=5000 covers the whole ledger history in one call, only slower).
Records arrive a few minutes after the ledger closes, so a hash from the last minutes may not
be found yet. Find hashes with xrp_transfers_in / xrp_transfers_out.
Rows carry no labels: identify the sender, receiver and signing accounts with
labels_for_addresses(chain='ripple') in one call — coverage is sparse, mostly exchange
reserve wallets.
Zec address flow summary
ADDRESS FLOW SUMMARY / top counterparties of a Zcash (zec, ZEC, mainnet) address in one call: who
it pays and who pays it, plus its lifetime profile and a computed Role. Call this FIRST when
triaging a hop; for raw rows use zec_sent_from_address / zec_address_received,
for one transaction zec_tx_flow.
NOT only the lifetime totals, without counterparties → use zec_address_profile.
PROFILE columns (Lifetime_*, First_Received, Last_Received, Last_Sent) cover the address's
WHOLE history.
Lifetime_Received_ZEC / Lifetime_Sent_ZEC are cumulative TURNOVER, not holdings: every
output ever paid to the address (including the change it pays back to itself inside its own
spending transactions) and every input it ever spent. The same coins are counted each time
they pass through, so a busy exchange wallet's totals can exceed the coin's total supply many
times over; Lifetime_Received minus Lifetime_Sent is the balance at this address.
Role covers the WHOLE history too, not the `days` window, and follows from the lifetime counts:
no_transfers (nothing received and nothing spent) / receive_only (it never spent anything — cold
storage or an unused deposit address) / send_only (spends with no recorded receipt) / hub (more
than 1,000 distinct senders AND more than 1,000 distinct receivers — an exchange or service,
don't trace deeper) / consolidator (distinct senders more than 3 times distinct receivers) /
distributor (distinct receivers more than 3 times distinct senders) / relay (none of these).
The TOP ARRAYS cover only the last `days` (default 90) and, inside that window, at most the
1,000 most recent transactions on each side. Spend_Txs_Scanned / Receipt_Txs_Scanned say how
many were read; Spend_Txs_Truncated / Receipt_Txs_Truncated = 1 means older transactions in
the window were left out. So the arrays do NOT add up to the Lifetime_* totals. Window_Days /
Window_From state the period covered: empty arrays for an address whose Last_Sent is long
ago mean nothing moved in the window, not that it never moved — raise days.
Top_Receivers = the non-change recipients of the transactions this address spent in; Amount =
ZEC paid to that recipient. Top_Senders = the input addresses of the transactions that paid
this address (change excluded); Amount = ZEC this address received in those transactions.
A transaction with several input addresses credits each of them in full (they are usually one
owner — see zec_related_addresses), so Amount can be far more than what moved between the
two addresses. pro_rata_amount is Amount scaled by the input share: how much of those
transactions this address paid (Top_Receivers) or that sender paid (Top_Senders). Both arrays
are RANKED by pro_rata_amount, largest first, and min_amount / max_amount filter on it — dust
and address-poisoning payments hidden inside a large co-signed transaction have a tiny share.
Window_Own_Input_ZEC is what this address itself put into the spending transactions read,
the ceiling the Top_Receivers pro-rata amounts add up to. The arrays are built from a copy of
the transaction data that misses a few whole blocks (a handful a month), so a counterparty can
be absent.
READING THE TOP ARRAYS: positional 4-tuples [counterparty, amount, txs, pro_rata_amount]; the
Top_Fields column lists those names in the same order.
Shielded_Out_ZEC = ZEC the scanned spend transactions moved from the transparent side INTO
the shielded pool; Shielded_In_ZEC = ZEC the scanned receipt transactions brought OUT of it
(whole-transaction values, same window and cap as the arrays; block rewards are not
counted). Shielded_In_ZEC is exact. Shielded_Out_ZEC is exact for the Sapling pool and an
estimate for the Orchard pool, where the shielded amount and the fee are not recorded
separately: a standard fee is subtracted per transaction, so an unusually high fee can add
up to a few hundredths of a ZEC per transaction. Shielded value cannot be
followed: a large Shielded_Out_ZEC with few or no Top_Receivers means the coins went into
the shielded pool (the visible trail ends there), and a receipt funded from the shielded
pool has no visible sender.
Only the TRANSPARENT side of Zcash is visible: transparent addresses start with t1 or
t3. Coins moved into or out of the shielded pool (z-addresses, unified u1… addresses)
cannot be traced here.
Address labels are not available for this chain, so exchange / mixer / service nodes
cannot be recognized from this data.
For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Zec address profile
Zcash (zec, ZEC, mainnet) transparent-address PROFILE (lifetime summary): total received
& sent (ZEC), number of distinct senders/receivers, receiving/spending counts, first/last
activity. Use to triage a ZEC address during tracing — how much flowed and how connected.
NOTE: an aggregate profile, not hop-by-hop edges — zec_address_flow_summary returns the
top counterparties, zec_flow_edges and zec_tx_flow the edges.
Role from the ratio: Distinct_Senders ≫ Distinct_Receivers = consolidator; the reverse =
distributor; thousands of both = mega-hub (exchange — don't trace deeper).
Received_ZEC / Sent_ZEC are cumulative TURNOVER, not holdings: every output ever paid to the
address (including the change it pays back to itself inside its own spending
transactions) and every input it ever spent. The same coins are counted each time they
pass through, so a busy exchange wallet's totals can exceed the coin's total supply many
times over; Received_ZEC minus Sent_ZEC is the balance at this address.
Only the TRANSPARENT side of Zcash is visible: transparent addresses start with t1 or
t3. Coins moved into or out of the shielded pool (z-addresses, unified u1… addresses)
cannot be traced here.
Address labels are not available for this chain, so exchange / mixer / service nodes
cannot be recognized from this data.
Zec address received
INCOMING Zcash (zec, ZEC, mainnet) outputs for an address — every coin received (tx, amount,
output type: payment/change/mining (block reward), time), most recent first. Indexed by
address (fast). Use to see what a ZEC address received and in which transactions.
NOT what this address spent → use zec_sent_from_address.
NOT sums over its whole history → use zec_address_flow_summary or zec_address_profile.
An address can receive several coins (outputs) in one transaction, each its own row.
Returns up to limit rows (default 20, at most 1000), newest first; page back with the last
row's Cursor - a page shorter than limit is the last one. Set sort='amount' for the largest
receipts instead: a top-N page with no Cursor.
NOTE: shows receiving events, not the sender addresses (a UTXO output has
no single sender) — pass a Tx to zec_tx_flow to see the addresses that funded it, or
call zec_address_flow_summary for the top senders. Coins that arrive from the shielded
pool are listed here too: their transaction has no transparent inputs in zec_tx_flow,
and where they came from cannot be traced.
Only the TRANSPARENT side of Zcash is visible: transparent addresses start with t1 or
t3. Coins moved into or out of the shielded pool (z-addresses, unified u1… addresses)
cannot be traced here.
Each row: Time, Tx, Type, Amount_ZEC, Cursor.
Zec flow edges
MONEYFLOW GRAPH EDGES out of a Zcash (zec, ZEC, mainnet) address: Source → Target
(real recipients of the address's spends, excluding change), total Amount (ZEC).
Building block for a MoneyFlow DIAGRAM — call per address/hop, collect edges, render
Mermaid `graph LR`. Merge same-owner Targets via zec_related_addresses.
NOT one transaction's outputs → use zec_tx_flow.
NOT its spending transactions one by one → use zec_sent_from_address.
Returns up to limit rows (default 20, at most 1000), one per recipient of its spends.
Only the scope row (empty Target) for an address that does spend means the coins of the
transactions read went into the shielded pool: the visible trail ends there
(zec_address_flow_summary reports how much).
Only the TRANSPARENT side of Zcash is visible: transparent addresses start with t1 or
t3. Coins moved into or out of the shielded pool (z-addresses, unified u1… addresses)
cannot be traced here.
Address labels are not available for this chain, so exchange / mixer / service nodes
cannot be flagged and there is no label-based stop condition.
Amount is the FULL value of those outputs; Pro_Rata_Amount is the part of it this address paid
for - its own input value divided by the total input value of the same transaction. When the
address signs a transaction together with other addresses, every output of it is credited to
each of them in full, so Amount can be many times the money this address ever moved (over a
hundred times on an address that keeps co-signing with a large wallet). The rows are therefore
RANKED by Pro_Rata_Amount, and that is the figure to add up or to compare between Targets.
Own_Input_ZEC on every row is what the address itself put into the transactions read: the
Pro_Rata_Amount of all its edges adds up to at most that, the rest being fees and change it paid
back to itself.
SCOPE: reads the address's most recent max_txs spending transactions (default 1000, at most
2000); Amount, Pro_Rata_Amount and Txs cover those transactions only. Two scope columns on
every row state what was covered: how many of those transactions were read and the time of the
oldest one. Next_Cursor is set whenever the batch
was full, so older transactions may exist - pass it as cursor (same address and max_txs) to
continue with the next older batch; an empty Next_Cursor means the history ends here. The
outputs of those transactions come from a copy of the transaction data that misses a few whole
blocks (a handful a month), so an edge can be absent; zec_tx_flow and
zec_sent_from_address read the complete data. When nothing matched in the transactions
read, ONE row comes back with an empty Target that carries only these scope columns - that
means no edge in this batch, not in the whole history.
Each row: Source, Target, Currency, Amount, Pro_Rata_Amount, Txs, Own_Input_ZEC, Spend_Txs_Scanned, Oldest_Spend_Time, Next_Cursor.
Zec related addresses
LIKELY SAME-OWNER Zcash (zec, ZEC, mainnet) addresses (common-input-ownership heuristic): addresses that
co-signed inputs together with this address in the same transactions — a strong signal
they belong to the same wallet/entity.
NOT the addresses it paid → use zec_flow_edges.
Shared_Txs is how many txs they co-spent in, Co_Input_ZEC the co-input volume.
Returns up to limit rows (default 20, at most 1000), most Shared_Txs first.
Use to expand an address into its cluster
during tracing. CAVEAT: CoinJoin/mixer txs break the heuristic (false positives) — treat
high-fan-in shared txs with caution. A shared input is evidence of one owner, not proof.
SCOPE: reads the address's most recent max_txs spending transactions (default 1000, at most
2000). Two scope columns on every row state what was covered: how many of those
transactions were read and the time of the oldest one.
Next_Cursor is set whenever the batch was full, so older transactions may exist - pass it as
cursor (same address and max_txs) to continue with the next older batch; an empty Next_Cursor
means the history ends here. The inputs of those transactions come from a copy of the
transaction data that misses a few whole blocks (a handful a month), so a transaction counted in
Spend_Txs_Scanned can contribute no related address; zec_tx_flow and
zec_sent_from_address read the complete data. When nothing matched in the transactions
read, ONE row comes back with an empty Related_Address that carries only these scope columns -
that means nothing in this batch, not in the whole history.
Address labels are not available for this chain, so exchange / mixer / service nodes
cannot be recognized from this data.
Each row: Related_Address, Shared_Txs, Co_Input_ZEC, Spend_Txs_Scanned, Oldest_Spend_Time, Next_Cursor.
Zec sent from address
OUTGOING Zcash (zec, ZEC, mainnet) — transactions where this address SPENT coins (its inputs): tx,
amount, time, and the prior tx that funded each input. Indexed by address (fast).
NOT what this address received → use zec_address_received.
Page back through history with cursor: pass the Cursor value of the LAST row of a
page to get the next one — unlike before_time it never skips rows that share a
timestamp (a busy address can spend hundreds of inputs in the same second).
Set sort='amount' to surface the largest spends instead of the newest.
To see WHERE the funds went, take a Spend_Tx and call zec_tx_flow — its non-change
outputs are the recipients.
A spend that moved the coins into the shielded pool has no transparent recipient in
zec_tx_flow — that is where the visible trail ends.
Zec transfers raw sql
LAST RESORT — arbitrary READ-ONLY SQL against the Zcash transfers data (transparent side
only). The zec_* tools are the PRIORITY; use this ONLY when none of them can answer. No
query optimizer here: filter on the per-key tables and NEVER JOIN big tables (use
`IN (SELECT …)`, the only way to "follow" across txs).
Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home
This data runs on an older release of the engine: some functions and syntax in that reference
(map() and toJSONString() among them) do not exist here — when a statement is refused for an
unknown function or setting, use the forms shown in this description.
ALWAYS query the `_storage` tables of db `zcash` — the same names without `_storage` are far
slower and may time out: `zcash.inputs_by_address_storage` / `outputs_by_address_storage`
(by address), `zcash.inputs_by_tx_storage` (by tx; cols address, tx_id_bin, value,
output_tx_id_bin, output_index) / `outputs_by_tx_storage` (by tx; cols address, tx_id_bin,
output_index, value and direction, an Enum
unknown/not_change/change/likely_not_change/likely_change/mining/fee), `zcash.transactions_storage` (one
row per tx: input_value, output_value, fee_value, is_coinbase, shielded_balance).
`shielded_balance` covers the Sapling and Sprout pools only (< 0 = moved INTO the pool, > 0 =
came out of it); Orchard transfers are not in it: coins shielded into Orchard show up in
`fee_value` (= greatest(input_value - output_value + shielded_balance, 0)), so a "fee" far
above ~0.001 ZEC is shielded value, and output_value > input_value on a non-coinbase tx is
value that came out of a shielded pool. Db `zcash_flow`: address_transfers (by address;
AggregateFunction → -Merge; its count / sum totals are inflated by duplicated rows — take
totals from the `_storage` tables), outputs_to_address (by address), tx_inputs / tx_outputs
(by block, tx_index). outputs_to_address and tx_outputs OMIT every output of a transaction
that has no transparent inputs (all coins coming out of the shielded pool); tx_inputs /
tx_outputs hold duplicated rows in some months (use DISTINCT) — prefer the `zcash` `_storage`
tables for anything that must be complete. Every table is partitioned by month on `tx_date` —
add a `tx_date` bound whenever you can.
Addresses & tx ids: `address` is a plain string (t1…/t3…; empty for coinbase inputs and
fee rows); `tx_id_bin = unhex('<64hex>')`, output `hex(tx_id_bin)`; `value` is
Decimal(18,8), already in ZEC. Date-times come back as 'YYYY-MM-DD hh:mm:ss' UTC; select
formatDateTime(tx_time, '%FT%TZ') for ISO-8601 (2026-09-21T15:04:18Z), the shape the other
tools return. Shielded (z-address) transfers are not in this data. Address
labels are not available for this chain. Read-only; JSONEachRow. A result of more than 25,000
rows is not cut off - the whole query fails with an error - so aggregate (GROUP BY, count) or add a LIMIT of at most 25,000.
64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as
cityHash64(...) or any other 64-bit id as toString(x).
Zec tx flow
Full flow of one or several Zcash (zec, ZEC, mainnet) transactions: all INPUT addresses (senders) and
OUTPUT addresses (receivers) with amounts, each annotated. Note shows change/not_change
on outputs — the real payment is the non-change output(s). THE hop primitive for ZEC
tracing: follow a non-change recipient to its own spends (zec_sent_from_address) and
repeat. tx_hash is the 64-hex id as returned by the other zec tools; pass several ids
separated by "|" (up to 50; ids past the 50th are ignored) to expand a batch in one call — the Tx column attributes each row.
Side is input, output, fee (the miner fee of the transaction — one row per transaction, 0 on a
block reward) or not_found (a requested id that does not exist here — check the id and the
chain). Index is the position of the input or output inside the transaction, and Funded_By_Tx on
an input row is the transaction that created the coins being spent — pass it back to this tool
to trace one hop backwards. An output whose address is also one of the transaction's OWN input
addresses is marked change_to_input_address: the wallet paid itself, so it is not a payment to
someone else.
Only the transparent side of a transaction is shown: when inputs exceed outputs by more
than a normal fee the difference went into the shielded pool, and outputs with no
inputs came out of it (or are a block reward — its single input has an empty Address).
Shielded senders and recipients cannot be traced. The fee row carries that difference
too, so on a transaction that moved coins into the shielded pool it is an upper bound
on the real fee, not the fee itself.
Address labels are not available for this chain, so exchange / mixer / service nodes
cannot be recognized from this data.
Zec wallet ledger
WALLET LEDGER of a set of Zcash (zec, ZEC, mainnet) addresses — one row per transaction that
touches the client's addresses, NETTED over the whole set: what the set received, what it
spent and the difference, so change paid back to one of the client's own addresses is neither
income nor a payment. Built for accounting and tax ledgers, wallet statements and
reconciliation. NOT one address's raw outputs or inputs — use zec_address_received /
zec_sent_from_address; NOT the addresses inside one transaction — use zec_tx_flow.
Pass EVERY address of the wallet in `addresses` (up to 50 per call). Netting covers only the
addresses passed: an address of the same wallet that is left out looks like an outside party —
its change shows as a payment out and its inputs as someone else's (Fee_Shared = 1 is the
usual sign). zec_related_addresses suggests addresses that sign together with a known one.
Direction: in (the set funded no input — a receipt), out (the set funded inputs and at least
one output went elsewhere), self (the set funded inputs and every output came back to it — a
consolidation or an internal move, only the fee left). Net_ZEC = Received_ZEC − Spent_ZEC,
negative on a payment; on an outgoing payment the amount that went to others is −Net −
Fee_Paid. On a transaction funded together with other addresses (Fee_Shared = 1) Net can be
positive although Direction is out or self — read the sign of Net. Received_Raw / Spent_Raw /
Net_Raw / Fee_Raw / Fee_Paid_Raw are the same amounts as exact integer strings in the smallest
unit (1 ZEC = 100,000,000 units) — use them when every digit matters; the decimal columns are
JSON numbers.
Fee_ZEC is the miner fee of the whole transaction. Fee_Paid_ZEC is the set's part of it: all
of it when the set funded every input, nothing when it funded none (a receipt costs the
receiver no fee), and — when other addresses funded inputs too (Fee_Shared = 1) — the fee
split by input value (fee × spent ÷ all inputs, rounded half up to the smallest unit),
Input_Share being the set's share of the transaction's inputs; what the other parties paid is
Fee − Fee_Paid. A shared fee is an estimate: either addresses of the wallet are missing from
`addresses`, or several parties built the transaction together. Is_Coinbase = 1 marks a block
reward (newly mined coins).
Only the TRANSPARENT side of Zcash is netted: transparent addresses start with t1 or t3.
Tx_From_Shielded_ZEC is the ZEC the whole transaction brought OUT of a shielded pool and
Tx_To_Shielded_ZEC the ZEC it moved INTO one (whole-transaction values; the second is an
estimate when the pool does not record the amount). A receipt with Tx_From_Shielded_ZEC
above 0 came from a shielded sender that cannot be traced; a spend whose transparent outputs
all return to the set while Tx_To_Shielded_ZEC is above 0 is an out, not a self — the rest
went into the shielded pool, where the trail ends. Fee_Status: exact; upper_bound (the
transaction may have moved value into a shielded pool that does not record the amount
separately from the fee — the fee columns are null and Fee_Upper_Bound_ZEC is the most the
fee can be, usually far more than the real fee); unknown (the transaction took value out of
such a pool, so its fee is not visible and the fee columns are null).
Price_Usd is the USD price of ZEC at the start of the transaction's hour (hourly market data).
Value_Usd = Net × Price_Usd, signed like Net, and Fee_Usd = Fee_Paid × Price_Usd.
Price_Status: ok; no_price (no market price for that hour — the newest hour or two have none
yet — Price_Usd and the USD columns are null, never a guess and never today's price); suspect
(the price is more than twice, or less than half, the price one day earlier AND one day later
— a likely data glitch, so Value_Usd and Fee_Usd are left empty).
Rows come newest first in block order (Block, then Tx_Index). The window is the last `days`
(default 365), or after_time … before_time for a fixed period such as a tax year. Page with
cursor: pass the Cursor of the LAST row, with every other argument unchanged, to get the next
older page. after_time and before_time bound every page, so no page leaves the period. With
after_time set, a page shorter than `limit` is the end of the period; without it each page
looks `days` back from its cursor, so a walk continues into older history until a page comes
back short. Addresses_Requested / Addresses_Used on every row say how many distinct addresses
were passed and how many were read. No rows = no transaction of these addresses in the window.
Counterparties are not listed: pass a Tx to zec_tx_flow.
SCAN COST grows with the window and with the number of addresses, not with limit: prefer a
fixed period to a very large `days`. A window in which the addresses have more than 200,000
inputs or outputs (an exchange-size address) is refused — narrow it.
Conéctate
Añade Bitquery MCP a tu Slack en dos minutos.
Sin flujos que configurar. Activa las herramientas que ya usas y tu agente se pone a trabajar.
Añadir a Slack
1
Añade Sokko a Slack
Un clic desde el marketplace de Slack. Todo tu equipo tiene Sokko de una vez.
2
Conecta tus herramientas
Sokko funciona con más de 1000 apps y cualquier servidor MCP.
Martin
9:53 AM
@Sokko
¿Qué puedes hacer con Bitquery MCP?
3
Pon a Sokko a trabajar
@menciona a Sokko en cualquier canal y arranca. Minutos, no un fin de semana.
Preguntas, respondidas.
Sokko es un asistente de IA que vive en tu Slack. Conecta tus apps, pide lo que necesitas en lenguaje natural y Sokko se encarga del trabajo por ti.
Regístrate en Sokko, pídele a Sokko que se conecte a Bitquery MCP y aprueba la conexión cuando se te solicite. A partir de ahí puedes pedirle a Sokko que haga cosas en Bitquery MCP cuando quieras.
No. No hay nada que crear ni configurar. Le pides a Sokko en Slack igual que se lo pedirías a un colega, y Sokko se encarga del resto.
Sí. Pídelo una vez y dile a Sokko cuándo repetirlo, como cada lunes a las 9 h, y se convierte en una rutina que se ejecuta sin ti.
Leer y actuar sobre los datos de Bitquery MCP, y lanzar workflows cuando algo cambia. Dile a Sokko el resultado que quieres y se encarga del resto.
Sí. Sokko se conecta a más de 1.000 apps y a cualquier servidor MCP, así que puedes pedir tareas que abarquen Bitquery MCP y el resto de tu stack en una sola petición.