Query editor
-- Parameter: address (type: Text, default: 8Qrc2pf9p24NyJVG1FagnqJXwKw6h5L5McxnMfJoUxev)-- Finds every transaction that INCREASED this account's native SOL balance.-- post_balance > pre_balance is the trick: it drops all the read-only token-transfer-- noise (swaps referencing the mint leave its lamports unchanged) automatically.WITH inflows AS (SELECTtx_id,block_time,block_slot,pre_balance,post_balance,(post_balance - pre_balance) AS delta_lamportsFROM solana.account_activityWHERE address = '{{address}}'AND post_balance > pre_balance)SELECTtx_id,block_time,delta_lamports / 1e9 AS delta_sol,post_balance / 1e9 AS balance_after_sol,ROW_NUMBER() OVER (ORDER BY block_time) AS inflow_seq,CASEWHEN ROW_NUMBER() OVER (ORDER BY block_time) = 1THEN 'creation / rent funding (the floor)'ELSE 'excess deposit (recoverable)'END AS classificationFROM inflowsORDER BY delta_lamports DESC