Updated 2025-01-07
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
›
⌄
⌄
/*
SELECT
-- Extract the first part of the payload (event_address)
SPLIT_PART(payload_function, '::', 1) AS event_address,
-- Extract the second part of the payload (event_module)
SPLIT_PART(payload_function, '::', 2) AS event_module,
-- Extract the third part of the payload (event_resource)
SPLIT_PART(payload_function, '::', 3) AS event_resource
FROM aptos.core.fact_events
LIMIT 200;
*/
/*
WITH cex_wallets AS (
SELECT
DISTINCT ADDRESS
FROM
aptos.core.dim_labels
WHERE
LABEL_TYPE = 'cex'
),
user_transactions AS (
SELECT
DISTINCT TO_ADDRESS AS wallet_address
FROM
aptos.core.ez_native_transfers
WHERE
SUCCESS = 'TRUE'
AND FROM_ADDRESS IN (
SELECT
ADDRESS
FROM
cex_wallets
)
QueryRunArchived: QueryRun has been archived