NavidCopy of Untitled Query
Updated 2022-07-28Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
›
⌄
select
block_timestamp::date as day,
tx_receiver,
sum(gas_used/POW(10,12)) as gas,
sum(gas) over (partition by tx_receiver order by day asc) as gas_trend
from
near.core.fact_transactions
where
block_timestamp > CURRENT_DATE-7 and
tx_receiver in (
select tx_receiver
from near.core.fact_transactions
group by tx_receiver
order by sum(gas_used) desc
limit 10
)
group by
tx_receiver, day
order by
tx_receiver, day asc
Run a query to Download Data