mmdrezaEclipse bridge to
    Updated 2025-02-13
    WITH tab AS (
    SELECT
    DATE_TRUNC('day', hour) AS date,
    AVG(price) AS avg_price
    FROM
    crosschain.price.ez_prices_hourly
    WHERE
    token_address = '7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs'
    GROUP BY
    1
    order by 1 ASC
    )
    SELECT
    DATE_TRUNC('day', t.block_timestamp) AS date,
    COUNT(t.tx_hash) AS briged_tx,
    COUNT(DISTINCT t.from_address) AS users,
    SUM(t.value) AS ETH,
    AVG(t.value) AS average_briged,
    SUM(t.value * p.avg_price) AS total_usd,
    AVG(t.value * p.avg_price) AS average_usd
    FROM
    ethereum.core.fact_transactions t
    LEFT JOIN
    tab p
    ON
    DATE_TRUNC('day', t.block_timestamp) = p.date
    WHERE
    t.to_address = LOWER('0x2b08d7cf7eaff0f5f6623d9fb09b080726d4be11')
    GROUP BY
    1
    ORDER BY
    1 ASC;

    Last run: about 2 months ago
    DATE
    BRIGED_TX
    USERS
    ETH
    AVERAGE_BRIGED
    TOTAL_USD
    AVERAGE_USD
    1
    2024-11-05 00:00:00.00081575945.7835617370.05617614937111355.599145546136.632636988
    2
    2024-11-06 00:00:00.000226212176.19581610.7796275049457937.4777691492026.272025527
    3
    2024-11-07 00:00:00.000452422470.30032621.0404874471328521.605795052939.207092467
    4
    2024-11-08 00:00:00.00078970287.3282190120.1106821534255102.320095664323.323599614
    5
    2024-11-09 00:00:00.0001549142283.1973450.0537103583251665.590161883162.46971605
    6
    2024-11-10 00:00:00.0001269116875.7450182110.05968874564241079.38189694189.975872259
    7
    2024-11-11 00:00:00.0001184112183.7091405980.07070028767269137.757302937227.312295019
    8
    2024-11-12 00:00:00.000316276140.63656870.4450524326465475.9265561751473.025084039
    9
    2024-11-13 00:00:00.00018916621.7477945940.115067696370066.908699233370.724384652
    10
    2024-11-14 00:00:00.00019317822.3529062830.115818167370903.670199872367.376529533
    11
    2024-11-15 00:00:00.000555500156.8271690020.2825714757480924.628189843866.530861603
    12
    2024-11-16 00:00:00.0001485136675.3235425310.05072292426235940.891069735158.882754929
    13
    2024-11-17 00:00:00.00022172145115.071796340.05190428342356934.780225084160.998998748
    14
    2024-11-18 00:00:00.0001104102969.7311659910.06316228804217342.572577233196.868272262
    15
    2024-11-19 00:00:00.00092488141.739035410.04517211624130585.094009021141.325859317
    16
    2024-11-20 00:00:00.00062557247.4226765760.07587628252146935.982099516235.097571359
    17
    2024-11-21 00:00:00.00091287456.6754885110.062144176181527.339039095199.043134911
    18
    2024-11-22 00:00:00.00098791980.9389839870.08200504963270071.569763519273.628743428
    19
    2024-11-23 00:00:00.00084580276.269303930.09025953128257822.629958694305.115538413
    20
    2024-11-24 00:00:00.00014821424129.1033971490.08711430307435880.987384657294.116725631
    ...
    101
    9KB
    25s