cheeyoung-kekUntitled Query
Updated 2022-07-21
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 sol as (
select BLOCK_TIMESTAMP::date as date, count(*) as sol_total_txs
from solana.core.fact_transactions
where BLOCK_TIMESTAMP>='2022-01-01'
group by 1),
sol_failed as (
select BLOCK_TIMESTAMP::date as date, count(*) as sol_failed_txs
from solana.core.fact_transactions
where (block_timestamp::date > '2022-01-01') and SUCCEEDED='FALSE'
group by 1),
sol_speed as(
select c.date, sol_total_txs, sol_failed_txs,sol_total_txs/1440 as sol_TPM,
100*sol_failed_txs/sol_total_txs as sol_failed_rate
from sol c
join sol_failed d
on c.date=d.date ),
eth as (
select BLOCK_TIMESTAMP::date as date, count(*) as eth_total_txs
from ethereum.core.fact_transactions
where BLOCK_TIMESTAMP>='2022-01-01'
group by 1),
eth_failed as (
select BLOCK_TIMESTAMP::date as date, count(*) as eth_failed_txs
from ethereum.core.fact_transactions
where BLOCK_TIMESTAMP>='2022-01-01' and STATUS='FAIL'
group by 1),
eth_speed as (
select e.date, eth_total_txs,eth_failed_txs ,eth_total_txs/1440 as eth_TPM,
100*eth_failed_txs/eth_total_txs as eth_failed_rate
from eth e
Run a query to Download Data