TOTAL_MINTS | UNIQUE_MINTERS | TOTAL_UNIQUE_NFTS | |
---|---|---|---|
1 | 23079 | 43 | 23078 |
datavortexnft mints
Updated 2025-02-27
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
⌄
/*
SELECT
DISTINCT
tx_hash,
'0x' || SUBSTR(topics[0], 27) AS event_signature,
'0x' || SUBSTR(topics[1], 27) AS from_address,
'0x' || SUBSTR(topics[2], 27) AS to_address,
ethereum.public.udf_hex_to_int(topics[3]) AS nft_id,
kaia.utils.udf_hex_to_int(data :: STRING) as amount
FROM kaia.core.fact_event_logs
WHERE
contract_address = LOWER('0x2f0bcecce06b6eb32a83073984d0b793640aeaf6')
AND '0x' || SUBSTR(topics[1], 27) = '0x0000000000000000000000000000000000000000'
*/
WITH mint_events AS (
SELECT
tx_hash,
origin_from_address,
'0x' || SUBSTR(topics[0], 27) AS event_signature,
'0x' || SUBSTR(topics[1], 27) AS from_address,
'0x' || SUBSTR(topics[2], 27) AS to_address,
ethereum.public.udf_hex_to_int(topics[3]) AS nft_id,
-- kaia.utils.udf_hex_to_int(data :: STRING) AS amount
FROM kaia.core.fact_event_logs
WHERE
contract_address = LOWER('0x2f0bcecce06b6eb32a83073984d0b793640aeaf6')
AND '0x' || SUBSTR(topics[1], 27) = '0x0000000000000000000000000000000000000000'
)
SELECT
COUNT(tx_hash) AS total_mints,
COUNT(DISTINCT origin_from_address) AS unique_minters,
COUNT(DISTINCT nft_id) AS total_unique_nfts
FROM mint_events;
Last run: 3 months ago
1
18B
4s