NavidCopy of Untitled Query
Updated 2022-10-08
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
›
⌄
with dapp_trans as (
select
date(block_timestamp) as day,
label_type,
project_name,
tx_id,
tx:body:messages[0]:amount[0]:amount/1e6 as volume
from
terra.core.fact_transactions a join
terra.core.dim_address_labels b on
a.tx:body:messages[0]:to_address = b.address
where
tx_succeeded
)
select
day,
project_name,
count(distinct tx_id) as number_of_transactions,
sum(volume) as total_volume
from
dapp_trans
group by
day,
project_name
Run a query to Download Data