Developer Tools · Data & Analytics

Bitquery MCP

Bitquery MCP lets agents query on-chain blockchain data across EVM chains, Solana, Tron, Cardano, Hyperliquid and Polymarket, including token transfers, trades, holders, prices and address activity.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • 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.

PreviousPage 18 / 18