Query editor
with txs as (selectsignatures[0] as tx_sig,block_time,account_keys[0] as victim_address,account_key as hacker_address,'sol11111111111111111111111111111111111111111' as mint,(post_sol_balance - pre_sol_balance) / 1e9 as hack_amount -- solana lamports 9dpfrom solana.transactionsLATERAL VIEW posexplode(account_keys) as account_index, account_keyLATERAL VIEW posexplode(pre_balances) as pre_balance_index, pre_sol_balanceLATERAL VIEW posexplode(post_balances) as post_balance_index, post_sol_balancewhereaccount_key in ('CEzN7mqP9xoxn2HdyW6fjEJ73t7qaX9Rp2zyS6hb3iEu','Htp9MGP8Tig923ZFY7Qf2zzbMUmYneFRAhSp7vSg4wxV','5WwBYgQG6BdErM2nNNyUmQXfcUnB68b6kesxBywh1J3n','GeEccGJ9BEzVbVor1njkBCCiqXJbXVeDHaXDCrBDbmuy')and array_contains(account_keys, '11111111111111111111111111111111') -- system program for sol native transfersand success == trueand block_time >= "2022-08-02 22:37" -- first hacker wallet funded timestampand account_index == pre_balance_indexand pre_balance_index == post_balance_indexunion allselectsignatures[0] as tx_sig,block_time,account_keys[0] as victim_address,casewhen post_token_balance['account'] in ('9XhJANMN4r23xY5PZ7rjpR1CXfiKBm7hZPNqruCDNU3h', -- usdc'AbQwHUe7VRWUGS1cEEaH7BzyEAu63W8vWe9PuL1yyUSE', -- usdt'DLrTwJ5aqMwSjCLUKVDSqPZco19b1Uy8i8eAdnsmGp1D', -- msol'sy5DpTyX6rb7CrGCWaifPz4mqu39vLqvUX9tJYxGnhi', -- btc'DYjTqigM7VGfMwUuARWMyhWzXr2PzS6RuLaXVnaWrTrD' -- eth)then 'Htp9MGP8Tig923ZFY7Qf2zzbMUmYneFRAhSp7vSg4wxV' -- wallet 1when post_token_balance['account'] in ('ZDMRxJfvYxqjXeEcoNADWrFA7Qx96KxBTin8G8EPDtp', -- usdc'7DXJ6fTR9C5fr3vT5hgzZfKmbZuqJq2V3ibGX7DXYpmx', -- usdt'EGtv4G9gsp9yuJwkuBeyZtzKf4N6GPUdpuNedYu5JM7i', -- msol'9TYgeb4EUqhrDTPe51zPwu6HZ26qgJDy4DtQGCQo3xoM', -- btc'DJj4uHy8LVUc1s93BKVA5KgicNiAWTnCwqwknPCQszRM' -- eth)then 'CEzN7mqP9xoxn2HdyW6fjEJ73t7qaX9Rp2zyS6hb3iEu' -- wallet 2when post_token_balance['account'] in ('BkkvuSVFnunwWvFhmuXVV3xuNksKTG2pZs6BFJGDgLAZ', -- usdc'EXiAckLZQ8kWnPoqPWA9aSXcpHzVHKAcCW7eTGLC5LqC', -- msol'8FrK3MZXKDg9Am9nDXKLU272GPgB5tYxj7jrNJj1kSez', -- btc'BGZFGmtEXuGEZrRzkN7VC5FgZKZNGKLpFtqiu9pPPNHx' -- eth)then '5WwBYgQG6BdErM2nNNyUmQXfcUnB68b6kesxBywh1J3n' -- wallet 3when post_token_balance['account'] in ('3cgoaGUXNen2MrATmrmhU37EkboC6oFmCwQXedDrPZvi', -- usdc'BP3MAecdWefv1fc46ADmjakcpHDC54RxVYaUutzcyRGT', -- usdt'41inNBtuBUuSb2p4YwnPNWPbxcg3LrAd8uUMix8SC1Bk', -- msol'BNTvPoWUFLmvRSEqwHAy1SDkC34kzLMTTC5EPpEfMD9P', -- btc'5y5f7xHYvLvB35xofQNNL5rqDZBKmjmcSsAGSgyqcGGZ' -- eth)then 'GeEccGJ9BEzVbVor1njkBCCiqXJbXVeDHaXDCrBDbmuy' -- wallet 4end as hacker_address,post_token_balance['mint'] as mint,post_token_balance['amount'] - pre_token_balance['amount'] as hack_amountfrom solana.transactions