-- forked from 83dee634-3a9b-4733-bcb8-ccd9136b3089
SELECT
date_trunc('day', block_timestamp) as day,
count(DISTINCT tx_hash) as transactions,
count(DISTINCT from_address) as users,
sum(l1_gas_price) as total_l1_gas_price,
sum(tx_fee) as total_tx_fee,
avg(tx_fee) as avg_tx_fee
from base.goerli.fact_transactions
GROUP BY 1