adriaparcerisasflow retention part 2
Updated 2022-12-19
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
›
⌄
WITH
solana_txs as (
SELECT
trunc(block_timestamp,'month') as date,
count(distinct signers[0]) as sol_users,
sum(1) as sol_transactions
from solana.core.fact_transactions
where block_timestamp>= current_date - INTERVAL '1 YEAR' and block_timestamp>='2022-01-01'
group by 1
),
ethereum_txs as (
SELECT
trunc(block_timestamp,'month') as date,
count(distinct from_address) as eth_users,
count(distinct tx_hash) as eth_transactions
from ethereum.core.fact_transactions
where block_timestamp>= current_date - INTERVAL '1 YEAR' and block_timestamp>='2022-01-01'
group by 1
),
terra_txs as (
SELECT
trunc(block_timestamp,'month') as date,
count(distinct tx_sender) as terra_users,
count(distinct tx_id) as terra_transactions
from terra.core.fact_transactions
where block_timestamp>= current_date - INTERVAL '1 YEAR' and block_timestamp>='2022-01-01'
group by 1
),
flow_txs as (
SELECT
trunc(block_timestamp,'month') as date,
count(distinct payer) as flow_users,
count(distinct tx_id) as flow_transactions
from flow.core.fact_transactions
where block_timestamp>= current_date - INTERVAL '1 YEAR' and block_timestamp>='2022-01-01'
group by 1
Run a query to Download Data