Afonso_DiazTotal
Updated 2025-01-27
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
›
with
main as (
select
tx_id as tx_hash,
block_timestamp,
authorizers[0]::string as user,
'Flow' as chain
from
flow.core.fact_transactions
where
block_timestamp::date >= current_date - interval '30 days'
and tx_succeeded
union all
select
tx_hash,
block_timestamp,
from_address as user,
'Flow EVM' as chain
from
flow.core_evm.fact_transactions
where
block_timestamp::date >= current_date - interval '30 days'
and tx_succeeded
)
select
chain,
count(distinct tx_hash) as transactions,
count(distinct user) as users,
transactions / datediff('seconds', min(block_timestamp), max(block_timestamp)) as tps,
transactions / count(distinct block_timestamp::date) as daily_average_transactions,
users / count(distinct block_timestamp::date) as daily_average_users
from
QueryRunArchived: QueryRun has been archived