permarymemo transactions/ cex related transactions
    Updated 5 days ago
    with daily_memos as (
    select
    date(t.closed_at) as date,
    count(*) as total_memo_txs,
    count(case when successful = true then 1 end) as successful_memo_txs,
    count(distinct account) as unique_accounts,
    avg(t.fee_charged / 10000000.0 * p.price) as avg_fee_charged_usd -- converting from stroops to xlm and then to usd
    from stellar.core.fact_transactions t
    left join stellar.price.ez_prices_hourly p
    on date_trunc('hour', t.closed_at) = p.hour
    and p.symbol = 'xlm'
    and p.blockchain = 'stellar'
    where
    t.closed_at >= dateadd(month, -12, current_date)
    and t.memo is not null
    group by date
    )

    select
    date,
    total_memo_txs,
    successful_memo_txs,
    unique_accounts,
    round(avg_fee_charged_usd, 6) as avg_fee_charged_usd,
    round(successful_memo_txs * 100.0 / total_memo_txs, 2) as success_rate
    from daily_memos
    order by date desc;

    Last run: 5 days ago
    DATE
    TOTAL_MEMO_TXS
    SUCCESSFUL_MEMO_TXS
    UNIQUE_ACCOUNTS
    AVG_FEE_CHARGED_USD
    SUCCESS_RATE
    1
    2025-03-13 00:00:00.00017839549752315910854.67
    2
    2025-03-12 00:00:00.000398075320610467566651.78
    3
    2025-03-11 00:00:00.000439290919275977840043.88
    4
    2025-03-10 00:00:00.000474157420911358451544.1
    5
    2025-03-09 00:00:00.000405917019217547355247.34
    6
    2025-03-08 00:00:00.000330926518978968315457.35
    7
    2025-03-07 00:00:00.000432885819767148322645.66
    8
    2025-03-06 00:00:00.000383274218970788230449.5
    9
    2025-03-05 00:00:00.000395110320098578104050.87
    10
    2025-03-04 00:00:00.000414743019758178348347.64
    11
    2025-03-03 00:00:00.000438157618784088903842.87
    12
    2025-03-02 00:00:00.000418220817542858740141.95
    13
    2025-03-01 00:00:00.000335946516817328848850.06
    14
    2025-02-28 00:00:00.000416927018273808103443.83
    15
    2025-02-27 00:00:00.000324367417608268014854.28
    16
    2025-02-26 00:00:00.000377567018581487856649.21
    17
    2025-02-25 00:00:00.000499992619918879315139.84
    18
    2025-02-24 00:00:00.000414654318131628151743.73
    19
    2025-02-23 00:00:00.000352694515488427822843.91
    20
    2025-02-22 00:00:00.000355220215809297321244.51
    ...
    366
    22KB
    64s