Query editor
-- SOL fees is paid 30% to dev wallets and 70% to treasury wallet-- idea here is to take all SOL transfers into the treasury wallet from agent accounts, and then SOL transfers from agent account to dev wallets are fees.with agent_accounts as (select from_owner as agent_accountfrom tokens_solana.transferswhere true-- tx_id = 'LhaPhS7jAWUNdHZb4JvYejQK6beJLU7ANmnQeN1gR1uM9136jbwbb36D1QjBqQLQQ6664VkuFKHrUo8cfNb1Dcd'and to_owner = 'CbndPn8cXKyhzYjcJ13fWbVbybm8rNQCTb6pjGLhqsg7' -- treasury walletand block_time >= timestamp '2025-01-01'and symbol = 'SOL')-- select date_trunc('day', block_date) as date_time, sum(amount_display) as sol_amtselect date_trunc('day', block_date) as date_time, amount_display, tx_id, from_ownerfrom tokens_solana.transferswhere trueand block_time >= timestamp '2025-01-01'and symbol = 'SOL'and from_owner in (select agent_account from agent_accounts)and to_owner != 'CbndPn8cXKyhzYjcJ13fWbVbybm8rNQCTb6pjGLhqsg7'-- group by 1limit 100