solomixBridge-out Transactions
Updated 2025-01-15
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
›
⌄
with filtered_logs as(
SELECT
date_trunc('day', block_timestamp) as day,
tx_hash,
origin_function_signature
FROM
core.core.ez_decoded_event_logs
WHERE contract_address= lower('0xA4218e1F39DA4AaDaC971066458Db56e901bcbdE')
and origin_function_signature = '0x879762e2'
and event_removed = 'FALSE'
and tx_succeeded = 'TRUE'
)
,
total as(
select
fl.day as day,
count(ft.tx_hash) as tx_count,
sum(ft.tx_fee_precise) as total_tx_fee
FROM
filtered_logs fl
JOIN
core.core.fact_transactions ft on fl.tx_hash =ft.tx_hash
AND fl.origin_function_signature = ft.origin_function_signature
WHERE ft.tx_succeeded = 'TRUE'
group BY fl.day
order BY fl.day
),
total2 as(
SELECT
*,
sum(total_tx_fee) over (order by day) as cumulative_fee,
sum(tx_count) over (order by day) as cumulative_transaction
FROM total
ORDER by day
),
core_price as (
QueryRunArchived: QueryRun has been archived