Query editor
With source as (SELECTallocations,tx_hash,block_timeFROMTABLE (decode_evm_event(abi => '{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32[]","name":"allocations","type":"bytes32[]"}],"name":"AllocationsSet","type":"event"}',input => TABLE (SELECT*FROMbase.logsWHEREtopic0 = 0xbd18231792a7535fff80d85564ce7d95dbdff6819b40ad815711b21a75e6bb49AND tx_from = 0xe847eBff4d1B7ae3691f238c5Cd5Cf691Fd1F413)))),arrays AS (selecttx_hash,block_time,allocationfromsource,UNNEST(allocations) AS t(allocation)),eligible as (SELECTDISTINCT tx_hash,block_time,allocation,varbinary_to_uint256(varbinary_substring(allocation, 1, 12)) / 1e18 as amount,varbinary_substring(allocation, 13, 20) as addressFROMarrays),contract as (SELECTaddress,CASEWHEN code IS NOT NULL THEN trueELSE falseEND as is_contractFROMbase.creation_tracesWHEREaddress IN (selectaddressfromeligible))selectget_href('https://basescan.org/address/' || CAST(c.address AS VARCHAR),