BlockTrackertps
Updated 2025-02-10
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
›
⌄
SELECT
date,
'Base' as chain,
num_of_txns /DATEDIFF(second,min_block_timestamp,max_block_timestamp) as T_P_S
FROM (
SELECT
date_trunc('{{granularity}}', block_timestamp) as date,
count(DISTINCT tx_hash) as num_of_txns,
min(block_timestamp) as min_block_timestamp,
max(block_timestamp) as max_block_timestamp
FROM base.core.fact_transactions
GROUP BY 1
)
WHERE date >= dateadd(day, -{{past_days}}, current_date())
union all
SELECT
date,
'Avalanche' as chain,
num_of_txns /DATEDIFF(second,min_block_timestamp,max_block_timestamp) as T_P_S
FROM (
SELECT
date_trunc('{{granularity}}', block_timestamp) as date,
count(DISTINCT tx_hash) as num_of_txns,
min(block_timestamp) as min_block_timestamp,
max(block_timestamp) as max_block_timestamp
FROM avalanche.core.fact_transactions
GROUP BY 1
)
WHERE date >= dateadd(day, -{{past_days}}, current_date())
QueryRunArchived: QueryRun has been archived