RamaharStatistics
Updated 2022-12-11Copy Reference Fork
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 txs_table as (select
'FLOW' as chain,
{{timeperiod}}(block_timestamp) as dayz,
count (distinct tx_id) as daily_txs,
count (distinct proposer) as daily_users,
daily_txs/1440 as TPM,
daily_txs/86400 as TPS,
(daily_txs/daily_users) as tx_per_user
from flow.core.fact_transactions
where block_timestamp::date >= '2022-01-01'
and block_timestamp::date <= CURRENT_DATE - 1
group by 2
UNION ALL
select
'Cosmos' as chain,
{{timeperiod}}(block_timestamp) as dayz,
count(distinct tx_id) as daily_txs,
count(distinct TX_FROM) as daily_users,
(daily_txs/1440) as TPM,
(daily_txs/86400) as TPS,
(daily_txs/daily_users) as tx_per_user
from cosmos.core.fact_transactions
where block_timestamp::date >= '2022-01-01'
AND block_timestamp::date <= CURRENT_DATE - 1
group by 2
union ALL
select 'Ethereum' as chain,
{{timeperiod}}(block_timestamp) as dayz,
count (distinct tx_hash) as daily_txs,
count (distinct from_address) as daily_users,
daily_txs/1440 as TPM,
daily_txs/86400 as TPS,
Run a query to Download Data