Query editor
WITH base_data AS (SELECTtx_id,SUBSTR(data, 2, 4) as compute_unit_limit_hex -- directly extract the 4 bytes after the discriminatorFROM solana.instruction_callsWHERE block_date = DATE '{{date}}'AND outer_executing_account = 'ComputeBudget111111111111111111111111111111'AND STARTS_WITH(data, X'02') -- filter rows where data starts with X'02')SELECTtx_id,COALESCE(bytea2numeric(REVERSE(compute_unit_limit_hex)),200000 -- default CUs is 200000) as compute_unit_limitFROM base_dataSELECTid, compute_units_consumedFROMsolana.transactionsWHEREid IN (SELECT tx_idFROM base_data)