Updated 2023-06-24
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 01 @ https://flipsidecrypto.xyz/edit/queries/bb68fbcc-21c9-4e37-a8ee-0206ecfa73f6
with
horizon AS
(
SELECT
a.signer_id AS address
FROM
near.horizon.fact_decoded_actions a
WHERE
a.method_name = 'add_project'
)
,
od AS
(
SELECT
b.address AS address
, count( DISTINCT a.tx_hash ) AS transaction
FROM
near.core.fact_transactions a
JOIN
horizon b
ON a.tx_receiver = b.address
WHERE
a.block_timestamp::date >= dateadd( 'month' , -24 , current_date )
GROUP BY
1
ORDER BY
2 DESC LIMIT 10
)
SELECT
date_trunc( '{{period}}' , a.block_timestamp ) AS date
, split_part( b.address , '.' , 1 ) AS projects
Run a query to Download Data