theericstonecomplex vs total transactions
Updated 2024-06-07
999
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
›
⌄
-- aptos avalanche solana flow
with solana as (
with total as (
select
'solana' as chain,
'total successful' as category,
count(1) as n_transactions
from
solana.core.fact_transactions
where
block_timestamp > current_date - 30
and succeeded = TRUE
),
complex as (
select
'solana' as chain,
'complex only' as category,
count(distinct(tx_id)) as n_transactions
from
solana.core.fact_events
where
block_timestamp > current_date - 30
and event_type not in (
'transferChecked', 'create', 'transfer',
'closeAccount','createIdempotent','initializeAccount',
'createAccountWithSeed','syncNative','advanceNonce',
'createAccount','initializeNonce','approve',
'deactivate','revoke','burn','burnChecked'
)
and event_type IS NOT NULL
and succeeded = TRUE
)
select * from total
UNION
select * from complex
),
QueryRunArchived: QueryRun has been archived