Query editor
/* Query to track hourly transaction volume for $SMOLE *//* Purpose: To monitor how the volume of $SMOLE transactions varies throughout the day, providing insights into peak activity times. *//*In this query, we use a Common Table Expression (CTE) to calculate the total transaction volume for each hour of the day.The volume is calculated by summing the token balance for each transaction on an hourly basis.*/WITH hourly_activity AS (SELECTDATE(block_time) AS transaction_date, /* Extracts the date of each transaction */EXTRACT(HOUR FROM block_time) AS transaction_hour, /* Extracts the hour from the block time to group by hour */SUM(token_balance) AS total_volume /* Sums the token balances to calculate the total transaction volume for each hour */FROM solana_utils.daily_balances /* The 'daily_balances' table contains token balance data on the Solana blockchain */WHEREtoken_mint_address = '9Ttyez3xiruyj6cqaR495hbBkJU6SUWdV6AmQ9MvbyyS' /* Filters for $SMOLE token (replace with actual token mint address) */GROUP BY1, 2 /* Groups by both transaction date and transaction hour */)-- The main query retrieves the hourly transaction volume data from the CTE for display.SELECTtransaction_date, /* Displays the date of each transaction */transaction_hour, /* Displays the hour of the day when the transaction occurred */total_volume /* Displays the total transaction volume for each hour */FROM hourly_activityORDER BYtransaction_date, /* Orders the results by transaction date */transaction_hour;