SalehUntiled boardGMX Protocol Overview
GMX
Updated 2022-09-18
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 lst_tx as (
select
DISTINCT tx_hash
-- ORIGIN_TO_ADDRESS
-- ,count(*) as tx_count
from arbitrum.core.fact_event_logs
where block_timestamp::date>=CURRENT_DATE-30
and CONTRACT_ADDRESS=lower('0xfc5A1A6EB076a2C7aD06eD22C90d7E710E35ad0a')
and TX_STATUS='SUCCESS'
and EVENT_REMOVED=false
-- group by 1
-- order by tx_count desc
)
select
block_timestamp::date as date
,count(DISTINCT tx_hash) as tx_count
,count(DISTINCT FROM_ADDRESS) as wallets
,avg(tx_fee) as avg_amount_fee
,sum(tx_fee) as amount_fee
,sum(amount_fee) over (order by date) as growth_amount_fee
from arbitrum.core.fact_transactions
where tx_hash in (select tx_hash from lst_tx)
group by 1
order by 1
Run a query to Download Data