datavortexNear Total
    Updated 2025-06-04
    WITH total_seconds AS (
    SELECT
    365 * 24 * 60 * 60 AS total_seconds_in_2025
    ),
    NEARPrice AS (
    SELECT
    AVG(price) AS near_price
    FROM
    near.price.ez_prices_hourly
    WHERE
    symbol = 'NEAR'
    AND hour >= '2025-01-01'
    AND hour <= '2025-12-31'
    ),
    transaction_metrics AS (
    SELECT
    COUNT(DISTINCT tx_hash) AS total_transactions,
    COUNT(DISTINCT tx_signer) AS active_users,
    SUM(transaction_fee) / POW(10, 24) AS total_gas,
    AVG(transaction_fee) / POW(10, 24) AS avg_transaction_fee,
    COUNT(DISTINCT tx_hash) / (365 * 24 * 60 * 60) AS avg_transactions_per_second,
    SUM(transaction_fee) / COUNT(DISTINCT tx_hash) / POW(10, 24) AS avg_gas_fee_per_transaction,
    SUM(transaction_fee) / COUNT(DISTINCT tx_signer) / POW(10, 24) AS avg_gas_spent_per_user
    FROM
    near.core.fact_transactions
    WHERE
    block_timestamp >= '2025-01-01'
    AND block_timestamp <= '2025-12-31'
    AND tx_succeeded = TRUE
    ),
    gas_conversion AS (
    SELECT
    tm.total_transactions,
    tm.active_users,
    tm.total_gas,
    tm.avg_transaction_fee,
    Last run: 12 days ago
    TOTAL_TRANSACTIONS
    ACTIVE_USERS
    TOTAL_GAS
    AVG_TRANSACTION_FEE
    AVG_TRANSACTIONS_PER_SECOND
    AVG_GAS_FEE_PER_TRANSACTION
    AVG_GAS_SPENT_PER_USER
    TOTAL_GAS_IN_USD
    AVG_TRANSACTION_FEE_IN_USD
    AVG_GAS_FEE_PER_TRANSACTION_IN_USD
    AVG_GAS_SPENT_PER_USER_IN_USD
    1
    98069721718081907614251.5280245930.000626341665331.0977050.00062634166530.033970505881999104.249244190.0020384520470.0020384520470.1105582641
    1
    155B
    129s