Query editor
WITH tx_batch_appends AS (SELECT'Arbitrum' AS chain,t.block_number,(t.gas_used*t.gas_price)/POWER(10,18) AS input_price_eth,t.hash,(length(t.data)) AS input_length-- (length(t.data)/2) - 1 AS input_length -- old dune versionFROM(SELECTevt_tx_hash AS tx_hash,evt_block_time AS block_time,evt_block_number AS block_numberFROM arbitrum_ethereum.SequencerInbox_evt_SequencerBatchDeliveredFromOrigin oWHERE evt_block_time >= timestamp '2022-01-01'UNION ALLSELECT--post-nitrocall_tx_hash AS tx_hash,call_block_time AS block_time,call_block_number AS block_numberFROM arbitrum_ethereum.SequencerInbox_call_addSequencerL2BatchFromOrigin oWHERE call_success = trueAND call_tx_hash NOT IN(SELECT evt_tx_hash FROM arbitrum_ethereum.SequencerInbox_evt_SequencerBatchDeliveredFromOrigin oWHERE evt_block_time >= timestamp '2022-01-01')UNION ALLSELECT--post-nitrocall_tx_hash AS tx_hash,call_block_time AS block_time,call_block_number AS block_numberFROM arbitrum_ethereum.SequencerInbox_call_addSequencerL2Batch oWHERE call_success = trueAND call_tx_hash NOT IN(SELECT evt_tx_hash FROM arbitrum_ethereum.SequencerInbox_evt_SequencerBatchDeliveredFromOrigin oWHERE evt_block_time >= timestamp '2022-01-01')UNION ALLSELECT--post-nitrocall_tx_hash AS tx_hash,call_block_time AS block_time,call_block_number AS block_numberFROM arbitrum_ethereum.SequencerInbox_call_addSequencerL2BatchFromOriginWithGasRefunder oWHERE call_success = trueAND call_tx_hash NOT IN(SELECT evt_tx_hash FROM arbitrum_ethereum.SequencerInbox_evt_SequencerBatchDeliveredFromOrigin oWHERE evt_block_time >= timestamp '2022-01-01'))bINNER JOIN ethereum.transactions t