StangFASTpart - 1 - price
Updated 2024-08-02
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
›
⌄
--- 0x9560b026be3351ed314d92180971fa0d6523a24ad2e65b3d7dab1da107c3aabc
with
table_1 AS (
SELECT
a.tx_hash AS tx
, count( DISTINCT a.tokenid ) AS total_tx
FROM
avalanche.nft.ez_nft_transfers a
WHERE
a.nft_address = '0x7098b1918eb2aa13945b8a489975bbbf0d5dd79b'
AND a.event_type = 'mint'
GROUP BY 1
)
,
table_2 AS (
SELECT
a.block_timestamp AS date
, a.tx_hash AS transactions
, a.nft_to_address AS minter
, a.tokenid AS token_ids
, b.amount / c.total_tx AS avax_amount
, b.amount_usd / c.total_tx AS usd_dollars
FROM
avalanche.nft.ez_nft_transfers a
LEFT JOIN
avalanche.core.ez_native_transfers b
ON a.tx_hash = b.tx_hash
AND a.nft_to_address = b.from_address
LEFT JOIN
table_1 c
ON a.tx_hash = c.tx
WHERE
a.nft_address = '0x7098b1918eb2aa13945b8a489975bbbf0d5dd79b'
AND a.event_type = 'mint'
ORDER BY 4 ASC
QueryRunArchived: QueryRun has been archived