adambalaewa4
Updated 2023-04-13
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
›
⌄
with eth as
(select
PRICE as volume ,
PRICE_USD AS USD,
NFT_ADDRESS ,
SELLER_ADDRESS as sellers ,
BUYER_ADDRESS as buyers ,
TX_HASH as sale_tx ,
BLOCK_TIMESTAMP ::date as date ,
PLATFORM_NAME as platform
from
ethereum.core.ez_nft_sales where CURRENCY_ADDRESS='ETH' and EVENT_TYPE='sale' and
lower(NFT_ADDRESS)=lower('0x8a90CAb2b38dba80c64b7734e58Ee1dB38B8992e')
)
, eth_metadata as (
select CONTRACT_NAME as name , CREATED_AT_TIMESTAMP::date as created_time , CONTRACT_ADDRESS as NFT_created , eth.*,TOKEN_METADATA
from ethereum.core.dim_nft_metadata right join eth on NFT_address = CONTRACT_ADDRESS
)
, ethh as (select
platform as "name" ,
count (distinct sale_tx) as "value"
from eth_metadata
group by 1--,3
)
select * from ethh
Run a query to Download Data