Afonso_DiazOvertime
Updated 2025-04-22
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
›
⌄
with
main as (
select
tx_hash,
block_timestamp,
from_address as user,
tx_fee,
iff(origin_function_signature = '0xe884624b', 'GM to a Fren', 'GM') as tx_type
from
ink.core.fact_transactions
where
tx_succeeded
and to_address = '0x9f500d075118272b3564ac6ef2c70a9067fd2d3f'
and origin_function_signature in ('0xe884624b', '0xc0129d43')
)
select
date_trunc('{{ period }}', block_timestamp) as date,
count(distinct tx_hash) as transactions,
count(distinct user) as users,
sum(tx_fee) as fee_volume,
avg(tx_fee) as average_fee_amount,
sum(transactions) over (order by date) as cumulative_transactions,
sum(fee_volume) over (order by date) as cumulative_fee_volume
from
main
group by 1
order by 1
QueryRunArchived: QueryRun has been archived