omer93Avalanche principals 5
Updated 2024-01-10
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
›
⌄
WITH
tpb as (
select
block_number,
block_timestamp,
count(distinct tx_hash) as txs
from avalanche.core.fact_transactions
where block_timestamp>=current_date-interval '3 months' and status='SUCCESS'
group by 1,2
)
SELECT
trunc(block_timestamp,'day') as date,
avg(txs) as avg_tx_per_block
from tpb where date<current_date
group by 1
order by 1 asc
QueryRunArchived: QueryRun has been archived