bachinear - failed trans
Updated 2022-07-17
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 near_txns
AS (SELECT Date(block_timestamp) AS day,
Count(*) AS total_count
FROM flipside_prod_db.mdao_near.transactions
WHERE block_timestamp >= Dateadd(month, -6, Getdate())
GROUP BY 1),
solana_txns
AS (SELECT Date(block_timestamp) AS day,
Count(*) AS total_count
FROM solana.core.fact_transactions
WHERE block_timestamp >= Dateadd(month, -6, Getdate())
GROUP BY 1),
ethereum_txns
AS (SELECT Date(block_timestamp) AS day,
Count(*) AS total_count
FROM ethereum.core.fact_transactions
WHERE block_timestamp >= Dateadd(month, -6, Getdate())
GROUP BY 1),
near_failed_txns as (
select date(block_timestamp) as day,
count(*) as failed_count
from flipside_prod_db.mdao_near.transactions
where block_timestamp >= dateadd(month, -6, getdate())
and tx_receipt[0]:outcome:status:Failure is not NULL
group by 1
),
solana_failed_txns as (
SELECT Date(block_timestamp) AS day,
Count(*) AS failed_count
FROM solana.core.fact_transactions
where block_timestamp >= dateadd(month, -6, getdate())
AND succeeded = false
Run a query to Download Data