Query editor
-- Daily Transaction Count and Volume for wPAW-- Tracks daily activity metrics for wPAW tokenWITH wpaw_token AS (SELECT 0xc11158c5da9db1d553ed28f0c2ba1cbedd42cfcb as token_address -- wPAW contract address),-- Get all wPAW transfer eventsdaily_transfers AS (SELECTDATE_TRUNC('day', evt_block_time) as date,evt_tx_hash,"from" as from_address,"to" as to_address,value / 1e18 as amount_wpaw -- Convert from wei to wPAW (18 decimals)FROM erc20_ethereum.evt_TransferWHERE contract_address = (SELECT token_address FROM wpaw_token)AND evt_block_time >= NOW() - INTERVAL '30' DAY -- Last 30 daysAND "to" != 0x0000000000000000000000000000000000000000 -- Exclude burnsAND "from" != 0x0000000000000000000000000000000000000000 -- Exclude mints)-- Daily metricsSELECTdate,COUNT(DISTINCT evt_tx_hash) as transaction_count,COUNT(*) as transfer_count, -- Multiple transfers can happen in one transactionSUM(amount_wpaw) as total_volume_wpaw,AVG(amount_wpaw) as avg_transfer_amount,MIN(amount_wpaw) as min_transfer_amount,MAX(amount_wpaw) as max_transfer_amount,COUNT(DISTINCT from_address) as unique_senders,COUNT(DISTINCT to_address) as unique_receivers,COUNT(DISTINCT from_address) + COUNT(DISTINCT to_address) as total_unique_addressesFROM daily_transfersGROUP BY dateORDER BY date DESC