permarynft transaction volume
Updated 2024-11-03
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
›
⌄
-- Total NFT transaction volume and unique wallets on BNB Chain
SELECT
date_trunc('day', block_timestamp) AS date,
'BNB Chain' AS chain,
COUNT(DISTINCT buyer_address) AS total_unique_buyers, -- Count distinct buyers
SUM(price_usd) AS total_transaction_volume -- Assuming there is a 'price_usd' column
FROM bsc.nft.ez_nft_sales -- Adjust the table name according to your schema
WHERE block_timestamp BETWEEN '2024-01-01' AND '2024-12-31'
GROUP BY date_trunc('day', block_timestamp), chain -- Grouping for BNB Chain
UNION ALL
-- Total NFT transaction volume and unique wallets on Avalanche
SELECT
date_trunc('day', block_timestamp) AS date,
'Avalanche' AS chain,
COUNT(DISTINCT buyer_address) AS total_unique_buyers, -- Count distinct buyers
SUM(price_usd) AS total_transaction_volume -- Assuming there is a 'price_usd' column
FROM avalanche.nft.ez_nft_sales -- Adjust the table name according to your schema
WHERE block_timestamp BETWEEN '2024-01-01' AND '2024-12-31'
GROUP BY date_trunc('day', block_timestamp), chain; -- Grouping for Avalanche
QueryRunArchived: QueryRun has been archived