Query editor
WITH calls AS (SELECTblock_time,tx_id,outer_instruction_index,inner_instruction_index,executing_account,tx_success,account_arguments,"data",tx_signerFROM solana.instruction_callsWHERE block_time >= TIMESTAMP '2025-10-03 00:00:00 UTC'AND block_time < TIMESTAMP '2025-10-17 00:00:00 UTC'AND (-- Jupiter Lend liquidate outer(executing_account = 'jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi'AND inner_instruction_index IS NULLAND substr("data", 1, 8) = from_hex('dfb3e27d302e274a')AND tx_success = TRUE)OR -- operate inner instructions(substr("data", 1, 8) = from_hex('d96ad06374972a87')AND inner_instruction_index IS NOT NULL)OR -- flash-loan outer instructions(inner_instruction_index IS NULLAND substr("data", 1, 8) IN (from_hex('87e734a70734d4c1'), -- Kamino flash loanfrom_hex('67134e18f009873f') -- Jupiter flash loan)))),-- Grab all transactions that contain a liquidation instructionliq_keys AS (SELECTblock_time,outer_instruction_index,tx_idFROM callsWHERE executing_account = 'jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi'AND inner_instruction_index IS NULLAND substr("data", 1, 8) = from_hex('dfb3e27d302e274a')AND tx_success = TRUE),-- Using the txn IDs, select all inner instructions under those outersinners_raw AS (SELECTa.block_time,a.tx_id,a.account_arguments,a.outer_instruction_index,a.inner_instruction_index,a."data" AS inner_data