KARTODUnique Addresses, Txs on EVM blockchains
    Updated 2023-09-16

    SELECT
    'Ethereum' AS chain,
    COUNT(distinct TX_HASH) AS txs,
    COUNT(distinct FROM_ADDRESS) AS from_address
    FROM ethereum.core.fact_transactions
    WHERE BLOCK_TIMESTAMP >= DATE_TRUNC('day',CURRENT_DATE()) - interval '90 days'
    AND BLOCK_TIMESTAMP < DATE_TRUNC('day',CURRENT_DATE())

    UNION ALL

    SELECT
    'BSC' AS chain,
    COUNT(distinct TX_HASH) AS txs,
    COUNT(distinct FROM_ADDRESS) AS from_address
    FROM bsc.core.fact_transactions
    WHERE BLOCK_TIMESTAMP >= DATE_TRUNC('day',CURRENT_DATE()) - interval '90 days'
    AND BLOCK_TIMESTAMP < DATE_TRUNC('day',CURRENT_DATE())

    UNION ALL

    SELECT
    'Arbitrum' AS chain,
    COUNT(distinct TX_HASH) AS txs,
    COUNT(distinct FROM_ADDRESS) AS from_address
    FROM arbitrum.core.fact_transactions
    WHERE BLOCK_TIMESTAMP >= DATE_TRUNC('day',CURRENT_DATE()) - interval '90 days'
    AND BLOCK_TIMESTAMP < DATE_TRUNC('day',CURRENT_DATE())

    UNION ALL

    SELECT
    'Avalanche' AS chain,
    COUNT(distinct TX_HASH) AS txs,
    COUNT(distinct FROM_ADDRESS) AS from_address
    FROM avalanche.core.fact_transactions
    Run a query to Download Data