Afonso_Diaztotal (contracts)
Updated 2025-01-05
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
›
⌄
with
transactions as (
select
contract_address,
tx_hash,
block_timestamp,
tx_fee,
from_address as user
from
mantle.core.fact_event_logs
join
mantle.core.fact_transactions using (tx_hash, block_timestamp)
where
tx_succeeded
)
select
count(distinct contract_address) as total_contracts,
count(distinct tx_hash) as transactions,
count(distinct user) as users,
sum(tx_fee) / total_contracts as average_fee_volume_per_contract,
transactions / total_contracts as average_transactions_per_contract,
total_contracts / users as average_contracts_per_user
from
transactions
where
block_timestamp::date between '{{ start_date }}' and '{{ end_date }}'
QueryRunArchived: QueryRun has been archived