RamaharSuccess/Fail Rate
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 tx_table as (select
'FLOW' as chain,
{{timeperiod}}(block_timestamp) as time,
count (case when tx_succeeded != 'TRUE' then 1 end) as failed_txs,
count (case when tx_succeeded = 'TRUE' then 1 end) as success_txs,
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'
group by 2
UNION ALL
select
'Cosmos' as chain,
{{timeperiod}}(block_timestamp) as time,
count (case when tx_succeeded != 'TRUE' then 1 end) as failed_txs,
count (case when tx_succeeded = 'TRUE' then 1 end) as success_txs,
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'
group by 2
union ALL
select 'Ethereum' as chain,
{{timeperiod}}(block_timestamp) as time,
count (case when status != 'SUCCESS' then 1 end) as failed_txs,
count (case when status = 'SUCCESS' then 1 end) as success_txs,
Run a query to Download Data