Query editor
-- stonkbox on Base, contract 0x515a693fc474b2344a9a07f4962ef33ffc253447, from block 51277954-- BoxesBought(address indexed buyer, uint8 indexed tier, uint16 qty, uint256 firstId, uint256 cost)selectdate_trunc('day', block_time) as day,sum(bytearray_to_uint256(bytearray_substring(data, 1, 32))) as boxes_sold,sum(bytearray_to_uint256(bytearray_substring(data, 65, 32))) / 1e6 as volume_usdc,count(*) as purchasesfrom base.logswhere contract_address = 0x515a693fc474b2344a9a07f4962ef33ffc253447and topic0 = 0x793212bc54a93b64ad49d45a9d02304eb16c908134ea23af900d90d8bffb8783and block_number >= 51277954group by 1order by 1