Query editor
withprice_updates as (selectevt_block_number as number,evt_block_time as time,evt_tx_hash as tx_hash,roundId,cast(current as double) / 1e8 as pricefromchainlink_ethereum.accesscontrolledocr2aggregator_evt_answerupdatedwherecontract_address = 0x7d4E742018fb52E48b08BE73d041C18B21de6Fb5and evt_block_time < timestamp '2025-01-01'and evt_block_time > timestamp '2024-12-01'),lagged as (select*,lag(price) over (order byroundId) as prev_pricefromprice_updates),rel_change as (select*,(price - prev_price) / prev_price as rel_changefromlagged)selectnumber as block_number,time as block_time,r.*,cast(base_fee_per_gas as double) / 1e9 as base_fee_per_gasfromrel_change rjoin ethereum.blocks block using (number, time)-- join ethereum.transactions tx on (-- number = block_number-- and time = block_time-- and tx_hash = tx.hash-- )whererel_change < 0order byroundId