anabelaDaily Flow Transaction Numbers since inception
Updated 2022-12-12Copy 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 flow as (
select
block_timestamp::date as day,
count (distinct tx_id) as flow_tx_num,
count(distinct(iff(tx_succeeded = 1, tx_id, null))) as flow_success_tx_num,
count(distinct(iff(tx_succeeded != 1, tx_id, null))) as flow_failed_tx_num,
flow_tx_num / 1440 as flow_tpm,
flow_tx_num / 86400 as flow_tps
from flow.core.fact_transactions
where block_timestamp >= current_date - interval '1 year'
group by day
),
bsc as (
select
block_timestamp::date as day,
count (distinct tx_hash) as bsc_tx_num,
count(distinct(iff(status = 'SUCCESS', tx_hash, null))) as bsc_success_tx_num,
count(distinct(iff(status != 'SUCCESS', tx_hash, null))) as bsc_failed_tx_num,
bsc_tx_num / 1440 as bsc_tpm,
bsc_tx_num / 86400 as bsc_tps
from bsc.core.fact_transactions
where block_timestamp >= current_date - interval '1 year'
group by day
),
ethereum as (
select
block_timestamp::date as day,
count (distinct tx_hash) as ethereum_tx_num,
count(distinct(iff(status = 'SUCCESS', tx_hash, null))) as ethereum_success_tx_num,
count(distinct(iff(status != 'SUCCESS', tx_hash, null))) as ethereum_failed_tx_num,
ethereum_tx_num / 1440 as ethereum_tpm,
ethereum_tx_num / 86400 as ethereum_tps
from ethereum.core.fact_transactions
where block_timestamp >= current_date - interval '1 year'
Run a query to Download Data