Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Dash related addresses
BITQUERY_MCP_DASH_RELATED_ADDRESSESLIKELY 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
BITQUERY_MCP_DASH_SENT_FROM_ADDRESSOUTGOING 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
BITQUERY_MCP_DASH_TRANSFERS_RAW_SQLLAST 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
BITQUERY_MCP_DASH_TX_FLOWFull 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
BITQUERY_MCP_DASH_WALLET_LEDGERWALLET 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
BITQUERY_MCP_DATA_COVERAGEFRESHNESS 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
BITQUERY_MCP_DESCRIBE_TABLECOLUMNS 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
BITQUERY_MCP_DOGE_ADDRESS_FLOW_SUMMARYADDRESS 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
BITQUERY_MCP_DOGE_ADDRESS_PROFILEDogecoin (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
BITQUERY_MCP_DOGE_ADDRESS_RECEIVEDINCOMING 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
BITQUERY_MCP_DOGE_FLOW_EDGESMONEYFLOW 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
BITQUERY_MCP_DOGE_RELATED_ADDRESSESLIKELY 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
BITQUERY_MCP_DOGE_SENT_FROM_ADDRESSOUTGOING 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
BITQUERY_MCP_DOGE_TRANSFERS_RAW_SQLLAST 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
BITQUERY_MCP_DOGE_TX_FLOWFull 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
BITQUERY_MCP_DOGE_WALLET_LEDGERWALLET 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
BITQUERY_MCP_EARLY_BUYERSEARLY 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
BITQUERY_MCP_ETH_ADDRESS_FLOW_SUMMARYADDRESS 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
BITQUERY_MCP_ETH_ADDRESS_PROFILEEthereum (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
BITQUERY_MCP_ETH_CONTRACT_CREATORWHO 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.