Query editor
-- Arc launch tracker · 05 · Cross-chain USDC flows by chain (leaderboard)---- One row per counterparty chain: net USDC that arrived on Arc through CCTP-- and Circle Gateway since the public launch, over the last 24 hours, and-- all-time. Use it for the "where is capital coming from" bar chart and table.---- Method: the transfers CTE is copied from 04_crosschain_flows.sql (see the-- decoding notes there), so edit both files together.---- Launch reference: public traffic ramped from ~22:15 UTC on 2026-09-15 (the-- official launch date is 2026-09-16). launch_time is set to 22:00 UTC so the-- whole ramp counts as launch. Arc's permissioned mainnet ran from 2026-05-12.---- Caveat: before launch, most CCTP transfer counts are 1-cent round trips to-- every domain. Rank by amounts, not counts.WITH params AS (SELECT TIMESTAMP '2026-09-15 22:00:00' AS launch_time),domains (domain, chain) AS (VALUES(0, 'Ethereum'), (1, 'Avalanche'), (2, 'OP Mainnet'), (3, 'Arbitrum'),(4, 'Noble'), (5, 'Solana'), (6, 'Base'), (7, 'Polygon PoS'), (8, 'Sui'),(9, 'Aptos'), (10, 'Unichain'), (11, 'Linea'), (12, 'Codex'), (13, 'Sonic'),(14, 'World Chain'), (15, 'Monad'), (16, 'Sei'), (17, 'BNB Smart Chain'),(18, 'XDC'), (19, 'HyperEVM'), (21, 'Ink'), (22, 'Plume'), (25, 'Starknet'),(26, 'Arc'), (27, 'Stellar'), (28, 'EDGE'), (29, 'Injective'), (30, 'Morph'),(31, 'Pharos'), (32, 'Cronos'), (33, 'Plasma'), (37, 'X Layer')),transfers AS (SELECTblock_time,'CCTP' AS rail,'in' AS direction,CAST(varbinary_to_uint256(varbinary_substring(data, 1, 32)) AS bigint) AS domain,CAST(varbinary_to_uint256(varbinary_substring(data, 197, 32)) AS double) / 1e6 AS amount_usdcFROM arc.logsWHERE contract_address = 0x81d40f21f12a8f0e3252bccb954d722d4c464b64 -- CCTP MessageTransmitterV2AND topic0 = 0xff48c13eda96b1cceacc6b9edeedc9e9db9d6226afbc30146b720c19d3addb1c -- MessageReceivedAND length(data) >= 356AND varbinary_substring(data, 129, 4) = 0x00000001UNION ALLSELECTblock_time,'CCTP','out',CAST(varbinary_to_uint256(varbinary_substring(data, 65, 32)) AS bigint),CAST(varbinary_to_uint256(varbinary_substring(data, 1, 32)) AS double) / 1e6FROM arc.logsWHERE contract_address = 0x28b5a0e9c621a5badaa536219b3a228c8168cf5d -- CCTP TokenMessengerV2AND topic0 = 0x0c8c1cbdc5190613ebd485511d4e2812cfa45eecb79d845893331fedad5130a5 -- DepositForBurnAND topic1 = 0x0000000000000000000000003600000000000000000000000000000000000000 -- burnToken = USDCUNION ALLSELECT