kiacryptoDaily tx and success rate - curtain chain
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 all_chain as (
select
date_trunc ('day', block_timestamp) as date,
count(distinct tx_id) as tx_count,
(sum(iff(tx_succeeded = 'TRUE', 1, 0)) / tx_count) * 100 as success_rate,
'Flow' as chain
from flow.core.fact_transactions
where date >= '2022-01-01'
group by 1
union all
select
date_trunc ('day', block_timestamp) as date,
count(distinct tx_hash) as tx_count,
(sum(iff(status = 'SUCCESS', 1, 0)) / tx_count) * 100 as success_rate,
'BSC' as chain
from bsc.core.fact_transactions
where date >= '2022-01-01'
group by 1
union all
select
date_trunc ('day', block_timestamp) as date,
count(distinct tx_hash) as tx_count,
(sum(iff(status = 'SUCCESS', 1, 0)) / tx_count) * 100 as success_rate,
'Ethereum' as chain
from ethereum.core.fact_transactions
where date >= '2022-01-01'
group by 1
union all
select
date_trunc ('day', block_timestamp) as date,
Run a query to Download Data