Query editor
--30D transactionWith table1 as (SELECTCOUNT(*) AS tx_countFROM ethereum.transactions--WHERE date_trunc('day', block_time) >= now() - interval '30' day)WHERE date_trunc('day', block_time) >= date_trunc('day', now() - INTERVAL '30' DAY)and success=true),----------------------------- average transaction value past 30 daystx_value as(SELECTAVG(CAST(value AS double)*price/1e18) AS avg_valueFROM ethereum.transactions,prices.usd_latestWHERE date_trunc('day', block_time) >=now() - INTERVAL '30' DAYand contract_address is null and symbol = 'ETH'),-----------------------------------------avg_txn_fee as(SELECTAVG(CAST(gas_price AS double)*CAST(gas_used AS double)*price/1e18) AS avg_txn_feeFROM ethereum.transactions,prices.usd_latestWHERE date_trunc('day', block_time) >= now() - INTERVAL '30' DAYand contract_address is null and symbol = 'ETH'and success=true),------------------------------- Daily ETH Issuancedaily_issuance as (SELECT daily_issuancefrom query_2418750),-----------------------------total_tx_fees as (SELECT t_fee_usdfrom query_2429917),----------------------------------------------------------------------------------BT1 as (SELECTdate_trunc('day', time) as day,number,date_diff('millisecond', lag(time,1) over (order by number), time)/1000 as block_timeFROM ethereum.blockswhere time>= now() - interval '24' hour),BT2 as (SELECT AVG(block_time) as abtFROM BT1),-----------------------------------------