hessDaily Numbers
Updated 2024-05-28
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
›
⌄
with lighthouse as ( select DISTINCT tx_id
from sei.core.fact_msg_attributes
where attribute_value = 'sei1hjsqrfdg2hvwl3gacg4fkznurf36usrv7rkzkyh29wz3guuzeh0snslz7d'
and ATTRIBUTE_KEY = '_contract_address'
and block_timestamp::date >= '2023-12-28'
and TX_SUCCEEDED = 'TRUE')
,
minter as ( select a.block_timestamp,
a.tx_id,
attribute_value as minter
from sei.core.fact_msg_attributes a join lighthouse b on a.tx_id = b.tx_id
where attribute_key = 'fee_payer'
and a.block_timestamp::date >= '2023-12-28')
,
collection as ( select a.block_timestamp,
a.tx_id,
attribute_value as collection,
ifnull(LABEL,collection) as collections,
msg_group,
minter
from sei.core.fact_msg_attributes a join minter b on a.tx_id = b.tx_id
left OUTER join sei.core.dim_labels c on attribute_value = c.address
where attribute_key = 'collection'
and a.block_timestamp::date >= '2023-12-28')
,
price as ( select a.block_timestamp,
a.tx_id,
collection,
collections,
a.msg_group,
minter,
attribute_value/pow(10,6) as price
from sei.core.fact_msg_attributes a join collection b on a.tx_id = b.tx_id
left OUTER join sei.core.dim_labels c on attribute_value = c.address
where attribute_key = 'price'
and a.block_timestamp::date >= '2023-12-28')
QueryRunArchived: QueryRun has been archived