elsinaDaily activity
    Updated 4 days ago
    with price as (
    select
    date_trunc('day', hour) as date,
    avg(price) as price_usd
    from crosschain.price.ez_prices_hourly
    where
    blockchain = 'ethereum' and
    token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
    group by 1
    ),

    base as (
    SELECT
    e.block_timestamp,
    e.origin_from_address,
    e.tx_hash,
    value as amount,
    amount * price_usd as amount_usd,
    tx_fee,
    utils.udf_hex_to_string(substring(data, 129)) AS domain_name
    from ink.core.fact_event_logs e left join ink.core.fact_transactions t on e.tx_hash = t.tx_hash left join price on e.block_timestamp::date = date
    where
    e.tx_succeeded = TRUE and
    topics[0] = '0x53946bf984072f5888fcb2d7d2b0587c8efeb9187d958f21809711cf00b4b4a5' and
    origin_to_address = '0xfb2cd41a8aec89efbb19575c6c48d872ce97a0a5'
    )


    SELECT
    date_trunc('day', block_timestamp) as date,
    count(DISTINCT origin_from_address) as user_count,
    count(DISTINCT tx_hash) as tx_count,
    sum(amount) as total_volume_eth,
    sum(amount_usd) as total_volume_usd,
    avg(amount) as avg_tx_volume_eth,
    Last run: 4 days ago
    DATE
    USER_COUNT
    TX_COUNT
    TOTAL_VOLUME_ETH
    TOTAL_VOLUME_USD
    AVG_TX_VOLUME_ETH
    AVG_TX_VOLUME_USD
    TOTAL_FEE
    AVG_FEE
    1
    2025-04-16 00:00:00.00014140.0472501936574.7313590890.0033750138325.3379542210.00071852806770.00005132343341
    2
    2025-04-12 00:00:00.00020200.0699070488111.9488857960.003495352445.597444290.00073701474550.00003685073728
    3
    2025-01-24 00:00:00.0004244240.58449562471965.4620055540.0013785274174.6355235980.023938257410.00005645815428
    4
    2025-02-26 00:00:00.0001191200.2219031758540.9023977420.0018491931324.5075199810.0016032521520.0000133604346
    5
    2025-03-12 00:00:00.00059590.1123336174212.6989302750.0019039596163.6050666150.0029936111460.00005073917196
    6
    2025-03-07 00:00:00.0001381390.2471445081539.0793244060.0017780180443.8782685210.012354996390.00008888486614
    7
    2025-02-05 00:00:00.0001761770.3369481022929.4307658790.0019036615955.2510212760.0072681252180.00004106285434
    8
    2025-01-28 00:00:00.000128712911.7235184725470.1395507250.0013196925514.1884682620.07851651470.00006011984281
    9
    2025-01-18 00:00:00.000214921492.9206434329732.7509546470.0013590709314.5289674060.12248020260.00005699404495
    10
    2025-04-04 00:00:00.00075760.2076878389374.7159372580.0027327347224.9304728590.0069739471650.0000917624627
    11
    2025-01-08 00:00:00.0001602240.2247989276751.970958780.0010035666413.3570132090.0037440676720.00001671458782
    12
    2025-01-07 00:00:00.0001912040.2636984745947.9399800120.0012863340224.6240974630.0057371488080.00002798609175
    13
    2025-03-02 00:00:00.0001421420.2673261348611.9368120530.0018825784144.3094141690.003170706770.00002232892092
    14
    2025-02-16 00:00:00.0003783780.7443485672006.5404320680.0019691761035.3083080210.036036376030.00009533432813
    15
    2025-03-22 00:00:00.00054540.1231603408244.6451878390.0022807470524.5304664410.0015527417020.00002875447596
    16
    2025-01-10 00:00:00.00076760.1029490617336.3286219840.0013545929174.4253766050.0099703699030.0001311890777
    17
    2025-03-04 00:00:00.0002002010.3663826491772.563002840.0018227992493.8435970290.014535284580.00007231484863
    18
    2025-04-18 00:00:00.00014140.0478311386575.8681577590.0034165099045.4191541260.00077067205270.00005504800376
    19
    2025-03-17 00:00:00.00043430.100116189191.3431032950.0023282834654.4498396120.0086428663210.0002009968912
    20
    2024-12-18 00:00:00.00038390.06045576408232.4950593720.0015501477975.9614117790.00074648993360.00001914076753
    ...
    126
    15KB
    11s