SajjadiiiMetrics For All Projects In Aurora Over Time
Updated 2023-08-02
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
›
⌄
-- forked from Overall Metrics In Specified Time Period Grouped By Projects In Aurora @ https://flipsidecrypto.xyz/edit/queries/7424d7f3-f233-4703-bf39-1849e69aa991
with aurora_label AS (
SELECT address
, initcap(label_type) AS label_typee
, initcap(project_name) AS project
, label_typee || ': '||project AS tag
, initcap(address_name )AS contract_details
FROM crosschain.core.address_labels
WHERE BLOCKCHAIN = 'aurora'
),
base_volume_user_tx AS(
SELECT
'User Is From' AS type
,a.block_timestamp
,a.tx_hash
,a.From_address AS user
,address AS label_interact_address
,value AS tx_volume_eth
,project
,label_typee
,NVL(contract_details , 'Not Have Details') AS any_details
FROM aurora.core.fact_transactions a
JOIN aurora_label b
on a.to_address = b.address
WHERE a.From_address NOT IN(SELECT address FROM aurora_label)
UNION
SELECT
'User Is To' AS type
,a.block_timestamp
,a.tx_hash
,a.to_address AS user
,address AS label_interact_address
Run a query to Download Data