Query editor
withchain_metrics as (-- Kaiaselect'Kaia' as Chain, COUNT(distinct t."from") as DAU, COUNT(*) as Daily_Txs, COUNT(*) / TRY_CAST(86400.0 as DOUBLE) as TPS, AVG(CAST((gas_used / 1e9) * (gas_price / 1e9) as DOUBLE)) as avg_tx_fee_native, (selectAVG(price)from prices.usdwhere symbol = 'KAIA'and minute >= CURRENT_TIMESTAMP - INTERVAL '24' HOUR) as token_pricefrom kaia.transactions as twhere block_time >= CURRENT_TIMESTAMP - INTERVAL '24' HOURunion all-- opBNBselect'opBNB' as Chain, COUNT(distinct t."from") as DAU, COUNT(*) as Daily_Txs, COUNT(*) / TRY_CAST(86400.0 as DOUBLE) as TPS, AVG(CAST((gas_used / 1e9) * (gas_price / 1e9) as DOUBLE)) as avg_tx_fee_native, (selectAVG(price)from prices.usdwhere symbol = 'BNB'and minute >= CURRENT_TIMESTAMP - INTERVAL '24' HOUR) as token_pricefrom opbnb.transactions as twhere block_time >= CURRENT_TIMESTAMP - INTERVAL '24' HOURunion all-- BNBselect'BNB Chain' as Chain, COUNT(distinct t."from") as DAU, COUNT(*) as Daily_Txs, COUNT(*) / TRY_CAST(86400.0 as DOUBLE) as TPS, AVG(CAST((gas_used / 1e9) * (gas_price / 1e9) as DOUBLE)) as avg_tx_fee_native, (selectAVG(price)from prices.usdwhere symbol = 'BNB'and minute >= CURRENT_TIMESTAMP - INTERVAL '24' HOUR) as token_pricefrom bnb.transactions as twhere block_time >= CURRENT_TIMESTAMP - INTERVAL '24' HOURunion all-- Baseselect'Base' as Chain, COUNT(distinct t."from") as DAU, COUNT(*) as Daily_Txs, COUNT(*) / TRY_CAST(86400.0 as DOUBLE) as TPS