BlockTrackerswaps routes
Updated 2025-02-05
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
›
⌄
with asc_data as (
select
block_timestamp,
tx_hash,
old_owner_id as wallet,
amount_raw,
token_id
from near.defi.fact_intents
where log_event = 'mt_transfer'
and RECEIPT_SUCCEEDED
qualify row_number () over (partition by tx_hash,log_index order by log_event_index desc) = 1
)
,
desc_data as (
select
block_timestamp,
tx_hash,
new_owner_id as wallet,
amount_raw,
token_id
from near.defi.fact_intents
where log_event = 'mt_transfer'
and RECEIPT_SUCCEEDED
qualify row_number () over (partition by tx_hash,log_index order by log_event_index asc) = 1
)
, token_info as (
select *
from $query('de634327-a737-4973-b3a5-c2953320b93c')
)
,
combine as (
select
a.block_timestamp,
a.tx_hash,
a.wallet,
a.amount_raw as amount_raw_in,
QueryRunArchived: QueryRun has been archived