Query editor
with tab1 as (selectblock_time,tx_id,outer_instruction_index,inner_instruction_index--case when FUTARELBfJfQ8RDGhg1wdhddq1odMAJUePHFuBYfUxKqfrom solana.instruction_callswhere executing_account = 'FUTARELBfJfQ8RDGhg1wdhddq1odMAJUePHFuBYfUxKq'AND block_time > TIMESTAMP '2025-10-10 00:00:00 UTC'--and account_arguments[1] = 'BLkBSE96kQys7SrMioKxeMiVbeo4Ckk2Y4n1JphKxYnv'and cardinality(account_arguments) = 9and tx_successand is_inner), tab2 as (select a.*from tokens_solana.transfers as aleft outer join tab1on a.tx_id = tab1.tx_idand a.outer_instruction_index = tab1.outer_instruction_indexand tab1.inner_instruction_index + 1 = a.inner_instruction_indexwhere a.tx_id in (select tx_id from tab1)AND a.block_time > TIMESTAMP '2025-10-10 00:00:00 UTC'AND tab1.block_time > TIMESTAMP '2025-10-10 00:00:00 UTC'and not tab1.tx_id is nulland token_mint_address = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'), tab3 as (select a.*from tokens_solana.transfers as aleft outer join tab1on a.tx_id = tab1.tx_idand a.outer_instruction_index = tab1.outer_instruction_indexand tab1.inner_instruction_index + 2 = a.inner_instruction_indexwhere a.tx_id in (select tx_id from tab1)AND a.block_time > TIMESTAMP '2025-10-10 00:00:00 UTC'AND tab1.block_time > TIMESTAMP '2025-10-10 00:00:00 UTC'and not tab1.tx_id is nulland token_mint_address = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'), tab4 as (selectblock_time,tx_id,outer_instruction_index,inner_instruction_indexfrom solana.instruction_callswhere executing_account = 'FUTARELBfJfQ8RDGhg1wdhddq1odMAJUePHFuBYfUxKq'AND block_time > TIMESTAMP '2025-10-10 00:00:00 UTC'and account_arguments[1] = 'BLkBSE96kQys7SrMioKxeMiVbeo4Ckk2Y4n1JphKxYnv'and cardinality(account_arguments) = 9and tx_successand not is_inner), tab5 as (selectdate_trunc('hour', block_time) as hour,count(distinct tx_id) as swaps,count(distinct tx_signer) as swappers,sum(amount_display) as volume_usd,sum(amount_display * 0.0025) as metaDAO_fee