adambalaUntitled Query
Updated 2022-12-12
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
date_trunc('month',block_timestamp)::date as date,
'Flow' as chain,
count(distinct tx_id) as "# of Montly Tx",
count(distinct PROPOSER) as "# of Montly User",
("# of Montly Tx"/43200) as "Tx/Minute - TPM",
("# of Montly Tx"/2592000) as "Tx/Sec - TPS",
("# of Montly Tx"/"# of Montly User") as "Tx/User"
from flow.core.fact_transactions
where block_timestamp::date >= '2022-01-01'
AND block_timestamp::date <= CURRENT_DATE - 1
group by 1,2
union ALL
select
date_trunc('month',block_timestamp)::date as date,
'Ethereum' as chain,
count(distinct tx_hash) as "# of Montly Tx",
count(distinct FROM_ADDRESS) as "# of Montly User",
("# of Montly Tx"/43200) as "Tx/Minute - TPM",
("# of Montly Tx"/2592000) as "Tx/Sec - TPS",
("# of Montly Tx"/"# of Montly User") as "Tx/User"
from ethereum.core.fact_transactions
where block_timestamp::date >= '2022-01-01'
AND block_timestamp::date <= CURRENT_DATE - 1
group by 1,2
union ALL
select
date_trunc('month',block_timestamp)::date as "Date",
'Cosmos' as chain,
count(distinct tx_id) as "# of Montly Tx",
count(distinct TX_FROM) as "# of Montly User",
("# of Montly Tx"/43200) as "Tx/Minute - TPM",
Run a query to Download Data