jackguyUntitled Query
    Updated 2023-06-25
    WITH ethereum as (
    SELECT
    'Ethereum' as chain,
    COUNT(DISTINCT tx_hash) as transactions,
    count(DISTINCT FROM_ADDRESS) as active_wallets
    FROM ethereum.core.fact_transactions
    WHERE block_timestamp > CURRENT_DATE - 1
    GROUP BY 1
    ), solana as (
    SELECT
    'Solana' as cahin,
    COUNT(DISTINCT tx_id) as transactions,
    COUNT(DISTINCT signers[0]) as active_wallets
    FROM solana.core.fact_transactions
    WHERE block_timestamp > CURRENT_DATE - 1
    GROUP BY 1
    ), polygon as (
    SELECT
    'Polygon' as chain,
    COUNT(DISTINCT tx_hash) as transactions,
    count(DISTINCT FROM_ADDRESS) as active_wallets
    FROM polygon.core.fact_transactions
    WHERE block_timestamp > CURRENT_DATE - 1
    GROUP BY 1
    ), avalanche as (
    SELECT
    'Avalanche' as chain,
    COUNT(DISTINCT tx_hash) as transactions,
    count(DISTINCT FROM_ADDRESS) as active_wallets
    FROM avalanche.core.fact_transactions
    WHERE block_timestamp > CURRENT_DATE - 1
    GROUP BY 1
    ), cosmos as (
    SELECT
    'Cosmos' as chain,
    COUNT(DISTINCT tx_id) as transactions,
    Run a query to Download Data