intellidegentMonthly Transactions
    Updated 2023-03-06
    SELECT
    'Arbitrum' as Blockchain,
    date_trunc('month',block_timestamp) as Month,
    count(distinct tx_hash) as Transactions,
    count(distinct to_address) as Addresses,
    Transactions / Addresses as TxPerAddress
    FROM arbitrum.core.fact_transactions
    WHERE date_trunc('month',block_timestamp) >= '2021-01-01'
    AND date_trunc('month',block_timestamp) < '2023-03-01'
    GROUP BY Month
    UNION
    SELECT
    'Avalanche' as Blockchain,
    date_trunc('month',block_timestamp) as Month,
    count(distinct tx_hash) as Transactions,
    count(distinct to_address) as Addresses,
    Transactions / Addresses as TxPerAddress
    FROM avalanche.core.fact_transactions
    WHERE date_trunc('month',block_timestamp) >= '2021-01-01'
    AND date_trunc('month',block_timestamp) < '2023-03-01'
    GROUP BY Month
    UNION
    SELECT
    'Binance' as Blockchain,
    date_trunc('month',block_timestamp) as Month,
    count(distinct tx_hash) as Transactions,
    count(distinct to_address) as Addresses,
    Transactions / Addresses as TxPerAddress
    FROM bsc.core.fact_transactions
    WHERE date_trunc('month',block_timestamp) >= '2021-01-01'
    AND date_trunc('month',block_timestamp) < '2023-03-01'
    GROUP BY Month
    UNION
    SELECT
    'Ethereum' as Blockchain,
    date_trunc('month',block_timestamp) as Month,
    Run a query to Download Data