KaskoazulQuery 3 - Breakdown of first transactions by type
Updated 2023-01-03
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 airdrop as (
select receiver,
block_timestamp,
transfer_type,
sender,
amount / pow(10,decimal) as amount,
currency,
'OSMO' as asset
from osmosis.core.fact_airdrop
where receiver like 'osmo%'
and tx_succeeded = TRUE
and currency = 'uosmo'
and amount is not NULL
),
osmosis_transfer as (
select ft.receiver,
ft.block_timestamp,
ft.transfer_type,
ft.sender,
ft.amount / pow(10, dt.decimal) as amount,
ft.currency,
coalesce(dt.project_name, 'UNLABELLED') as asset
from osmosis.core.fact_transfers ft
left join osmosis.core.dim_tokens dt
on ft.currency = dt.address
where ft.block_timestamp < '2023-01-02'
and ft.receiver like 'osmo%'
and ft.tx_succeeded = TRUE
and ft.transfer_type = 'OSMOSIS'
and ft.amount is not NULL
),
external_transfer as (
select ft.receiver,
ft.block_timestamp,
Run a query to Download Data