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.

  • Ltc sent from address

    OUTGOING Litecoin (ltc, LTC, mainnet) — transactions where this address SPENT coins (its inputs): tx, amount, time, and the prior tx that funded each input. Indexed by address (fast). NOT what this address received → use ltc_address_received. Page back through history with cursor: pass the Cursor value of the LAST row of a page to get the next one — unlike before_time it never skips rows that share a timestamp (a busy address can spend hundreds of inputs in the same second). Set sort='amount' to surface the largest spends instead of the newest. To see WHERE the funds went, take a Spend_Tx and call ltc_tx_flow — its non-change outputs are the recipients.

  • Ltc transfers raw sql

    LAST RESORT — arbitrary READ-ONLY SQL against the Litecoin transfers data. The ltc_* tools are the PRIORITY; use this ONLY when none of them can answer. No query optimizer here: filter on the per-key tables and NEVER JOIN big tables (use `IN (SELECT …)`, the only way to "follow" across txs). Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home This data runs on an older release of the engine: some functions and syntax in that reference (map() and toJSONString() among them) do not exist here — when a statement is refused for an unknown function or setting, use the forms shown in this description. Every table has a `blockchain_id` column and also holds rows of other blockchain_id values: filter `blockchain_id = 6` (Litecoin) on EVERY table you read, inside each IN (SELECT …) as well — block numbers are not unique across blockchain_id values, so an unfiltered read mixes in rows that are not Litecoin's. Query the plain names of db `altcoin`, NEVER a `_storage` table (each holds only part of the data). Tables (db `altcoin`): `altcoin.inputs_by_address` / `outputs_by_address` (by address), `altcoin.inputs_by_tx` (by tx; cols address, tx_id_bin, value, output_tx_id_bin, output_index) and `altcoin.outputs_by_tx` (by tx; cols address, tx_id_bin, output_index, value and direction, an Enum unknown/not_change/change/likely_not_change/likely_change/mining/fee/minting/genesis), `altcoin.transactions` (one row per tx: tx_date, input_value, output_value, fee_value, is_coinbase; look a hash's tx_date up here first). Every `altcoin` table is partitioned by month on `tx_date` — add a `tx_date` bound whenever you can: a read by address or tx alone probes every month since the chain began. Db `altcoin_flow`: address_transfers (keyed by blockchain_id, address; AggregateFunction → -Merge; its count / sum totals hold a few duplicated and missing records — take exact totals from the `altcoin` tables), outputs_to_address (by address), tx_inputs / tx_outputs (by block, tx_index; a few whole blocks are missing). Addresses & tx ids: `address` is a plain string (L… / M… base58, ltc1… bech32 lowercase; m-… / d-… placeholders for bare multisig / non-standard scripts; empty for coinbase inputs and fee rows); `tx_id_bin = unhex('<64hex>')`, output `hex(tx_id_bin)`; `value` is Decimal(18,8), already in LTC (a JSON number: above about 1e8 it loses its last decimals - return toString(value) when every decimal matters). Date-times come back as 'YYYY-MM-DD hh:mm:ss' UTC; select formatDateTime(tx_time, '%FT%TZ') for ISO-8601 (2026-09-21T15:04:18Z), the shape the other tools return. Address labels: none in this data — use labels_for_addresses(chain='litecoin'). Read-only; JSONEachRow. A result of more than 25,000 rows is not cut off - the whole query fails with an error - so aggregate (GROUP BY, count) or add a LIMIT of at most 25,000. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x).

  • Ltc tx flow

    Full flow of one or several Litecoin (ltc, LTC, mainnet) transactions: all INPUT addresses (senders) and OUTPUT addresses (receivers) with amounts, each annotated. Note shows change/not_change on outputs — the real payment is the non-change output(s). THE hop primitive for LTC tracing: follow a non-change recipient to its own spends (ltc_sent_from_address) and repeat. tx_hash is the 64-hex id as returned by the other ltc tools; pass several ids separated by "|" (up to 50; ids past the 50th are ignored) to expand a batch in one call — the Tx column attributes each row. Side is input, output, fee (the miner fee of the transaction — one row per transaction, 0 on a block reward) or not_found (a requested id that does not exist here — check the id and the chain). Index is the position of the input or output inside the transaction, and Funded_By_Tx on an input row is the transaction that created the coins being spent — pass it back to this tool to trace one hop backwards. An output whose address is also one of the transaction's OWN input addresses is marked change_to_input_address: the wallet paid itself, so it is not a payment to someone else. Outputs whose script has no standard address carry a placeholder instead of an address: m-… (a bare multisig script) or d-… (a data or other non-standard script; one d-… value can stand for many unrelated outputs). A placeholder cannot be looked up with the address tools — the visible trail ends there. About one Litecoin output in seven is not classified (Note unknown) and counts as a payment, so a few change outputs can appear among the recipients. No address labels are returned here: identify addresses with labels_for_addresses(chain='litecoin'), which knows only a few hundred Litecoin addresses (exchange reserve wallets, sanctioned entities) — pass many addresses in ONE call; an empty answer there is a coverage gap, not a clean address.

  • Ltc wallet ledger

    WALLET LEDGER of a set of Litecoin (ltc, LTC, mainnet) addresses — one row per transaction that touches the client's addresses, NETTED over the whole set: what the set received, what it spent and the difference, so change paid back to one of the client's own addresses is neither income nor a payment. Built for accounting and tax ledgers, wallet statements and reconciliation. NOT one address's raw outputs or inputs — use ltc_address_received / ltc_sent_from_address; NOT the addresses inside one transaction — use ltc_tx_flow. Pass EVERY address of the wallet in `addresses` (up to 50 per call). Netting covers only the addresses passed: an address of the same wallet that is left out looks like an outside party — its change shows as a payment out and its inputs as someone else's (Fee_Shared = 1 is the usual sign). ltc_related_addresses suggests addresses that sign together with a known one. Direction: in (the set funded no input — a receipt), out (the set funded inputs and at least one output went elsewhere), self (the set funded inputs and every output came back to it — a consolidation or an internal move, only the fee left). Net_LTC = Received_LTC − Spent_LTC, negative on a payment; on an outgoing payment the amount that went to others is −Net − Fee_Paid. On a transaction funded together with other addresses (Fee_Shared = 1) Net can be positive although Direction is out or self — read the sign of Net. Received_Raw / Spent_Raw / Net_Raw / Fee_Raw / Fee_Paid_Raw are the same amounts as exact integer strings in the smallest unit (1 LTC = 100,000,000 units) — use them when every digit matters; the decimal columns are JSON numbers. Fee_LTC is the miner fee of the whole transaction. Fee_Paid_LTC is the set's part of it: all of it when the set funded every input, nothing when it funded none (a receipt costs the receiver no fee), and — when other addresses funded inputs too (Fee_Shared = 1) — the fee split by input value (fee × spent ÷ all inputs, rounded half up to the smallest unit), Input_Share being the set's share of the transaction's inputs; what the other parties paid is Fee − Fee_Paid. A shared fee is an estimate: either addresses of the wallet are missing from `addresses`, or several parties built the transaction together. Is_Coinbase = 1 marks a block reward (newly mined coins). Fee_Status is exact, or unknown when the transaction's totals are not available — the fee columns are then null and a spend's Direction reads unknown. Price_Usd is the USD price of LTC at the start of the transaction's hour (hourly market data). Value_Usd = Net × Price_Usd, signed like Net, and Fee_Usd = Fee_Paid × Price_Usd. Price_Status: ok; no_price (no market price for that hour — the newest hour or two have none yet — Price_Usd and the USD columns are null, never a guess and never today's price); suspect (the price is more than twice, or less than half, the price one day earlier AND one day later — a likely data glitch, so Value_Usd and Fee_Usd are left empty). Rows come newest first in block order (Block, then Tx_Index). The window is the last `days` (default 365), or after_time … before_time for a fixed period such as a tax year. Page with cursor: pass the Cursor of the LAST row, with every other argument unchanged, to get the next older page. after_time and before_time bound every page, so no page leaves the period. With after_time set, a page shorter than `limit` is the end of the period; without it each page looks `days` back from its cursor, so a walk continues into older history until a page comes back short. Addresses_Requested / Addresses_Used on every row say how many distinct addresses were passed and how many were read. No rows = no transaction of these addresses in the window. Counterparties are not listed: pass a Tx to ltc_tx_flow. SCAN COST grows with the window and with the number of addresses, not with limit: prefer a fixed period to a very large `days`. A window in which the addresses have more than 200,000 inputs or outputs (an exchange-size address) is refused — narrow it.

  • Matic address flow summary

    ADDRESS FLOW SUMMARY / top counterparties: who a Polygon (matic, POL, MATIC, PoS) address sends funds TO and receives funds FROM, in one call — profile (sent/received transfer counts, distinct receivers/senders) + TOP receivers AND TOP senders. Collapses address_profile + trace_next_hop(out) + an incoming convergence into a single call — call this FIRST when triaging a hop. Returns a computed Role: receive_only (no outgoing transfer in the period) / send_only (no incoming one) / no_transfers (neither) / consolidator (senders ≫ receivers) / distributor (receivers ≫ senders) / hub (thousands of both — don't trace deeper) / relay. The profile counts and Role ALWAYS cover all tokens: currency and contract narrow only the top arrays (matic_address_profile applies them to every count). Pass the returned counterparties to labels_for_addresses to identify them. For raw rows use matic_transfers_in/out; for one direction's full ranking use matic_trace_next_hop. READING THE TOP ARRAYS: one entry per (counterparty, TOKEN) — the same address repeats once per token it moved. Symbols are not unique; identify a token by `contract`. On a very high-traffic address (an exchange or bridge hub) this aggregates a lot of history and can take tens of seconds — narrow it with contract or currency to one token to make it far faster. Amounts here are TOKEN UNITS, never USD - no USD value is available in this data, so there is no usd filter and totals for different tokens must not be compared or added together. For a ranking you can reason about, pin ONE token with contract, or bound the range with min_amount / max_amount. `Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, but also how a scam token impersonates a major one with Cyrillic or Greek look-alike letters - never treat such a token as the asset it resembles. In the top arrays it is the `symbol_nonascii` field of each entry. after_time / before_time bound BOTH the profile counts and the top arrays to one period (without them both cover the whole history). Counts and arrays are the transfers OF THIS ADDRESS itself. A bot account signs its transactions while a contract it controls holds and moves the tokens - the contract its transactions go TO, or a separate one - so a very active trader (the trading tools' Trader_Address is the signer) can show few or no outgoing transfers here. To find the address that really moves its tokens, open one of its Tx_Hash values from trader_trades with matic_tx_transfers, then trace that address (matic_transactions lists where this account's transactions go). A transaction's own transfer is TOP-LEVEL, not internal, and is always counted. POL moved by contract code deeper inside a transaction (an internal transfer) is left out unless you pass include_internal=1. For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.

  • Matic address profile

    Polygon (matic, POL, MATIC, PoS) address STATISTICS — successful transfer counts out/in and distinct counterparties (receivers/senders), across all tokens. Fast triage of an address during tracing. For one-call triage that ALSO returns the top counterparties, prefer matic_address_flow_summary. Role from the ratio (cheap triage before flow_edges): senders ≫ receivers = consolidator / sweep; receivers ≫ senders = distributor; ~1↔1 = relay (layering); thousands of both = mega-hub (exchange / treasury — don't trace deeper). No outgoing transfers at all = receive-only and no incoming = send-only, not a consolidator / distributor. First_Sent / Last_Sent / First_Received / Last_Received = first and last transfer in each direction. Bound a period with after_time / before_time; restrict to one token with contract (or currency) to also get Sent_Amount / Received_Amount in that token's units - without a token filter the amounts are NULL, because different tokens cannot be added. currency / contract (like after_time / before_time) narrow EVERY count, time and amount here - unlike matic_address_flow_summary, whose profile counts always cover all tokens. The counts are the transfers OF THIS ADDRESS itself. A bot account signs its transactions while a contract it controls holds and moves the tokens - the contract its transactions go TO, or a separate one - so a very active trader (the trading tools' Trader_Address is the signer) can show few or no outgoing transfers here. To find the address that really moves its tokens, open one of its Tx_Hash values from trader_trades with matic_tx_transfers, then trace that address (matic_transactions lists where this account's transactions go). A transaction's own transfer is TOP-LEVEL, not internal, and is always counted. POL moved by contract code deeper inside a transaction (an internal transfer) is left out unless you pass include_internal=1.

  • Matic contract creator

    WHO CREATED a Polygon (matic, POL, MATIC, PoS) contract, and what a creator deployed. Answers "who created / deployed this token", "who is behind this contract", "what else did this deployer launch", and "were these tokens made by the same person" (serial deployers, rug and clone farms). NOT who funded a wallet → use matic_first_funder. On this chain a token IS a contract, so pass the TOKEN'S CONTRACT ADDRESS in contracts. TWO WAYS TO CALL IT, pick one - setting both is refused, because the two answer different questions and their shared-creator counters would be mixed: contracts="0x..|0x.." - up to 50 contracts, one row each: Creator (the address whose code ran CREATE), Signer, Created_At, Block_Number, Tx, Deploy_Value, Gas_Used and Deploy_Success. Rows whose creator or signer is SHARED come first: Creator_Shared / Signer_Shared count how many of the requested contracts have that same creator / signer, which is what exposes one person behind many tokens. A longer list is not an error: the first 50 distinct addresses are used and the rest ignored - compare Contracts_Requested with Contracts_Used and split a longer list into several calls. creator="0x.." - the contracts THAT address deployed, newest first, inside the window (days, after_time, before_time), at most `limit` rows. Use it on the Creator or Signer a first call returned, to see the rest of that deployer's output. Creator_Shared is empty in this form - every row has the same creator by construction, so the counter would only repeat the row count. Creator_Is_Contract = 1 means the contract was deployed BY OTHER CONTRACT CODE - a token factory, a launchpad or a DEX pair factory - and then Creator is that factory, which is the SAME address for every token it ever made, while Signer is the person who asked for it. On a factory-made token read Signer, not Creator. Deploy_Depth is how deep inside the transaction the deployment happened (0 = the transaction itself) and Call_Index is the deployment's position in that transaction - one transaction can deploy several contracts, and Call_Index is what tells those rows apart when everything else about them looks the same. Status = NOT_FOUND means no deployment is recorded for that address: it is a plain wallet, not a contract, or the deployment is older than the recorded history of this chain. Creations is normally 1; a higher number means the address was created more than once (destroyed and redeployed), and the row describes the EARLIEST creation. THE CREATOR'S STORY IS NOT IN THIS TOOL - build it from the returned addresses: labels_for_addresses (is the creator a known entity, exchange or scammer), matic_first_funder (who funded the creator, and whether several creators share one sponsor), matic_address_profile and matic_transfers_in / matic_transfers_out (what that wallet does), matic_flows_between (what moved between the creator and the token). The token's own name, symbol, price and market cap come from find_token_by_address; its first buyers from early_buyers. Amounts are the native coin, never USD. COST: a contract lookup has to walk every call that address ever received, so a handful of ordinary tokens answer in a second or two while one exchange-scale contract can take ~20 s on its own. If you already know roughly when the contract appeared, bound it with after_time / before_time - that alone took one busy token from 21 s to 2 s. A row-limit error ("Limit for rows ... exceeded") means the batch is too busy: bound it that way, or split the list.

  • Matic find calls

    FIND SMART-CONTRACT CALLS on one Polygon (matic, POL, MATIC, PoS) contract by method — "who called method X on contract Y, when, did it succeed" in one filtered query. NOT event logs a contract emitted → use matic_find_events. NOT what one address signed or received → use matic_transactions. Returns up to limit calls (default 20, at most 10000), newest first; page back with the last row's Cursor - each page covers the days window ending there. Match by method name (e.g. "transfer"), full signature ("transfer(address,uint256)"), or raw 4-byte selector (e.g. "a9059cbb"); optionally restrict to one caller. Searches the last 7 days by default — set after_time to reach further back. Includes reverted calls when only_successful=0 (with error text). Then inspect a transaction's fund movements with matic_tx_transfers. SCAN COST scales with the window, not with the limit: on a very high-traffic contract set days=1 and page back with cursor - several times cheaper than a 7-day window for the same page. Widen days for quiet contracts or rare matches. Calls inside one transaction come back in no particular order - sort them by CallPath if you need execution order. Each row carries the call's decoded input Arguments (Name, Type, Value; integers are decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most 32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut list (every array element counts as one). A method the decoder does not recognise has no Arguments. Value is the POL attached to the call. Each row: Tx, Time, Block, Caller, Method, Signature, Selector, CallPath, Value, Success, Reverted, Error, GasUsed, Cursor, Arguments, ArgumentCount, ArgumentsTruncated.

  • Matic find events

    FIND EVENT LOGS on one Polygon (matic, POL, MATIC, PoS) contract by event name — e.g. every "Transfer", or a rare custom event. `contract` matches logs that contract EMITTED ITSELF (tokens behind a proxy are found by their public address), plus — when it is a proxy's implementation — the logs its code emitted for that proxy. Logs emitted by OTHER contracts it calls are NOT included: a DEX router's swaps are logged by the pair/pool it calls, not by the router, so contract=<router> with event=Swap returns NOTHING even when the router executed thousands of swaps. An empty result for a router, aggregator or smart wallet does NOT mean there was no activity. To get those logs, pass the pair/pool (or token) address as `contract`; if it is unknown, list the router's transactions with matic_find_calls (contract=<router>) and pass their Tx hashes (up to 50, "|"-separated) to matic_tx_events with event=Swap — its CallPath shows which call produced each log. Match by event name or full signature (case-insensitive); narrow matched rows to one emitter with `emitter`. Searches the last 7 days by default — set after_time to reach further back, or page back with cursor: pass the Cursor value of the LAST row of a page to get the next one, and each page covers the days-sized window before it. Unlike before_time, a cursor never skips rows that share a timestamp. Then inspect a transaction's fund movements with matic_tx_transfers. For finding the CALLS themselves (method, selector, revert info) use matic_find_calls. Each row carries the log's decoded Arguments (Name, Type, Value, Indexed; integers are decimal strings in raw units, NOT divided by token decimals; addresses as 0x-hex) - at most 32 per row: ArgumentCount is the full number and ArgumentsTruncated=1 marks a cut list (every array element counts as one). Parsed=0 rows have no Arguments. Argument NAMES come from one known ABI for the Signature: a contract that emits the same Signature with other parameter names gets those names too, so a Name can be wrong for this contract - identify an argument by its position and Type, and check a doubtful one against the raw Topics/Data. For raw Topics/Data, or the rest of a cut list, pass the Tx to matic_tx_events. Unrecognized events can be found here by `topic0`. ONE ROW = ONE EVENT LOG. A contract can be called many times inside a single transaction and each of those internal calls can emit its own logs, so the same event name legitimately repeats within one transaction - that is NOT duplication. Rows are told apart by CallIndex (which internal call emitted the log) together with LogInCall (the log's position inside that call); that pair is unique within a transaction. To COUNT events, count the returned rows - never de-duplicate on Tx/Event/Emitter, which would merge genuinely different logs into one. SCAN COST scales with the window, not with the limit: on a very high-traffic contract set days=1 and page back with cursor - several times cheaper than a 7-day window for the same page. Widen days for quiet contracts or rare matches. Rows inside one transaction come back in no particular order - sort them by CallIndex then LogInCall if you need emission order.

  • Matic first funder

    FIRST FUNDER / COMMON SPONSOR of up to 50 Polygon (matic, POL, MATIC, PoS) addresses: for each address the EARLIEST incoming transfer INSIDE THE WINDOW (by default the last 180 days - not necessarily the first ever, see WINDOW) - who sent it (Funder), who signed that transaction (Tx_From), when (First_Time), how much of which token, and the Tx. Answers "who funded these wallets" and "do these wallets share a sponsor" (sybil, sniper and airdrop-farming clusters). NOT who deployed a contract → use matic_contract_creator. Pass the addresses separated by "|". A longer list is not an error: the first 50 distinct addresses are used and the rest are ignored - every row reports Addresses_Requested / Addresses_Used, so compare them and split a longer list into several calls. One row per used address, and rows whose funder is shared come FIRST: Funder_Shared = how many of the requested addresses have that same first funder, Tx_From_Shared = the same count for the transaction's signer - it catches wallets funded through a public batch-sending contract, where Funder is the contract and the signer is the real sponsor. Funder_In_Set = 1 when the funder is itself one of the requested addresses (a funding chain). Via_Internal_Call = 1 marks funding sent by contract code deeper inside a transaction; the transfer a transaction makes itself is top-level, so it reads 0. Incoming_In_Window = how many qualifying incoming transfers the address had in the window. WHAT COUNTS AS FUNDING: by default native POL only (asset_type="native"), including POL sent by contract code (include_internal=1); set asset_type="token" or "all", or pin one token with contract, to look at token funding instead. Zero-amount transfers, mints and self-transfers never count; raise min_amount to skip dust. WINDOW: the first funding INSIDE the last `days` days (default 180, at most 730) ending at before_time or now, or starting at after_time within the same limit. Status = FIRST_IN_WINDOW: the earliest qualifying funding between Window_From and Window_To. It is the address's first-ever funding ONLY if the address had no activity before Window_From, and this tool does not check that. To check one address, compare First_Time with the First_Received of matic_address_profile for it (an earlier First_Received means it already received something before the window). To look further back, call again with before_time set to the row's Window_From. Status = NO_INCOMING_IN_WINDOW means nothing qualifying arrived in the window: call again for those addresses with before_time set to their Window_From to look further back. COST grows with the number of addresses times the length of the window: for dozens of addresses keep days at 180 and page back with before_time rather than widening days. A row-limit error ("Limit for rows ... exceeded") means an address in the list is too busy (an exchange, bridge or popular contract) or the window is too long - drop that address or shorten days. Amounts are TOKEN UNITS, never USD. To identify funders, pass them to labels_for_addresses; to see everything that moved between the funders and the wallets, use matic_flows_between.

  • Matic flow edges

    MONEYFLOW GRAPH EDGES out of a Polygon (matic, POL, MATIC, PoS) address: one row per counterparty — Source → Target, total Amount, Currency. NOT choosing which counterparty to follow next → use matic_trace_next_hop. Building block for a MoneyFlow DIAGRAM. HOW TO DRAW: call this per address/hop, collect the edges, and emit a Mermaid `graph LR` (one node per address; each edge labeled with Amount+Currency). Pass the Target addresses to labels_for_addresses to flag CEX / mixer / bridge nodes and STOP expanding those branches. Pass a currency to avoid spam-token noise; call WITHOUT a currency filter to spot a token → USDT off-ramp at the edge. For raw per-transfer rows use matic_transfers_out. Each edge carries the token Contract — pin one exact token with the contract param. On a very high-traffic address (an exchange or bridge hub) this aggregates a lot of history and can take tens of seconds — narrow it with contract or currency to one token to make it far faster. Amounts here are TOKEN UNITS, never USD - no USD value is available in this data, so there is no usd filter and totals for different tokens must not be compared or added together. For a ranking you can reason about, pin ONE token with contract, or bound the range with min_amount / max_amount. `Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, but also how a scam token impersonates a major one with Cyrillic or Greek look-alike letters - never treat such a token as the asset it resembles. In the top arrays it is the `symbol_nonascii` field of each entry. Bound one period with after_time / before_time. First_Seen / Last_Seen give each edge's first and last transfer. A transaction's own transfer is TOP-LEVEL, not internal, and is always counted. POL moved by contract code deeper inside a transaction (an internal transfer) is left out unless you pass include_internal=1.

  • Matic flows between

    FLOWS BETWEEN TWO ADDRESS SETS on Polygon (matic, POL, MATIC, PoS): every successful transfer (tokens and native POL) from any address of set A to any address of set B, and back, in ONE call - "did these wallets ever pay those wallets", "how much moved between my suspects and the exchange wallets", "which of these deposit addresses sent to that hot wallet". Pass up to 50 addresses per set separated by "|" (0xabc…|0xdef…). A longer list is not an error: the first 50 distinct addresses of each set are used and the rest are ignored - every row reports A_Addresses_Requested / A_Addresses_Used and B_Addresses_Requested / B_Addresses_Used, so compare them and split a longer set into several calls. Leave addresses_b EMPTY to get every counterparty of the A set, both directions, grouped per A address - the multi-address form of matic_flow_edges. mode="summary" (default) returns one row per (Direction, Sender, Receiver, token) with Transfers, total Amount, First_Time, Last_Time and the latest Tx, ordered by `sort`. mode="rows" returns the individual transfers newest first; page with cursor: pass the Cursor value of the LAST row, with all other arguments unchanged, to get the next page (a summary row carries no Cursor). A rows-mode row is a LEDGER LINE: besides the amount it carries Amount_Raw (the exact integer amount in the token's smallest unit) with Decimals, Block and Tx_Index, and Price_Usd (the token's USD price at the time of the transfer), Value_Usd = Amount x Price_Usd and Price_Status - "ok"; "no_price" = no price is known for this token at that time, so Price_Usd and Value_Usd are empty (never read that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or less than half of both - a likely data glitch - so Value_Usd is left empty - check it with price_at. POL and the major tokens are priced to 5 minutes, every other token has ONE price per day, so the value of a small token is approximate. On a summary row those seven columns are empty: a total over a period has no single price. Self = 1 (both modes) marks a movement whose counterparty is another address of set A - a move inside the set, not income and not spending. Direction A_TO_B = sent by an A address to a B address, B_TO_A = sent by a B address to an A address; an address listed in both sets appears in both directions. With addresses_b empty the same holds for a transfer between two A addresses: it is listed as A_TO_B for its sender AND as B_TO_A for its receiver, so never add rows of both directions together. WINDOW: the last `days` days (default 30, at most 366) ending at before_time, or now; after_time sets the start instead, within the same 366-day limit. Window_From / Window_To on every row show the range searched; for an older period set before_time. An empty result means no transfer between the sets in that window. COST: the search is keyed on set A, so put the SMALLER and less busy set in addresses_a - individual wallets, not exchange hot wallets, bridges or token contracts. If the call fails with a row-limit error ("Limit for rows ... exceeded"), swap the two sets, shorten days, or split set A. Cost also grows with the number of addresses in set A times the window. Each row carries the token Contract (empty for native POL); a symbol alone can match look-alike clones, so pin one token with contract, or restrict to native or tokens with asset_type. Amount is in TOKEN UNITS: totals of different tokens must not be compared or added together, there is no usd filter (min_amount is in token units), and sort="amount" is only meaningful with one token pinned. To identify the addresses, pass them to labels_for_addresses. For the full labelled list in USD, totals by label type, or a set of addresses → counterparties.

  • Matic native balances

    NATIVE COIN BALANCE of up to 50 Polygon (matic, POL, MATIC, PoS) addresses you ALREADY HAVE: each address's current POL balance (the coin that pays gas) - for filtering a known set of wallets down to the funded ones, e.g. an airdrop cohort. To discover holders you do not have yet, use matic_token_holders. NOT one address's transfer history → use matic_address_flow_summary. Pass the addresses separated by "|" (0x..) - up to 50; addresses after the 50th distinct one are ignored (compare Addresses_Requested with Addresses_Used), so split a longer list into several calls. WINDOW: only balances UPDATED within the last `since_days` days (default 7) are read, so an address that has not moved its native coin in that window returns NO row. Use the same window you searched for activity - e.g. the window of matic_token_senders - because an active wallet's balance is always fresh there; a wider window costs more for no gain on active wallets. Native_Balance is in POL (18 decimals); Native_Balance_Raw is the exact integer amount (wei); Balance_As_Of is when that balance was last updated. To identify the addresses, pass them to labels_for_addresses. Each row: Address, Native_Balance, Native_Balance_Raw, Balance_As_Of, Addresses_Requested, Addresses_Used.

  • Matic token holders

    TOP HOLDERS of a Polygon (matic, POL, MATIC, PoS) token by CURRENT on-chain balance — holder address + balance, largest first. Use for token analysis: whales, holder concentration, distribution. Pass the token CONTRACT address (not a wallet). Label the returned holders with labels_for_addresses to spot CEX / team / LP / bridge wallets. This is real on-chain balance, NOT DEX-trade PnL — for trader profitability use profitable_traders_by_token / trader_positions. Balances exclude NFTs (fungible only). SCOPE. days=0 (default) ranks EVERY holder over the token's whole history, and Holders_In_Window is then the token's holder count (positive balances). A very widely held token - a major stablecoin, for example - has too much history for that: the call answers at once with one Status=TOO_LARGE row instead of timing out. Then call with days=30 (days=7 if that is still TOO_LARGE): it ranks the holders whose balance CHANGED in that window, and their balances are still exact current balances. A holder that did not move the token in the window is absent, so on such a token the page is the top of the ACTIVE holders, not a guaranteed global top. To reach quieter holders pass Next_Cursor as cursor: each page covers the next older window of `days` and lists only holders whose LAST balance change falls inside it, so no holder appears on two pages and the top N of all pages merged is the global top N. Each page also checks all later activity up to today, so paging far back on a very busy token ends in TOO_LARGE - stop there and say the list covers only the windows read. Next_Cursor is empty when the token has nothing older. Window_From / Window_To are the dates a page covers (Window_From empty = whole history). A row with an empty Holder is a status row: read Status (TOO_LARGE / NO_HOLDERS / BAD_CURSOR). Balance is in the token's OWN units, never USD - no USD value is available in this data, so there is no usd filter and balances of different tokens are not comparable. `Decimals` gives the scale. Holders whose recorded balance is NEGATIVE are dropped and counted in Negative_Balances_Excluded: the transfer history behind them is inconsistent (typically a transfer recorded twice or missing), so that balance cannot be trusted - and the same kind of error can inflate a positive balance of that token. A balance far above the token's total supply is such an artifact, not a whale: check it with token_supply or the holder's transfers before reporting it. `Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, but also how a scam token impersonates a major one with Cyrillic or Greek look-alike letters - never treat such a token as the asset it resembles.

  • Matic token senders

    TOKEN SENDERS COHORT on Polygon (matic, POL, MATIC, PoS): the addresses that SENT a given token at least `min_transfers` times inside a time window, most recently active first - "wallets that actively use this token", "build a cohort or airdrop list of recent senders of this token". NOT one wallet's own outgoing transfers → use matic_transfers_out. This counts SENDERS of the token, one row per sender; it does not value or label them - pass the returned addresses to labels_for_addresses, and to matic_native_balances to keep only funded wallets. By default only normal user wallets (EOAs) that sent the token in their OWN transaction count (eoa_only=1); set eoa_only=0 to include contract senders. Pass the token's CONTRACT address in token (0x-hex (case-insensitive)); a symbol also matches clone tokens, so pin the exact contract. WINDOW: the last `days` days (default 1, at most 30) ending at before_time or now; after_time sets the start instead. A sender must reach `min_transfers` sends WITHIN this window, so a short recent window keeps only clearly-active wallets - the recency the cohort wants. There is no full-history mode: to go further back, page with before_time. PAGING: newest-active first, at most `limit` rows. If the result has `limit` rows there may be more - set before_time to the oldest Last_Transfer_Time returned and call again, then combine and de-duplicate the pages. COST grows with the token's volume times the window: widen `days` step by step. A row-limit error ("Limit for rows ... exceeded") means the token is too busy for that window - shorten days. Each row: Address, Transfers, First_Transfer_Time, Last_Transfer_Time.

  • Matic trace dominant path

    AUTO-WALK the dominant (largest-total-amount) OUTGOING edge of ONE token from a Polygon (matic, POL, MATIC, PoS) address, hop by hop, up to 5 hops — collapses ~5 manual matic_trace_next_hop calls into one. Every hop returns Hop*_To (the address that received), Hop*_Token (the contract of the token that moved) and Hop*_Edge_Total, plus Hops_Found (how many hops resolved) and Path_Status for the walk itself. Hop*_Edge_Total is NOT the amount that travelled along the path: it is the ALL-TIME total of EVERY transfer of that token between that hop's sender and receiver, so it can be orders of magnitude larger than the sum you are tracing and the hop totals are not comparable with each other. To break one edge down — its transfer count (Transfers), first/last seen, and the full ranking of that address's edges — call matic_trace_next_hop on the hop's sender. The walk NEVER goes back to an address it has already visited (the seed included), so it cannot bounce back and forth between the same two wallets — each hop is the largest edge to a NEW address. READ Path_Status FIRST — NO_MATCH means the token filter matched nothing (wrong symbol, or that symbol belongs to a different token — pass `contract`), PATH_END means the trail really ran out, DEPTH_LIMIT means it may continue past hop 5. All-NULL hops with NO_MATCH are a filter problem, not a dead end. Pass the hop addresses to labels_for_addresses and read down to the FIRST labeled address (CEX / mixer / bridge) — that's the destination. Pin the token with `contract` whenever you know it — a SYMBOL is not unique, clone tokens reuse popular symbols, and with a symbol alone the hops can drift between look-alike tokens; compare the per-hop token contract to spot that. LIMITS: follows only the single biggest edge per hop (misses splits / fan-outs), fixed depth 5, and transfers to the burn address are not followed. For branching / adaptive tracing call matic_trace_next_hop hop by hop, identify each hop with labels_for_addresses and choose the next address yourself (prompt_playbook with playbook=money_flow returns the full step-by-step procedure); for one hop's full ranking use matic_trace_next_hop. Heavy multi-hop walk — can time out on a very busy address; retry, or narrow it with `contract` / a less-busy token. A transaction's own transfer is TOP-LEVEL, not internal, and is always counted. POL moved by contract code deeper inside a transaction (an internal transfer) is left out unless you pass include_internal=1.

  • Matic trace next hop

    CONVERGENCE primitive for Polygon (matic, POL, MATIC, PoS) tracing: aggregate an address's OUTGOING flow by counterparty (Σ amount, count, first/last seen), largest first. Answers "where did the bulk of the funds go" in one shot. Narrow with currency (recommended), after_time (= when funds reached this hop), min_amount. Pass the top counterparties to labels_for_addresses to spot a CEX / mixer / bridge (= the destination, stop there). One row per (counterparty, TOKEN); identify a token by Contract, not Currency. On a very high-traffic address (an exchange or bridge hub) this aggregates a lot of history and can take tens of seconds — narrow it with contract or currency to one token, and with after_time to one period, which is far faster than one wide call. NOT edges for a diagram → use matic_flow_edges. NOT an automatic walk along the largest edge → use matic_trace_dominant_path. Amounts here are TOKEN UNITS, never USD - no USD value is available in this data, so there is no usd filter and totals for different tokens must not be compared or added together. For a ranking you can reason about, pin ONE token with contract, or bound the range with min_amount / max_amount. A transaction's own transfer is TOP-LEVEL, not internal, and is always counted. POL moved by contract code deeper inside a transaction (an internal transfer) is left out unless you pass include_internal=1. Returns up to top_n rows (default 10, at most 10000), largest Total_Amount first; no rows = nothing matched. `Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token. For the full labelled list in USD, totals by label type, or a set of addresses → counterparties. Each row: Counterparty, Currency, Symbol_NonAscii, Contract, Total_Amount, Transfers, First_Seen, Last_Seen.

  • Matic transactions

    Paginated TRANSACTION HISTORY of a Polygon (matic, POL, MATIC, PoS) address — every transaction it sent or received directly (its own From or To; a token it received inside someone else's transaction is in matic_transfers_in), newest first. Page back with the cursor: pass the LAST Tx of the previous page as `before` to get strictly older transactions (an unknown `before` hash yields an empty page); `until` bounds the other side (only transactions newer than that tx). NOT a token-transfer list — for token movements use matic_transfers_in / matic_transfers_out; to inspect one transaction's transfers use matic_tx_transfers. Value and Fee are in POL. Each row also carries the exact fee: Fee_Wei is the fee in the smallest unit as a decimal string (Fee is the same amount in POL, rounded to 8 decimals); Fee_Usd is its value at the POL price at the time of the transaction. Fee_Price_Status says how far to trust that price: ok; no_price (Fee_Usd is empty - never read it as zero); suspect (the price is more than twice, or less than half, the price a day earlier AND a day later - a likely data glitch, so Fee_Usd is left empty). A failed transaction (Success = 0) still paid its fee: treat it as a fee-only row. The fee was paid by the sender (From): count it for this address only on rows where From is the address. Fee_Status is ok on this chain. Returns up to limit transactions per page (default 25, at most 10000), newest first, failed transactions (Success = 0) included unless only_successful=1; a page shorter than limit is the last one. An unknown `until` hash is not applied (no lower bound); `before` and `until` together bound one range. With after_time / before_time only that period is read, so the cost follows the period, not the address's whole history; pass the same pair with every page. Each row: Tx, Time, Block, TxIndex, From, To, Value, Success, Fee, Fee_Status, Fee_Wei, Fee_Usd, Fee_Price_Status.

  • Matic transfers in

    INCOMING Polygon (matic, POL, MATIC, PoS) transfers to an address — where this wallet received funds from. NOT the opposite direction → use matic_transfers_out. NOT totals per sender → use matic_address_flow_summary. Returns up to limit transfers (default 20, at most 10000), newest first by default; page back with the last row's Cursor. Use to trace the source of funds backwards. For an address with many transfers set min_amount or sort='amount', else large sources hide behind recent dust. Query WITHOUT a currency filter to see where the bulk of funds originated. To identify counterparties, pass the returned addresses to labels_for_addresses. Each row carries the token Contract — a symbol alone can match look-alike clones, so pin the real token with the contract param. Amount is in TOKEN UNITS; amounts of different tokens must never be added together. Each row also carries Price_Usd - the token's USD price at the time of the transfer - and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is known for this token at that time, so Price_Usd and Value_Usd are empty (never read that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with price_at. POL and the major tokens are priced to 5 minutes, every other token has ONE price per day, so the value of a small token is approximate. There is no usd filter: min_amount / max_amount are in token units. For a ranking you can reason about, pin ONE token with contract, or bound the range with min_amount / max_amount. Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain. A transaction's own transfer is TOP-LEVEL, not internal, and is always included. Internal = 1 marks a transfer moved by contract code deeper inside a transaction; those are left out unless you pass include_internal=1. `Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII: normal for CJK / emoji names, also how a look-alike imitates a major token. Each row: Time, Sender, Currency, Symbol_NonAscii, Contract, Amount, Internal, Tx, Cursor, Amount_Raw, Decimals, Block, Tx_Index, Price_Status, Price_Usd, Value_Usd.

  • Matic transfers out

    OUTGOING Polygon (matic, POL, MATIC, PoS) transfers from an address — where this wallet sent funds. Narrow with after_time (flows after funds arrived), currency (follow one asset), min_amount (drop dust). For an aggregated "where did the bulk go" view use matic_trace_next_hop; for incoming use matic_transfers_in. For an address with many transfers set min_amount or sort='amount', else large counterparties hide behind recent dust. Query WITHOUT a currency filter to surface the token → USDT off-ramp. Page back through history with cursor: pass the Cursor value of the LAST row of a page to get the next one — unlike before_time it never skips rows that share a timestamp. To identify counterparties, pass the returned addresses to labels_for_addresses. Each row carries the token Contract — a symbol alone can match look-alike clones, so pin the real token with the contract param. Amount is in TOKEN UNITS; amounts of different tokens must never be added together. Each row also carries Price_Usd - the token's USD price at the time of the transfer - and Value_Usd = Amount x Price_Usd, with Price_Status: "ok"; "no_price" = no price is known for this token at that time, so Price_Usd and Value_Usd are empty (never read that as zero); "suspect" = the stored price is more than twice the price one day earlier AND one day later, or less than half of both - a likely data glitch - so Value_Usd is left empty - check the price with price_at. POL and the major tokens are priced to 5 minutes, every other token has ONE price per day, so the value of a small token is approximate. There is no usd filter: min_amount / max_amount are in token units. For a ranking you can reason about, pin ONE token with contract, or bound the range with min_amount / max_amount. Amount_Raw is the exact amount as an integer in the token's smallest unit and Decimals its scale (Amount = Amount_Raw / 10^Decimals); Block and Tx_Index place the row in the chain. A transaction's own transfer is TOP-LEVEL, not internal, and is always included. Internal = 1 marks a transfer moved by contract code deeper inside a transaction; those are left out unless you pass include_internal=1.

PreviousPage 11 / 18Next