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>='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>='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>='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>='2022-01-01'
group by 1