Query editor
select date_trunc('hour', block_time) as HOUR,avg(fee) as avg_fee,avg(CASE WHEN success = true then 1 else 0 end) as success_rate,avg(CASE WHEN success = true then 0 else 1 end) as failure_rate,COUNT(*) as txn_count,SUM(CASE WHEN success = true then 0 else 1 end) as failed_txnsfrom solana.transactionswhere block_time >= CURRENT_TIMESTAMP - interval '30' dayGROUP BY date_trunc('hour', block_time)ORDER BY HOUR