ben-wyattArbitrum-tx-value-graph
    Updated 2025-01-27
    -- grabs transactions, joins on hourly price data
    -- "Large" transactions are > $100k
    -- Make sure to check what the token of account for the fact_transactions.value column is.
    WITH transaction_data AS (
    SELECT
    value as native_value,
    block_timestamp,
    DATE_TRUNC('hour', block_timestamp) AS rounded_hour,
    from_address
    FROM
    arbitrum.core.fact_transactions
    WHERE
    block_timestamp BETWEEN '2022-01-01' AND '2024-12-31 23:59:59' AND
    native_value < 1e14
    ),
    price_data AS (
    SELECT
    symbol,
    price,
    hour
    FROM
    arbitrum.price.ez_prices_hourly
    WHERE
    symbol = 'ETH' and
    hour BETWEEN '2022-01-01' AND '2024-12-31 23:59:59'
    ),
    transactions_with_prices AS (
    SELECT
    t.native_value,
    t.rounded_hour,
    t.from_address,
    p.price,
    t.native_value * COALESCE(p.price, 0) AS usd_value,
    DATE_TRUNC('month', t.rounded_hour) AS rounded_month,
    CASE
    WHEN t.native_value * COALESCE(p.price, 0) > 100000 THEN 'Large'
    Last run: 3 months ago
    TRANSACTION_MONTH
    TRANSACTION_SIZE
    TX_VALUE_USD
    TX_VALUE_NATIVE
    TX_COUNT
    UNIQUE_USERS
    1
    2022-01-01 00:00:00.000Large2130834260.24664729024.98248515548981705
    2
    2022-01-01 00:00:00.000Small1730559522.03207602053.652970543120633668628
    3
    2022-02-01 00:00:00.000Large1979468180.43834702615.75529927738041058
    4
    2022-02-01 00:00:00.000Small948049473.823102331054.757809297201762391542
    5
    2022-03-01 00:00:00.000Large1189461766.52702404324.5182056363103829
    6
    2022-03-01 00:00:00.000Small641170842.610179221225.1584067732009257120451
    7
    2022-04-01 00:00:00.000Large1246576760.49906392186.0541846493022880
    8
    2022-04-01 00:00:00.000Small730950343.533068236409.0818687762084173188627
    9
    2022-05-01 00:00:00.000Large883281017.266717386781.8741345172112631
    10
    2022-05-01 00:00:00.000Small724575319.065822325495.4355570252747621214035
    11
    2022-06-01 00:00:00.000Large6209428788.251965537188.140089541701387
    12
    2022-06-01 00:00:00.000Small536069308.048349406371.7836842754068063325571
    13
    2022-07-01 00:00:00.000Large688589163.406365481089.332050831425383
    14
    2022-07-01 00:00:00.000Small415289903.729734304009.0841680622688597305302
    15
    2022-08-01 00:00:00.000Large5659608833.650923649659.548625641876549
    16
    2022-08-01 00:00:00.000Small590895151.706185345589.1335228553569088312019
    17
    2022-09-01 00:00:00.000Large4858358054.078733324625.967959492390909
    18
    2022-09-01 00:00:00.000Small614508264.661311407191.04675697511127243402004
    19
    2022-10-01 00:00:00.000Large540821584.95776388249.4818683581715584
    20
    2022-10-01 00:00:00.000Small608130358.216867433636.14586032914746614523440
    72
    6KB
    90s