Query editor
with rawdata as (selecttx_hash,regexp_extract_all(substring(to_hex(input),9),'.{64}') as input_datafrom arbitrum.traces-- where tx_hash = 0x00261b96da90475d82f08cdc386b079503e89d5c16f16afd643e397da6884deewhere "from" = 0x1a3c9b1d2f0529d97f2afc5136cc23e58f1fd35b--and "to" = 0xd8e7933325b9a518b0f71c71264846e2d09381f8and type = 'call'and trace_address = ARRAY[0,1,1])-- with rawdata as (-- select 0x5253311100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000b54000000000000000000000000000000000000000000000000000000000000238c0000000000000000000000000000000000000000000000000000000000000168000000000000000000000000000000000000000000000000000000000000ea60000000000000000000000000000000000000000000000000000000000000003b00000000000000000000000000000000000000000000000000000000000021340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000bb8 as data-- )-- ,seg as (-- select-- regexp_extract_all(substring(to_hex(data),9),'.{64}') as input_data-- from rawdata-- )selecttx_hash-- varbinary_to_uint256(from_hex(input_data[1]))-- ,varbinary_to_uint256(from_hex(input_data[2]))-- ,varbinary_to_uint256(from_hex(input_data[3]))-- ,varbinary_to_uint256(from_hex(input_data[4]))-- ,varbinary_to_uint256(from_hex(input_data[5]))-- ,varbinary_to_uint256(from_hex(input_data[6]))-- ,varbinary_to_uint256(from_hex(input_data[7]))-- ,varbinary_to_uint256(from_hex(input_data[8]))-- ,varbinary_to_uint256(from_hex(input_data[9])),varbinary_to_uint256(from_hex(input_data[10])) as baseFeefrom rawdataselect *-- regexp_extract_all(to_hex(data),'.{64}') as input_datafrom arbitrum.logswhere tx_hash = 0x00261b96da90475d82f08cdc386b079503e89d5c16f16afd643e397da6884dee-- where contract_address = 0xd8e7933325b9a518b0f71c71264846e2d09381f8and topic0 = 0xfde738fae78aad21a8ad5935e1ff28b89cea38834539a91ae210ba7a22c067a5select -- To get every creatd camlot v3 pooltx_hash-- from_hex('0x' || substring(to_hex(topic1),25)) as tokenA-- ,from_hex('0x' || substring(to_hex(topic2),25)) as tokenB