freemartianStablecoins Bridged to Linea
    Updated 2025-01-17
    WITH
    ethereum AS(
    SELECT
    block_timestamp::date AS day,
    count(DISTINCT from_address) AS wallet_count,
    count(tx_hash) AS transactions,
    sum(raw_amount/pow(10,6)) AS amount_usd,
    'Ethereum' AS from_chain
    FROM ethereum.core.fact_token_transfers
    WHERE to_address IN ('0x41d3d33156ae7c62c094aae2995003ae63f587b3','0xd7aa9ba6caac7b0436c91396f22ca5a7f31664fc','0x095D2918B03b2e86D68551DCF11302121fb626c9')
    AND RIGHT (raw_amount,4) = 9023
    AND block_timestamp::date > '2023-07-01'
    GROUP BY 1, from_chain
    ),
    optimism AS(
    SELECT
    block_timestamp::date AS day,
    count(DISTINCT from_address) AS wallet_count,
    count(tx_hash) AS transactions,
    sum(raw_amount/pow(10,6)) AS amount_usd,
    'Optimism' AS from_chain
    FROM optimism.core.fact_token_transfers
    WHERE to_address IN ('0x41d3d33156ae7c62c094aae2995003ae63f587b3','0xd7aa9ba6caac7b0436c91396f22ca5a7f31664fc','0x095D2918B03b2e86D68551DCF11302121fb626c9')
    AND RIGHT (raw_amount,4) = 9023
    AND block_timestamp::date > '2023-07-01'
    GROUP BY 1, from_chain
    ),
    arbitrum AS (
    SELECT
    block_timestamp::date AS day,
    count(DISTINCT from_address) AS wallet_count,
    count(tx_hash) AS transactions,
    sum(raw_amount/pow(10,6)) AS amount_usd,
    'Arbitrum' AS from_chain
    FROM arbitrum.core.fact_token_transfers
    WHERE to_address IN ('0x41d3d33156ae7c62c094aae2995003ae63f587b3','0xd7aa9ba6caac7b0436c91396f22ca5a7f31664fc','0x095D2918B03b2e86D68551DCF11302121fb626c9')
    QueryRunArchived: QueryRun has been archived