Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Tron trace dominant path
BITQUERY_MCP_TRON_TRACE_DOMINANT_PATHAUTO-WALK the dominant (largest-total-amount) OUTGOING edge of ONE token from a Tron (trx, TRX, TRON) address, hop by hop, up to 5 hops — collapses ~5 manual tron_trace_next_hop calls into one. Every hop returns Hop*_To (the address that received), Hop*_Token (the contract of the token that moved) and Hop*_Edge_Total, plus Hops_Found (how many hops resolved) and Path_Status for the walk itself. Hop*_Edge_Total is NOT the amount that travelled along the path: it is the ALL-TIME total of EVERY transfer of that token between that hop's sender and receiver, so it can be orders of magnitude larger than the sum you are tracing and the hop totals are not comparable with each other. To break one edge down — its transfer count (Transfers), first/last seen, and the full ranking of that address's edges — call tron_trace_next_hop on the hop's sender. The walk NEVER goes back to an address it has already visited (the seed included), so it cannot bounce back and forth between the same two wallets — each hop is the largest edge to a NEW address. READ Path_Status FIRST — NO_MATCH means the token filter matched nothing (wrong symbol, or that symbol belongs to a different token — pass `contract`), PATH_END means the trail really ran out, DEPTH_LIMIT means it may continue past hop 5. All-NULL hops with NO_MATCH are a filter problem, not a dead end. Pass the hop addresses to labels_for_addresses and read down to the FIRST labeled address (CEX / service) — that's the destination. Pin the token with `contract` whenever you know it — a SYMBOL is not unique, clone tokens reuse popular symbols, and with a symbol alone the hops can drift between look-alike tokens; compare the per-hop token contract to spot that. LIMITS: follows only the single biggest edge per hop (misses splits / fan-outs), fixed depth 5, and transfers to the burn address are not followed. For branching / adaptive tracing call tron_trace_next_hop hop by hop, identify each hop with labels_for_addresses and choose the next address yourself (prompt_playbook with playbook=money_flow returns the full step-by-step procedure); for one hop's full ranking use tron_trace_next_hop. Heavy multi-hop walk — can time out on a very busy address; retry, or narrow it with `contract` / a less-busy token.
Tron trace next hop
BITQUERY_MCP_TRON_TRACE_NEXT_HOPCONVERGENCE primitive for Tron (trx, TRX, TRON) tracing: aggregate an address's OUTGOING flow by counterparty (Σ amount, count, first/last seen), largest first. NOT edges for a diagram → use tron_flow_edges. NOT an automatic walk along the largest edge → use tron_trace_dominant_path. Narrow with currency (recommended), after_time, min_amount. Pass the top counterparties to labels_for_addresses to spot an exchange / bridge (= the destination, stop there). One row per (counterparty, TOKEN); identify a token by Contract, not Currency. On a very high-traffic address (an exchange or bridge hub) this aggregates a lot of history and can take tens of seconds — narrow it with contract or currency to one token, and with after_time to one period, which is far faster than one wide call. Amounts here are TOKEN UNITS, never USD - no USD value is available in this data, so there is no usd filter and totals for different tokens must not be compared or added together. For a ranking you can reason about, pin ONE token with contract, or bound the range with min_amount / max_amount. Returns up to top_n rows (default 10, at most 10000), largest Total_Amount first; no rows = nothing matched. `Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token. For the full labelled list in USD, totals by label type, or a set of addresses → counterparties. Each row: Counterparty, Currency, Symbol_NonAscii, Contract, Total_Amount, Transfers, First_Seen, Last_Seen.
Tron transactions
BITQUERY_MCP_TRON_TRANSACTIONSTRANSACTION HISTORY WITH FEES of a Tron (trx, TRX, TRON) address — every transaction the address SENT (signed and paid for), newest first, deep-pageable: time, hash, type, contract called, success, and what it cost. Returns up to limit transactions per page (default 25, at most 10000), newest first, failed transactions (Success = 0) included unless only_successful=1; page back with the last row's Cursor. Fee is the TRX burned for the transaction; Fee_Sun is the same amount exactly, in SUN (1 TRX = 1,000,000 SUN), as a decimal string. Energy_Fee_Sun and Net_Fee_Sun are the parts burned for energy and for bandwidth - Fee can be larger than their sum (activating a new account, for example, is charged in Fee only) and is 0 when staked or free resources covered the transaction. Energy_Used is ALL the energy the transaction consumed, the part paid for by burning TRX included. Net_Used is only the bandwidth taken from the free or staked allowance: bandwidth paid for by burning TRX shows in Net_Fee_Sun while Net_Used reads 0, so Net_Used = 0 does not mean the transaction used no bandwidth. Fee_Usd is the fee at the TRX price of that day; Fee_Price_Status: ok; no_price (Fee_Usd is empty - never read it as zero); suspect (the price is more than twice, or less than half, the price a day earlier AND a day later - a likely data glitch, so Fee_Usd is left empty). A failed transaction (Success = 0) still paid its fee: treat it as a fee-only row. NOT a transfer list and no amounts here: transactions the address only RECEIVED are not listed, and what a transaction moved is in tron_tx_transfers (pass its Tx) or tron_transfers_out / tron_transfers_in. Without after_time the search covers the most recent 30 days (ending at the cursor's time, or at before_time, if set) — set after_time or raise days to reach further back. SCAN COST scales with the window, not with the limit: on a very busy address set days=1 and page back with cursor. Result is the outcome recorded in the transaction's receipt. Each row: Tx, Time, Block, TxIndex, Type, Contract, Success, Result, Fee, Fee_Sun, Energy_Fee_Sun, Net_Fee_Sun, Energy_Used, Net_Used, Fee_Usd, Fee_Price_Status, Cursor.
Tron transfers in
BITQUERY_MCP_TRON_TRANSFERS_ININCOMING Tron (trx, TRX, TRON) transfers to an address — where this wallet received funds from. NOT the opposite direction → use tron_transfers_out. NOT totals per sender → use tron_address_flow_summary. Returns up to limit transfers (default 20, at most 10000), newest first by default; page back with the last row's Cursor. Use to trace the source of funds backwards. For an address with many transfers set min_amount or sort='amount', else large sources hide behind recent dust. Query WITHOUT a currency filter to see where the bulk of funds originated. To identify counterparties, pass the returned addresses to labels_for_addresses. Each row carries the token Contract — a symbol alone can match look-alike clones, so pin the real token with the contract param. Amount is in TOKEN UNITS; amounts of different tokens must never be added together. Each row also carries Price_Usd - the token's USD price at the time of the transfer - and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is known for this token at that time, so Price_Usd and Value_Usd are empty (never read that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with price_at. TRX and every priced token have ONE price per day, so a value is approximate; TRC-10 tokens (no contract) are not priced. There is no usd filter: min_amount / max_amount are in token units. For a ranking you can reason about, pin ONE token with contract, or bound the range with min_amount / max_amount. Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain. `Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token. Each row: Time, Sender, Currency, Symbol_NonAscii, Contract, Amount, Tx, Cursor, Amount_Raw, Decimals, Block, Tx_Index, Price_Status, Price_Usd, Value_Usd.
Tron transfers out
BITQUERY_MCP_TRON_TRANSFERS_OUTOUTGOING Tron (trx, TRX, TRON) transfers from an address — where this wallet sent funds. Narrow with after_time / currency / min_amount. For the aggregated view use tron_trace_next_hop; for incoming use tron_transfers_in. For an address with many transfers set min_amount or sort='amount', else large counterparties hide behind recent dust. Query WITHOUT a currency filter to surface the token → USDT off-ramp. Page back through history with cursor: pass the Cursor value of the LAST row of a page to get the next one — unlike before_time it never skips rows that share a timestamp. To identify counterparties, pass the returned addresses to labels_for_addresses. Each row carries the token Contract — a symbol alone can match look-alike clones, so pin the real token with the contract param. Amount is in TOKEN UNITS; amounts of different tokens must never be added together. Each row also carries Price_Usd - the token's USD price at the time of the transfer - and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is known for this token at that time, so Price_Usd and Value_Usd are empty (never read that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with price_at. TRX and every priced token have ONE price per day, so a value is approximate; TRC-10 tokens (no contract) are not priced. There is no usd filter: min_amount / max_amount are in token units. For a ranking you can reason about, pin ONE token with contract, or bound the range with min_amount / max_amount. Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain.
Tron transfers raw sql
BITQUERY_MCP_TRON_TRANSFERS_RAW_SQLLAST RESORT — arbitrary READ-ONLY SQL against the Tron transfers database. Bitquery MCP tron_* tools are the PRIORITY; use this ONLY when none can answer. A list of wallets / addresses by current balance, or the balance of known addresses, is tron_token_holders / tron_native_balances — do not write it here. No query optimizer here: filter on the indexed key tables — `tron_api.transfers_sender` (outgoing), `tron_api.transfers_receiver` (incoming), `tron_api.transfers_tx` (by tx hash); NEVER JOIN big tables (use `IN (SELECT …)`, or `GLOBAL IN` when a subquery is nested inside another). Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home Addresses are RAW BYTES `FixedString(20)` in `Transfer_Sender` / `Transfer_Receiver` (no 0x41 prefix). The user gives base58 (T…): match `Transfer_Sender = substring(base58Decode('T…'),2,20)`, output `base58Encode(concat(concat(unhex('41'),col),substring(SHA256(SHA256(concat(unhex('41'),col))),1,4)))`. Tx hash is `Transaction_Hash` `FixedString(32)` (hex, no 0x): match one with `Transaction_Hash = unhex('<64hex>')`, several with `Transaction_Hash IN (unhex('a'), unhex('b'))` (both index-friendly — do NOT use `hex(Transaction_Hash) = …`, that full-scans); output `lower(hex(Transaction_Hash))`. A SET built in a subquery must have the column's exact type: `Transaction_Hash IN (SELECT toFixedString(unhex(h), 32) FROM …)`, `toFixedString(…, 20)` for an address. A plain `unhex(…)` set, or a JOIN on a String key, silently misses every value ending in `00`. NEVER put a raw `FixedString` byte column (`Transfer_Sender`/`Transfer_Receiver`/ `Transaction_Hash`) in the SELECT list as-is — the raw bytes are not valid text and corrupt the result; ALWAYS wrap them (`base58Encode(…)` / `lower(hex(…))`) as shown above. Currency symbol + decimals are INLINE columns (no dictionaries): amount = `toFloat64(Transfer_Amount) / pow(10, Transfer_Currency_Decimals)`; symbol = `Transfer_Currency_Symbol`. Always add `AND Transfer_Success = 1` (Tron has NO `Transfer_Type` column). Time = `Block_Time`. Date-time values come back as ISO-8601 UTC, e.g. 2026-09-21T15:04:18Z (toString() of a date-time gives 2026-09-21 15:04:18). Other `tron_api.*` tables (calls, transactions, balances) are reachable with an explicit db prefix. In `tron_api.balances_by_address` / `balances_by_currency` `Balance_Amount` is a SIGNED Int256 DELTA per event, NOT an absolute value: a holder's current balance is `sum(Balance_Amount)` GROUP BY `Balance_Address` (NOT `argMax` / `argMaxMerge`, which read a single delta). `balances_by_address` is keyed by address (per-address or address-set lookups), `balances_by_currency` by `Currency_SmartContract` (per-token); native TRX is `Currency_SmartContract = '' AND Currency_Native = 1` (6 decimals). Counterparty labels are NOT in this database — use labels_for_addresses. Read-only; always add a LIMIT of at most 10,000 — a larger answer fails with an error, so aggregate (GROUP BY, count) instead. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x). Exact table and column names first: chain_list_tables, chain_describe_table and chain_search_columns with database=tron_api.
Tron tx events
BITQUERY_MCP_TRON_TX_EVENTSALL EVENT LOGS in one or more Tron (trx, TRX, TRON) transactions, including decoded arguments plus raw topics and data. Use after tron_find_events identifies a transaction, or whenever a transaction's complete event payload is needed. Accepts up to 50 transaction hashes separated by "|". `Parsed=0` means no ABI matched: Event, Signature and Arguments can then be empty, but Topic0, Topics and Data remain usable. NOT the value moved in a transaction → use tron_tx_transfers. Address arguments are returned as Tron base58 addresses; integers remain decimal strings to avoid JSON-number precision loss; use raw Topics/Data for values wider than the decoded numeric fields. By default, reverted call-frame logs, removed logs and failed transactions are excluded; set only_successful=0 to inspect them with the returned status fields. Unlike EVM chains, LogIndex is populated on Tron and gives the event's ordinal in the whole transaction.
Tron tx transfers
BITQUERY_MCP_TRON_TX_TRANSFERSAll transfers inside ONE OR SEVERAL Tron (trx, TRX, TRON) transactions (sender → receiver, currency, amount) — pass one tx hash or several separated by "|". Each row carries its tx hash and the called method, so batch results stay attributable. NOT the event logs of a transaction → use tron_tx_events. Entry point for tracing from a tx hash. For an address's flow use tron_transfers_out / tron_transfers_in. To identify the addresses, pass them to labels_for_addresses. FRESHNESS: transfers reach this data some minutes after the trade tools see a swap, so a hash that trader_trades or tx_trades already shows can return NO rows here yet - that is lag, not a missing transaction: retry in a few minutes. Returns up to limit transfers (default 100, at most 10000) for all the hashes together, ordered by Tx, largest Amount first; successful transfers only. Each row: Tx, Sender, Receiver, Currency, Amount, Method.
Tx trades
BITQUERY_MCP_TX_TRADESDECODED DEX swaps inside ONE transaction — every swap leg of a tx: side, tokens, base/quote amounts, USD size, price, DEX and pool. Use for "what swaps happened in <tx>", "decode this DEX transaction", "what did this tx trade". This returns DECODED trades (Side, amounts, protocol); for the raw token MOVEMENTS in a tx use the transfer tools (eth_tx_transfers / tron_tx_transfers) instead. Adding or removing liquidity is NOT a trade and produces NO rows here (an LP mint/burn moves tokens but nothing is swapped), so an empty result on such a transaction is the CORRECT answer, not a gap — say the transaction contains no swaps rather than reporting missing data. Use the chain's tx_transfers tool to see the LP token mint/burn and the deposits that went with it. COST / CORRECTNESS: there is NO transaction index — to keep this cheap PASS `token_address` (resolve it first with find_token_by_address) so it filters on the indexed token key. WITHOUT `token_address` it falls back to scanning every trade in the last `lookback_days` days (heavy — ~GBs per day). Trades are kept about 30 days, but this scan stops at 7. AN EMPTY RESULT means the tx is OUTSIDE the lookback window OR had no DEX swap (it may still have plain transfers — check eth_/tron_tx_transfers); widen `lookback_days` (max 7) or supply `token_address` before concluding "no trades". `Symbol_NonAscii` = 1 flags a `Token_Symbol` that is not plain ASCII. That is normal for CJK / emoji token names, but it is also how a scam token impersonates a major one: Cyrillic or Greek look-alike letters make a fake `USDT` / `SOL` / `BTC` read identically to a human. Never treat such a token as the asset it resembles — say the symbol is a look-alike. Symbols longer than 32 characters are cut and end in `…` (spam tokens carry symbols of up to 32,000 characters).
Xlm address flow summary
BITQUERY_MCP_XLM_ADDRESS_FLOW_SUMMARYADDRESS FLOW SUMMARY / top counterparties: who a Stellar (xlm, XLM, stellar, lumens) account pays and who pays it, in one call — profile (payments sent / received, distinct receivers / senders) + TOP receivers AND TOP senders (ranked by number of transfers then Σ amount). NOT only the statistics, without counterparties → use xlm_address_profile. Collapses address_profile + trace_next_hop(out) + an incoming convergence into a single call — call this FIRST when triaging a hop. Returns a computed Role over the same window and assets as the profile counts (the last `days`, all assets): receive_only (no outgoing transfer in the window) / send_only (no incoming one) / no_transfers (neither) / hub (thousands of senders AND receivers — don't trace deeper) / consolidator (senders ≫ receivers) / distributor (receivers ≫ senders) / relay (neither dominates). Stellar payments carry no destination tag: thousands of senders paying into ONE receiver (Role consolidator, Top_Receivers a single account) is the typical shape of an exchange deposit account sweeping to its hot wallet - check both with the label call below. Profile counts are all-asset; the top arrays honor currency, currency_id, min_amount and max_amount. The arrays carry NO labels: pass Address and the Top_Receivers / Top_Senders counterparties to labels_for_addresses(chain='stellar') in ONE call — it knows the reserve accounts of some large exchanges; coverage is otherwise sparse, so an empty answer is a coverage gap, not a clean account. For raw rows use xlm_transfers_in / xlm_transfers_out. READING THE TOP ARRAYS: positional 6-tuples [counterparty, amount, currency, issuer, currency_id, transfers] (the Top_Fields column lists these names in the same order), one entry per (counterparty, asset) — the same address repeats once per asset it moved. Receivers carry the asset this account SENT, senders the asset it RECEIVED. COUNTED: payments and path payments to another account, plus account creations (funding a new account) and account merges (closing this account into another). Claimable balances (their receiver is a one-time balance id - follow one with xlm_transfers_out on that id) and offer fills are NOT counted; liquidity-pool and smart-contract (Soroban) movements are not in this data. Failed transactions never count. ASSETS: XLM is Currency_Id 417896 (Issuer empty). Any other asset is a code issued by an account, and one Currency_Id stands for one code of ONE issuer - but anybody can issue a code: "USDC" has dozens of issuers, most of them look-alikes, so read Issuer (the real USDC is issued by GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN) and pin a token with currency_id or currency=code:issuer. The same code and issuer can appear under two ids (a 4- and a 12-character asset type). Amounts are in the asset's own units (XLM, not stroops; every Stellar asset has 7 decimals) and never USD - no price or USD value of Stellar assets is available here, so totals of different assets must not be compared or added together. For a ranking you can reason about, pin ONE asset with currency_id, or bound the range with min_amount / max_amount. Counts and rankings cover the LAST 90 DAYS by default, not the account's whole lifetime; raise days for a longer period (history back to 2015). Window_Days / Window_From on the row state the period actually covered: an account busy long ago but quiet since comes back all zeros - raise days. For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Xlm address profile
BITQUERY_MCP_XLM_ADDRESS_PROFILEStellar (xlm, XLM, stellar, lumens) account STATISTICS — payments sent / received (payments and path payments plus account creations and merges, between two different accounts), distinct receivers / senders, conversions to itself, accounts it created, claimable balances created and claimed, filled exchange offers, transactions signed (successful and failed), fees paid (Fees_Paid_XLM - including fees it paid as a sponsor for other accounts' transactions), first / last activity, and Created_By = the account that created (funded) it when that happened inside the window. NOT who it deals with → use xlm_address_flow_summary. Triage an account during tracing. Role from the ratios: senders ≫ receivers = consolidator / sweep; receivers ≫ senders = distributor (an airdrop or payout account creates many accounts or balances); ~1↔1 = relay (layering); thousands of both = hub (exchange / service — don't trace deeper); thousands of senders and ONE receiver = typically an exchange deposit account sweeping to its hot wallet (Stellar payments carry no destination tag). Failed_Transactions far above the successful ones = an automated bot. Counts cover the LAST 90 DAYS by default, not the account's whole lifetime; raise days for a longer period (history back to 2015; to find the creator of an older account call xlm_transfers_in with type='account' and a large days). Window_Days / Window_From on the row state the period actually covered: an account that was busy long ago but quiet since comes back all zeros, which is NOT the same as an account that never moved anything - raise days to look further back. No USD values; for labels use labels_for_addresses(chain='stellar').
Xlm flow edges
BITQUERY_MCP_XLM_FLOW_EDGESMONEYFLOW GRAPH EDGES out of a Stellar (xlm, XLM, stellar, lumens) account: Source → Target, total Amount, Currency, Issuer, Currency_Id and transfer count. Building block for a MoneyFlow DIAGRAM — call per address/hop, collect edges, render Mermaid `graph LR`, flag & stop at exchange / service nodes (the edges carry no labels — identify targets with labels_for_addresses(chain='stellar') in one call). Edges are ranked by number of transfers then amount. Pin an asset with currency_id to avoid dust and spam tokens; time-window the edges with after_time / before_time. An edge carries the asset that LEFT the source: a path payment shows only the sent side (what the target received is in xlm_transfers_in of the target), and a conversion inside one account (a path payment to itself) is not an edge at all — to spot an off-ramp, call WITHOUT a currency filter and compare the assets of consecutive hops. For raw rows use xlm_transfers_out. NOT choosing which counterparty to follow next → use xlm_trace_next_hop. COUNTED: payments and path payments to another account, plus account creations (funding a new account) and account merges (closing this account into another). Claimable balances (their receiver is a one-time balance id - follow one with xlm_transfers_out on that id) and offer fills are NOT counted; liquidity-pool and smart-contract (Soroban) movements are not in this data. Failed transactions never count. ASSETS: XLM is Currency_Id 417896 (Issuer empty). Any other asset is a code issued by an account, and one Currency_Id stands for one code of ONE issuer - but anybody can issue a code: "USDC" has dozens of issuers, most of them look-alikes, so read Issuer (the real USDC is issued by GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN) and pin a token with currency_id or currency=code:issuer. The same code and issuer can appear under two ids (a 4- and a 12-character asset type). Amounts are in the asset's own units (XLM, not stroops; every Stellar asset has 7 decimals) and never USD - no price or USD value of Stellar assets is available here, so totals of different assets must not be compared or added together. For a ranking you can reason about, pin ONE asset with currency_id, or bound the range with min_amount / max_amount. Counts and rankings cover the LAST 90 DAYS by default, not the account's whole lifetime; raise days for a longer period (history back to 2015).
Xlm trace dominant path
BITQUERY_MCP_XLM_TRACE_DOMINANT_PATHAUTO-WALK the dominant (largest total amount) OUTGOING edge of ONE asset from a Stellar (xlm, XLM, stellar, lumens) account, hop by hop, up to 5 hops — collapses ~5 manual xlm_trace_next_hop calls into one. Follows XLM by default (currency_id 417896). Every hop returns Hop*_To (the account that received), Hop*_Edge_Total and Hop*_Transfers, plus Hops_Found and Path_Status for the walk itself. Hop*_Edge_Total is NOT the amount that travelled along the path: it is the total of EVERY transfer of that asset between that hop's sender and receiver over the whole window (days, counted back from today on every hop), so it can be far larger than the sum you are tracing and the hop totals are not comparable with each other. For one hop's full ranking call xlm_trace_next_hop on the hop's sender. The walk NEVER goes back to an account it has already visited (the seed included). READ Path_Status FIRST — NO_MATCH means no outgoing transfer of this asset in the window (wrong currency_id, or raise days), PATH_END means the trail really ran out, DEPTH_LIMIT means it may continue past hop 5. The walk carries no labels and does not stop at exchanges by itself: pass the hop accounts to labels_for_addresses(chain='stellar') in one call and read down to the first labeled account; past an exchange the hops are the exchange's own movements, not the traced funds. COUNTED: payments and path payments to another account, account creations and account merges (the sent side of a path payment, in the asset that LEFT the sender) — claimable balances and offer fills are not followed. currency_id stands for one asset code of one issuer (take it from xlm_transfers_out or xlm_trace_next_hop); a hop INTO the asset's issuer means the asset was redeemed. Amounts are in the asset's own units (XLM, not stroops), never USD. LIMITS: follows only the single biggest edge per hop (misses splits / fan-outs), fixed depth 5. For branching tracing call xlm_trace_next_hop hop by hop and choose the next account yourself (prompt_playbook with playbook=money_flow returns the full procedure). A multi-hop walk over busy accounts can take several seconds; lower days, or raise min_amount to step over dust edges.
Xlm trace next hop
BITQUERY_MCP_XLM_TRACE_NEXT_HOPCONVERGENCE primitive for Stellar (xlm, XLM, stellar, lumens) tracing: aggregate an account's OUTGOING transfers by receiver and asset (Σ amount, count, first/last seen), ranked by number of transfers then total amount. Stop when a receiver is an exchange / service — the rows carry no labels, so check the receivers with labels_for_addresses(chain='stellar') in one call; a receiver that thousands of accounts pay (xlm_address_flow_summary Role hub) is typically an exchange deposit account. Narrow with currency_id (recommended), after_time / before_time, min_amount. One row per (receiver, asset); for raw rows use xlm_transfers_out. NOT edges for a diagram → use xlm_flow_edges. NOT an automatic walk along the largest edge → use xlm_trace_dominant_path. COUNTED: payments and path payments to another account, plus account creations (funding a new account) and account merges (closing this account into another). Claimable balances (their receiver is a one-time balance id - follow one with xlm_transfers_out on that id) and offer fills are NOT counted; liquidity-pool and smart-contract (Soroban) movements are not in this data. Failed transactions never count. ASSETS: XLM is Currency_Id 417896 (Issuer empty). Any other asset is a code issued by an account, and one Currency_Id stands for one code of ONE issuer - but anybody can issue a code: "USDC" has dozens of issuers, most of them look-alikes, so read Issuer (the real USDC is issued by GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN) and pin a token with currency_id or currency=code:issuer. The same code and issuer can appear under two ids (a 4- and a 12-character asset type). Amounts are in the asset's own units (XLM, not stroops; every Stellar asset has 7 decimals) and never USD - no price or USD value of Stellar assets is available here, so totals of different assets must not be compared or added together. For a ranking you can reason about, pin ONE asset with currency_id, or bound the range with min_amount / max_amount. Counts and rankings cover the LAST 90 DAYS by default, not the account's whole lifetime; raise days for a longer period (history back to 2015). On a very busy account this aggregates millions of transfers and can take several seconds — pin currency_id and narrow the period. Returns up to top_n rows (default 10, at most 200), most Transfers first; no rows = nothing matched in the window. For the full labelled list in USD, totals by label type, or a set of addresses → counterparties. Each row: Counterparty, Currency, Issuer, Currency_Id, Total_Amount, Transfers, First_Seen, Last_Seen.
Xlm transfers in
BITQUERY_MCP_XLM_TRANSFERS_ININCOMING Stellar (xlm, XLM, stellar, lumens) transfers to an account — where it received XLM and issued assets from, newest first: sender, amount, asset and issuer, record Type and operation per row. Use it to trace the source of funds backwards. Page back through older history with cursor: pass the Cursor value of the LAST row of a page — unlike before_time it never skips rows that share a ledger. Same record types and amount rules as xlm_transfers_out; for the aggregated view use xlm_address_flow_summary. AMOUNTS: Amount / Currency is what this account actually received; Sent_Amount / Sent_Currency is what the sender actually spent. They differ on a path payment (converted on the way) and on an offer fill. TYPE: payment = a payment or path payment from another account (Sender = this account means a conversion); account = the Sender created (funded) this account - with type='account' and a large days this finds who created an account - or merged itself into it, handing over all its XLM; claimable_balance = this account claimed a claimable balance, so Sender is the balance's 72-character hex id - call xlm_transfers_in with that id as address to see who created it (an address with thousands of such claims is usually collecting airdrops); maker = a standing exchange offer of this account was filled (it got Currency and gave Sent_Currency). Fees and failed transactions never appear here (the fees an account paid are listed by xlm_transfers_out with include_fees=1). Liquidity-pool movements and smart-contract (Soroban) token movements are NOT recorded in this data. Pass type='payment' for payments only. The memo of each transaction (the customer id an exchange asks depositors to add, for example) is not on these rows: pass up to 50 Tx hashes of a page to xlm_tx_transfers in ONE call. ASSETS: XLM is Currency_Id 417896 (Issuer empty). Any other asset is a code issued by an account, and one Currency_Id stands for one code of ONE issuer - but anybody can issue a code: "USDC" has dozens of issuers, most of them look-alikes, so read Issuer (the real USDC is issued by GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN) and pin a token with currency_id or currency=code:issuer. The same code and issuer can appear under two ids (a 4- and a 12-character asset type). Amounts are in the asset's own units (XLM, not stroops; every Stellar asset has 7 decimals); Amount_Raw is the same amount as an exact integer string in the smallest unit (Decimals = 7). USD: Price_Usd is the hourly USD price of Currency at the time of the transfer and Value_Usd = Amount x Price_Usd, with Price_Status ok - available for XLM and a handful of listed assets, each priced by its own Currency_Id (one code of ONE issuer), so a look-alike of the same code never inherits a price. Every other asset reads Price_Status no_price with both columns null - never assume a price for it. The newest hour may not be priced yet. Filters stay in asset units (there is no usd filter), and amounts of different assets must not be compared or added together: pin ONE asset with currency_id, or bound the range with min_amount / max_amount. Rows carry no labels: identify senders with labels_for_addresses(chain='stellar') - coverage is sparse, mostly exchange reserve wallets. Covers the LAST 90 DAYS by default; raise days to reach older history (back to 2015; a short or empty page can just mean the window ended, not that the history did). Records arrive a few minutes after the ledger closes. Returns limit transfers per page (default 20, at most 1000), newest first, plus any records identical in every field to the last one (so a page can exceed limit); a sort='amount' page is a top-N and carries no Cursor. Each row: Time, Sender, Currency, Issuer, Currency_Id, Amount, Amount_Raw, Decimals, Sent_Currency, Sent_Issuer, Sent_Currency_Id, Sent_Amount, Type, Operation, Ledger, Tx, Price_Usd, Value_Usd, Price_Status, Cursor.
Xlm transfers out
BITQUERY_MCP_XLM_TRANSFERS_OUTOUTGOING Stellar (xlm, XLM, stellar, lumens) transfers from an account — where it sent XLM and issued assets, newest first: receiver, amount, asset and issuer, record Type and operation per row. Page back through older history with cursor: pass the Cursor value of the LAST row of a page to get the next one — unlike before_time it never skips rows that share a ledger. For the aggregated "where did the bulk go" view use xlm_trace_next_hop; for incoming use xlm_transfers_in; for every record of one transaction (and its memo) use xlm_tx_transfers. AMOUNTS: Amount / Currency is what actually left this account, Delivered_Amount / Delivered_Currency what the receiver actually got. They differ on a path payment (a payment converted on the way, possibly to this account itself), and on an offer fill. TYPE: payment = a payment or path payment to another account (Receiver = this account means a conversion from one asset into another); account = this account created (funded) a new account, or was merged into Receiver - closing it and sending all its XLM; claimable_balance = this account locked value into a claimable balance, so Receiver is the balance's 72-character hex id - call xlm_transfers_out with that id as address to see who claimed it (it can also be claimed back by this account); maker = a standing exchange offer of this account was filled by someone else's trade or path payment (Receiver = this account; it gave Currency and got Delivered_Currency) - the trading account itself has no record of its own. Operation names the Stellar operation. FEES are listed only on request: include_fees=1 adds one record per transaction whose fee this account paid (Type fee, Receiver empty, Amount = the fee in XLM, with its Value_Usd; on a fee-bump transaction the payer is the sponsor, not the signer), and type='fee' lists the fees alone. A FAILED transaction moves nothing and leaves only its fee, so without the fees it does not appear. Liquidity-pool deposits, withdrawals and swaps and smart-contract (Soroban) token movements are NOT recorded in this data. Pass type='payment' for payments only. The memo of each transaction (an exchange's customer id, for example) is not on these rows: pass up to 50 Tx hashes of a page to xlm_tx_transfers in ONE call to read them. ASSETS: XLM is Currency_Id 417896 (Issuer empty). Any other asset is a code issued by an account, and one Currency_Id stands for one code of ONE issuer - but anybody can issue a code: "USDC" has dozens of issuers, most of them look-alikes, so read Issuer (the real USDC is issued by GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN) and pin a token with currency_id or currency=code:issuer. The same code and issuer can appear under two ids (a 4- and a 12-character asset type). Amounts are in the asset's own units (XLM, not stroops; every Stellar asset has 7 decimals); Amount_Raw is the same amount as an exact integer string in the smallest unit (Decimals = 7). USD: Price_Usd is the hourly USD price of Currency at the time of the transfer and Value_Usd = Amount x Price_Usd, with Price_Status ok - available for XLM and a handful of listed assets, each priced by its own Currency_Id (one code of ONE issuer), so a look-alike of the same code never inherits a price. Every other asset reads Price_Status no_price with both columns null - never assume a price for it. The newest hour may not be priced yet. Filters stay in asset units (there is no usd filter), and amounts of different assets must not be compared or added together: pin ONE asset with currency_id, or bound the range with min_amount / max_amount. Rows carry no labels: identify receivers with labels_for_addresses(chain='stellar') - coverage is sparse, mostly exchange reserve wallets. Covers the LAST 90 DAYS by default; raise days to reach older history (back to 2015; a short or empty page can just mean the window ended, not that the history did). Records arrive a few minutes after the ledger closes.
Xlm transfers raw sql
BITQUERY_MCP_XLM_TRANSFERS_RAW_SQLLAST RESORT — arbitrary READ-ONLY SQL against the Stellar (xlm, XLM, stellar, lumens) data. Bitquery MCP xlm_* tools are the PRIORITY; use this ONLY when none can answer. No query optimizer here: account model — query the per-address tables `stellar.transfers_from` (outgoing, key `transfer_from`) and `stellar.transfers_to` (incoming, key `transfer_to`); per transaction `stellar.transfers_tx` (key `tx_hash_bin`). NEVER JOIN big tables (use `IN (SELECT …)`). Use the `stellar` database only: `stellar_flow` starts in December 2023 and misses some ledgers. Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home This data runs on an older release of the engine: some functions and syntax in that reference (map() and toJSONString() among them) do not exist here — when a statement is refused for an unknown function or setting, use the forms shown in this description. EVERY table is organized by month of `tx_date` back to 2015 and keyed only by address or hash: ALWAYS filter `tx_date` (e.g. `tx_date >= today() - 30`) or the query reads the whole history and may time out. Time = `tx_time`, ledger = `block`; date-times come back as 'YYYY-MM-DD hh:mm:ss' UTC; select formatDateTime(t, '%FT%TZ') for ISO. Transfer columns: tx_hash_bin (binary — `hex(tx_hash_bin)` out, `unhex('…')` in), tx_sender, operation (payment, path_payment_strict_send, path_payment_strict_receive, create_account, account_merge, create_claimable_balance, claim_claimable_balance, manage_buy_offer, manage_sell_offer, …), op_index, effect_index, transfer_from, transfer_to (G-addresses in upper case; a claimable balance appears as its 72-character hex id in lower case), currency_from_id / value_from (what left the sender), currency_to_id / value_to (what the receiver got), direction: 'payment' (payments and path payments; from = to is a conversion), 'account' (create_account funding and account_merge), 'claimable_balance' (create: account → balance id; claim: balance id → claimant), 'maker' (a filled standing offer; from = to = the offer owner, value_from what it gave, value_to what it got), 'fee' (one per transaction, from = the account that paid it - the fee-bump sponsor when there is one; a FAILED transaction leaves only its fee row). Exclude fees with `direction != 'fee'`; for account-to-account flow use `direction IN ('payment', 'account') AND transfer_from != transfer_to`. Amounts: every asset has 7 decimals and the values are raw integers (XLM in stroops) — amount = `toFloat64(value_from) / 10000000`. XLM is currency id 417896; any other id is ONE asset code of ONE issuer: code = `dictGetString('currency','symbol',toUInt64(id))`, and `dictGetString('currency','name',toUInt64(id))` is "CODE [ISSUER]" — guard misses with `dictHas('currency',toUInt64(id))`. Many issuers reuse popular codes (USDC), so compare issuers. Transaction status, fee (stroops), fee_account, memo (memo_type, memos) and signer (tx_sender): `stellar.transactions` (key tx_hash_bin) and `stellar.transactions_sender` (key tx_sender) — success (1 = succeeded, 0 = failed). Payments with their path and source / destination limits: `stellar.payments_from` / `payments_to` / `payments_tx`. Also present: stellar.operations_account / operations_tx, effects_tx, balance_effects_address (key address, currency_id), trade_effects_tx, liquidity_pool_effects / liquidity_pool_trade_effects, claimable_balance_effects, blocks — inspect with DESCRIBE TABLE first. Liquidity-pool and smart-contract (Soroban) movements are not in the transfer tables. No USD values or prices; no inline labels (use labels_for_addresses with chain='stellar'). Read-only. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x), and a raw value_from / value_to as toString(value_from) or as the divided amount. A result of more than 25,000 rows is not cut off - the whole query fails with an error - so aggregate (GROUP BY, count) or add a LIMIT of at most 25,000.
Xlm tx transfers
BITQUERY_MCP_XLM_TX_TRANSFERSALL VALUE RECORDS of one or more Stellar (xlm, XLM, stellar, lumens) TRANSACTIONS by hash — pass a single 64-hex transaction hash or up to 50 separated by "|". One row per record: sender → receiver, sent and delivered amount, asset and issuer, record Type (payment / account / claimable_balance / maker / fee) and operation, plus the transaction's Success flag, Fee_XLM, the account that paid the fee (Fee_Account - a fee-bump sponsor when it differs from Signer), the Signer (source account) and the MEMO (Memo_Type none / text / id / hash / return, and Memo; a hash or return memo is shown base64-encoded, as on the ledger): an exchange deposit account tells its customers apart by the memo, so the memo of a payment into an exchange identifies the customer account there. A path payment is ONE payment record (what the sender spent → what the receiver got) plus a maker record for every standing offer it filled (sender = receiver = the offer owner; it gave Currency and got Delivered_Currency); liquidity-pool legs are not recorded. A claimable balance shows the balance's 72-character hex id as receiver (creation) or sender (claim). FAILED transactions (Success 0) consist of their fee record only: nothing else moved. ASSETS: XLM is Currency_Id 417896 (Issuer empty). Any other asset is a code issued by an account, and one Currency_Id stands for one code of ONE issuer - but anybody can issue a code: "USDC" has dozens of issuers, most of them look-alikes, so read Issuer (the real USDC is issued by GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN). The same code and issuer can appear under two ids (a 4- and a 12-character asset type). Amounts are in the asset's own units (XLM, not stroops). USD: Price_Usd / Value_Usd are the hourly USD price and the value of Amount, with Price_Status ok - for XLM and a handful of listed assets, each priced by its own Currency_Id, the fee record included (its Value_Usd is the fee in USD). Every other asset reads Price_Status no_price with both columns null. WINDOW: searches the LAST 30 DAYS (days) ending at before_time (else today); a hash outside the window returns NOTHING. For an older transaction set before_time near its date (the Time xlm_transfers_in / xlm_transfers_out showed for it) and keep days small - that is one quick read. Only when the date is unknown raise days (days=5000 searches the whole history in one call, but it reads every month of it: seconds when the data is cached, tens of seconds and occasionally a minute when it is not). Records arrive a few minutes after the ledger closes, so a hash from the last minutes may not be found yet. Find hashes with xlm_transfers_in / xlm_transfers_out. Rows carry no labels: identify the sender, receiver and signing accounts with labels_for_addresses(chain='stellar') in one call — coverage is sparse, mostly exchange reserve wallets.
Xrp address flow summary
BITQUERY_MCP_XRP_ADDRESS_FLOW_SUMMARYADDRESS FLOW SUMMARY / top counterparties: who an XRP Ledger (xrp, XRP, ripple, XRPL) account pays and who pays it, in one call — profile (payments sent / received, distinct receivers / senders, tagged incoming payments) + TOP receivers AND TOP senders (ranked by number of payments then Σ amount). NOT only the statistics, without counterparties → use xrp_address_profile. Collapses address_profile + trace_next_hop(out) + an incoming convergence into a single call — call this FIRST when triaging a hop. Returns a computed Role over the same window and currencies as the profile counts (the last `days`, all currencies): receive_only (no outgoing payment in the window) / send_only (no incoming one) / no_transfers (neither) / hub (thousands of senders AND receivers — don't trace deeper) / consolidator (senders ≫ receivers) / distributor (receivers ≫ senders) / relay (neither dominates). An account paid mostly with destination tags (Tagged_Payments_Received close to Payments_Received) is a shared deposit account — an exchange or custodian — whatever its Role. Profile counts are all-currency; the top arrays honor currency, currency_id, issuer, min_amount and max_amount. The arrays carry NO labels: pass Address and the Top_Receivers / Top_Senders counterparties to labels_for_addresses(chain='ripple') in ONE call — it knows the reserve and proof-of-reserves accounts of the large exchanges (Binance's among them); coverage is otherwise sparse, so an empty answer is a coverage gap, not a clean account. For raw rows use xrp_transfers_in / xrp_transfers_out. READING THE TOP ARRAYS: positional 6-tuples [counterparty, amount, currency, currency_id, payments, tagged_payments] (the Top_Fields column lists these names in the same order), one entry per (counterparty, currency) — the same address repeats once per currency it moved. tagged_payments > 0 on a receiver = you paid a shared deposit account (exchange) with destination tags. ONLY PAYMENTS between two different accounts are counted; value moved by an account deletion, check, escrow, payment channel, AMM or NFT sale has no recorded counterparty and is not in the arrays (see Type=other in xrp_transfers_in / xrp_transfers_out). Failed transactions never count. CURRENCY: native XRP is currency_id 413663; any other currency_id is a currency CODE that look-alike issuers reuse — pin the real token with currency_id plus issuer (receivers: the token this account sent; senders: the token this account received). Amounts here are TOKEN UNITS, never USD - no USD value is available in this data, so there is no usd filter and totals for different currencies must not be compared or added together. For a ranking you can reason about, pin ONE currency with currency_id, or bound the range with min_amount / max_amount. Counts and rankings cover the LAST 90 DAYS by default, not the account's whole lifetime; raise days for a longer period. Window_Days / Window_From on the row state the period actually covered: an account busy long ago but quiet since comes back all zeros - raise days. For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.
Xrp address profile
BITQUERY_MCP_XRP_ADDRESS_PROFILEXRP Ledger (xrp, XRP, ripple, XRPL) account STATISTICS — payments sent / received, distinct receivers / senders, how many incoming payments carried a destination tag and how many different tags, other value records (account deletions, checks, escrows, AMM, NFT legs), filled exchange offers, transactions signed (successful and failed) and fees paid (Fees_Paid_XRP, in XRP - fees are always paid in XRP), first / last activity. Triage an account during tracing. Role from the ratios: senders ≫ receivers = consolidator / sweep; receivers ≫ senders = distributor; ~1↔1 = relay (layering); thousands of both = hub (exchange / service — don't trace deeper). Tagged_Payments_Received close to Payments_Received with many Distinct_Destination_Tags = a shared deposit account (exchange, custodian). Failed_Transactions far above the successful ones = an automated bot. NOT who it deals with → use xrp_address_flow_summary. Counts cover the LAST 90 DAYS by default, not the account's whole lifetime; raise days for a longer period. Window_Days / Window_From on the row state the period actually covered: an account that was busy long ago but quiet since comes back all zeros, which is NOT the same as an account that never moved anything - raise days to look further back. No USD values; for labels use labels_for_addresses(chain='ripple').