Query editor
WITH ethereum AS (SELECTblock_date,(gas_used * (gas_price / 1e18)) AS fee_eth,successFROM ethereum.transactionsWHEREblock_date >= CURRENT_DATE - INTERVAL '7' DAY)SELECTblock_date,COUNT(*) AS total_transcation,COUNT(*) FILTER(WHERE success) AS successful_transaction,COUNT(*) FILTER(WHERE NOT success) AS failed_transaction,ROUND(100.0 * COUNT(*) FILTER(WHERE success) / NULLIF(COUNT(*), 0), 2) AS success_rate_percentage,ROUND(SUM(fee_eth), 2) AS total_fees_eth,ROUND(AVG(fee_eth), 6) AS avg_fee_per_txn_ethFROM ethereumGROUP BY block_dateORDER BY block_date;