Query editor
WITH const AS (SELECTfrom_hex('0x8004A169FB4a3325136EB29fA0ceB6D2e539a432') AS identity,from_hex('0x0000000000000000000000000000000000000000') AS zero,from_hex('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef') AS transfer_topic0),mints AS (SELECTbytearray_to_uint256(l.topic3) AS agent_idFROM bnb.logs lCROSS JOIN const cWHERE l.contract_address = c.identityAND l.topic0 = c.transfer_topic0AND bytearray_substring(l.topic1, 13, 20) = c.zero)SELECTcount(*) AS mint_events,count(distinct agent_id) AS distinct_agents,max(agent_id) AS max_agent_idFROM mints;