Query editor
-- when substr(data, 1, 4) = 0x9f3ce55a then 'Send Message'-- when substr(data, 1, 4) = 0x4165d6dd then 'Finalize Blocks'-- when substr(data, 1, 4) = 0x491e0936 then 'Claim Message'-- when substr(data, 1, 4) = 0x then 'Transfer'withall_date as (select dt from unnest(sequence(timestamp '2023-07-12 00:00:00', cast(current_timestamp as timestamp), interval '1' day)) tbl(dt)),tmp as (select date_trunc('day', block_time) as dt, sum(gas_used / 1e18 * gas_price) as gas_fee, count(hash) as tx_countfrom ethereum.transactionswhere block_number >= 17677070 -- Createdand to = 0xd19d4b5d358258f05d7b411e21a1460d11b0876f -- Linea Bridgegroup by 1),address_first_tx_time as (select "from" as address, min(block_time) as first_block_timefrom ethereum.transactionswhere block_number >= 17677070 -- Createdand to = 0xd19d4b5d358258f05d7b411e21a1460d11b0876f -- Linea Bridgeand success = truegroup by 1),active_address as (select date_trunc('day', block_time) as dt, count(distinct "from") as cntfrom ethereum.transactionswhere block_number >= 17677070 -- Createdand to = 0xd19d4b5d358258f05d7b411e21a1460d11b0876f -- Linea Bridgeand success = truegroup by 1),new_address as (select date_trunc('day', first_block_time) as dt, count(distinct address) as cntfrom address_first_tx_timegroup by 1),send_message as (select date_trunc('day', block_time) as dt, count(1) as call_count, sum(value / 1e18) as send_valuefrom ethereum.transactionswhere block_number >= 17677070 -- Createdand to = 0xd19d4b5d358258f05d7b411e21a1460d11b0876f -- Linea Bridgeand success = trueand substr(data, 1, 4) = 0x9f3ce55a -- Send Messagegroup by 1),claim_message as (select date_trunc('day', txn.block_time) as dt