Query editor
with tab1 as (selectblock_time,tx_id,outer_instruction_index,inner_instruction_index,account_arguments[1] as pool--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.*, poolfrom 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.*, poolfrom 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('day', block_time) as day,case when pool = 'BLkBSE96kQys7SrMioKxeMiVbeo4Ckk2Y4n1JphKxYnv' then 'UMBRA-USDC'when pool = '3D854kknnQhu9xVaRNV154oZ9oN2WF3tXsq3LDu7fFMn' then 'AVICI-USDC'else 'Other' end as pool,