Query editor
with wl(w) as (values('7FoXJZXD6KxRT2rDeAoNMfRCX8QRWNdiaN7MPdffEbvA'),('BAssygMcMh6bfBRTo7nCGhGABM3th35PfEHqVpCprJx5')),aug7 as (select 'aug7_transfer' as kind,coalesce(t.to_owner, t.from_owner) as wallet,t.block_time, t.token_mint_address as mint,t.amount_display as qty, t.amount_usd as usd,t.from_owner, t.to_ownerfrom tokens_solana.transfers twhere t.block_date = date '2026-08-07'and (t.to_owner in (select w from wl) or t.from_owner in (select w from wl))),fees as (select 'fee_summary' as kind, from_owner as wallet,min(block_time) as block_time, 'FEES' as mint,cast(count(*) as double) as qty, sum(amount_usd) as usd,cast(null as varchar) as from_owner,cast(max(block_time) as varchar) as to_ownerfrom tokens_solana.transferswhere to_owner = 'R4rNJHaffSUotNmqSKNEfDcJE8A7zJUkaoM5Jkd7cYX'and token_mint_address = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'and block_date between date '2026-05-20' and date '2026-08-18'and from_owner in (select w from wl)group by 1, 2)select * from aug7union allselect * from feesorder by kind, block_time