Query editor
withall_address as (select"from", sum(gas_used / 1e18 * gas_price) as gas_fee, count(hash) as tx_cntfrom ethereum.transactionswhere block_number >= 17677070 -- Createdand to = 0xd19d4b5d358258f05d7b411e21a1460d11b0876f -- Linea Bridgegroup by 1),send_message as (select"from" as address, min(block_time) as first_deposit_time, sum(value / 1e18) as send_value-- , count(hash) as send_tx_cntfrom ethereum.transactionswhere block_number >= 17677070 -- Createdand to = 0xd19d4b5d358258f05d7b411e21a1460d11b0876f -- Linea Bridgeand substr(data, 1, 4) = 0x9f3ce55a -- sendMessageand success = truegroup by 1),claim_message as (selectto as address, min(block_time) as first_withdraw_time, -sum(value / 1e18) as claim_value-- , count(hash) as claim_tx_cntfrom ethereum.traceswhere block_number >= 17677070 -- Createdand success = trueand "from" = 0xd19d4b5d358258f05d7b411e21a1460d11b0876f -- Linea Bridgeand call_type = 'call'and input = 0xgroup by 1)selectrow_number() over (order by send_value + coalesce(claim_value, 0) desc, first_deposit_time) as rn, first_deposit_time, concat('<a href=https://dprism.ai/address-scan/', cast(all_address."from" as varchar), '?chainId=1', '?utm_source=dune.com/geno/linea-bridge-on-ethereum', ' target=_blank>', cast(all_address."from" as varchar), '</a>') as "from", concat('<a href=https://dprism.ai/address-scan/', cast(name as varchar), '?chainId=1', '?utm_source=dune.com/geno/linea-bridge-on-ethereum', ' target=_blank>', cast(name as varchar), '</a>') as name, send_value + coalesce(claim_value, 0) as total_value, send_value, coalesce(claim_value, 0) as claim_value, gas_fee, tx_cntfrom all_addressleft join send_message on all_address."from" = send_message.addressleft join claim_message on all_address."from" = claim_message.addressleft join ens.reverse_latest ens on all_address."from" = ens.addressorder by 1