nsa2000Average Transactions per Minute
Updated 2023-01-17Copy 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
›
⌄
WITH n_ as (
SELECT
block_timestamp::date as date,
'GXM' as platform,
count(*) as tx_count,
count(case WHEN tx_status = 'SUCCESS' then 1 end) as tx_success,
count(case WHEN tx_status != 'SUCCESS' then 1 end) as tx_failure
FROM arbitrum.core.fact_event_logs
WHERE origin_to_address in ('0x3d6ba331e3d9702c5e8a8d254e5d8a285f223aba','0xb87a436b93ffe9d75c5cfa7bacfff96430b09868')
GROUP BY 1,2
UNION
SELECT
block_timestamp::date as date,
'GNS' as platform,
count(*) as tx_count,
count(case WHEN tx_status = 'SUCCESS' then 1 end) as tx_success,
count(case WHEN tx_status != 'SUCCESS' then 1 end) as tx_failure
FROM polygon.core.fact_event_logs
where origin_to_address in ('0xd8d177efc926a18ee455da6f5f6a6cfcee5f8f58','0x65187fec6ecc4774c1f632c7503466d5b4353db1','0xf8a140db8b05bec52c7e86d0d40d72f8e54fe559')
and contract_address = '0x8f3cf7ad23cd3cadbd9735aff958023239c6a063' -- DAI
GROUP BY 1,2
)
SELECT
date,
platform,
avg(tx_success)/(1440) as tx_per_min,
avg(tx_failure) as fail_rate
FROM n_
group by 1,2
order by 1
Run a query to Download Data