Query editor
WITH gateway_initiated AS (SELECTtx_hash AS init_tx_hash,block_time AS init_time,bytearray_substring(topic1, 13, 20) AS from_address,bytearray_substring(topic2, 13, 20) AS to_address,bytearray_substring(data, 13, 20) AS l1_token, -- 1st data wordbytearray_to_uint256(bytearray_substring(data, 65, 32)) AS amount_raw -- 3rd data word (l1Token, _exitNum, _amount)FROM arbitrum.logsWHERE contract_address IN (0x5288c571Fd7aD117beA99bF60FE0846C4E84F933, -- L2 Gateway Router0x09e9222E96E7B4AE2a407B98d48e330053351EEe, -- L2 Standard ERC20 Gateway (covers WBTC, rETH, and most tokens -- confirmed live)0x096760F208390250649E3e8763348E783AEf5562, -- L2 Custom Gateway (USDC etc -- confirmed live via L2GatewayRouter.getGateway())0x6c411aD3E74De3E7Bd422b94A27770f5B86C623B, -- L2 WETH Gateway -- confirmed via official Arbitrum token list, previously MISSING entirely0x467194771dAe2967Aef3ECbEDD3Bf9a310C76C65, -- L2 DAI Gateway -- confirmed via official Arbitrum token list, previously MISSING entirely0x65E1a5e8946e7E87d9774f5288f41c30a99fD302, -- L2 GRT Gateway -- confirmed via official Arbitrum token list, previously MISSING entirely0x07D4692291B9E30E326fd31706f686f83f331B82, -- Lido L2 ERC20 Token Gateway (wstETH) -- confirmed via Arbiscan public label-- (2026-07-26). Surfaced by the completeness query below: 1,994 events,-- more volume than the GRT gateway above. Was MISSING entirely before this.0x6D2457a4AD276000A615295f7a80F79E48CcD18 -- Livepeer L2 LPT Gateway -- confirmed via Arbiscan public label-- ("Livepeer: L2 LPT Gateway") and livepeer/arbitrum-lpt-bridge on GitHub-- (2026-07-26). Surfaced by the completeness query below: 2,926 events,-- MORE volume than DAI/WETH gateways above. Was MISSING entirely before this.-- ARB token uses a REVERSE gateway (L1: 0xbbce8aa77782f13d4202a230d978f361b011db27,-- L2: 0xcad7828a19b363a2b44717afb1786b5196974d8e) -- confirmed live, but NOT added here.-- ARB is native to L2, so custody direction is inverted vs every other token here;-- treating it like a normal withdrawal would be semantically wrong. Needs dedicated-- handling, out of scope for this query.-- COMPLETENESS: the addresses above were found by cross-referencing Arbitrum's-- official (but not necessarily current/complete) token list against live-- getGateway() calls -- not a mathematical guarantee every custom gateway is-- covered. The query below was actually run in Dune on 2026-07-26 to close-- this gap; results and disposition of every address it surfaced:-- SELECT DISTINCT contract_address, count(*) FROM arbitrum.logs-- WHERE topic0 = 0x3073a74ecb728d10be779fe19a74a1428e20468f5b4d167bf9c73d9067847d73-- GROUP BY 1 ORDER BY 2 DESC---- 0x09e9222e...351eee 44553 Standard ERC20 Gateway -- already included above-- 0x096760f2...ef5562 20047 Custom Gateway (USDC etc) -- already included above-- 0x6d2457a4...48ccd318 2926 Livepeer L2 LPT Gateway -- now added above (identified-- by user, confirmed via Arbiscan label + GitHub repo)-- 0x467194771d...c76c65 2893 DAI Gateway -- already included above-- 0x6c411ad3...86c623b 2373 WETH Gateway -- already included above-- 0xcad7828a...b6974d8e 2366 ARB reverse gateway -- intentionally excluded, see above-- 0x07d46922...f331b82 1994 Lido L2 ERC20 Token Gateway (wstETH) -- now added above-- 0x65e1a5e8...99fd302 1840 GRT Gateway -- already included above-- 0x05d2218b...3c82eee 167 UNIDENTIFIED -- not found via web search; Arbiscan-- fetch returned 403. Needs manual lookup before adding.-- 0xd9f64ee3...6697a66 19 unidentified, dust-level -- probably not worth chasing-- 0x13f7f24c...273c793 10 unidentified, dust-level-- 0x1c4d5ecf...f6ed1c9 3 unidentified, dust-level-- 0x2c3eb07f...e6fbd19f 3 unidentified, dust-level-- 0x7040876a...cfb89ff0 3 unidentified, dust-level---- Note: 0x5288c571Fd7aD117beA99bF60FE0846C4E84F933 (L2 Gateway Router, included-- in the IN-list above) does NOT appear in this output at all -- it never itself-- emits WithdrawalInitiated, only the gateways it routes to do. Harmless to keep-- in the list but contributes nothing; could be dropped for clarity.)AND topic0 = 0x3073a74ecb728d10be779fe19a74a1428e20468f5b4d167bf9c73d9067847d73 -- WithdrawalInitiated