adambalanear near
Updated 2022-07-14
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
›
⌄
select
BLOCK_TIMESTAMP::date as date,'USN'as title ,
count(distinct TXN_HASH ) as trans ,count(distinct TX_SIGNER) as wallets ,
sum(trans) over (order by date) as cum_trans, sum(wallets) over (order by date) as cum_wallets
from
(
select
TX:actions[0]:FunctionCall:method_name as method_name ,
TXN_HASH,TX_SIGNER,
BLOCK_TIMESTAMP
from flipside_prod_db.mdao_near.transactions
where TX:actions[0]:FunctionCall:method_name = 'ft_transfer_call' and TX_RECEIPT[0]:outcome:executor_id = 'usn' and TX_RECEIPT[1]:outcome:executor_id = 'aurora' )
group by 1,2
union
select
BLOCK_TIMESTAMP::date as date,'linear'as title ,
count(distinct TXN_HASH ) as trans ,count(distinct TX_SIGNER) as wallets ,
sum(trans) over (order by date) as cum_trans,sum(wallets) over (order by date) as cum_wallets
from
(
select
TX:actions[0]:FunctionCall:method_name as method_name ,
TXN_HASH,TX_SIGNER,
BLOCK_TIMESTAMP
from flipside_prod_db.mdao_near.transactions
where TX:actions[0]:FunctionCall:method_name = 'ft_transfer_call' and TX_RECEIPT[0]:outcome:executor_id = 'linear-protocol.near' and TX_RECEIPT[1]:outcome:executor_id = 'aurora'
)
group by 1,2
union
Run a query to Download Data