permaryFee Type Distribution Over Time
    Updated 2025-03-13
    with fee_data as (
    select
    date_trunc('week', t.closed_at) as week,
    sum(t.inclusion_fee_charged/10000000.0 * p.price) as inclusion_fees_usd,
    sum(t.resource_fee/10000000.0 * p.price) as resource_fees_usd,
    sum(t.resource_fee_refund/10000000.0 * p.price) as resource_fee_refund_usd,
    sum(t.non_refundable_resource_fee_charged/10000000.0 * p.price) as non_refundable_fees_usd,
    sum(t.refundable_resource_fee_charged/10000000.0 * p.price) as refundable_resource_fees_usd,
    sum(t.rent_fee_charged/10000000.0 * p.price) as rent_fees_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 >= date_trunc('month', current_date) - interval '12 months'
    group by week
    )
    select
    week,
    round(inclusion_fees_usd, 2) as inclusion_fees_usd,
    round(resource_fees_usd, 2) as resource_fees_usd,
    round(resource_fee_refund_usd, 2) as resource_fee_refund_usd,
    round(non_refundable_fees_usd, 2) as non_refundable_fees_usd,
    round(refundable_resource_fees_usd, 2) as refundable_resource_fees_usd,
    round(rent_fees_usd, 2) as rent_fees_usd
    from fee_data
    order by week desc;
    Last run: about 1 month ago
    WEEK
    INCLUSION_FEES_USD
    RESOURCE_FEES_USD
    RESOURCE_FEE_REFUND_USD
    NON_REFUNDABLE_FEES_USD
    REFUNDABLE_RESOURCE_FEES_USD
    RENT_FEES_USD
    1
    2025-03-10 00:00:00.0004.054654.851553.192581.34520.32496.96
    2
    2025-03-03 00:00:00.0004.76954.842582.83498.93873.08838.26
    3
    2025-02-24 00:00:00.00013698.131672.81434.14591.18565.94
    4
    2025-02-17 00:00:00.00023367.361715.321030.54621.5607.45
    5
    2025-02-10 00:00:00.00023.743727.931798.271273.4656.26638.3
    6
    2025-02-03 00:00:00.000236.133698.691728.131311.03659.54631.04
    7
    2025-01-27 00:00:00.00017.884146.852046.091308.57792.2767.01
    8
    2025-01-20 00:00:00.0000.994739.372308.021289.911141.451122.08
    9
    2025-01-13 00:00:00.0000.954104.822280.821220.41603.58584.19
    10
    2025-01-06 00:00:00.0001.034488.532227.651192.721068.151050.06
    11
    2024-12-30 00:00:00.0001.093791.972079.31271.53441.13423.88
    12
    2024-12-23 00:00:00.0001.043215.351828.221008.32378.81368.29
    13
    2024-12-16 00:00:00.0001.423927.422145.761315.54466.12450.27
    14
    2024-12-09 00:00:00.0000.433208.482100.71620.35487.43476.43
    15
    2024-12-02 00:00:00.0000.353536.152189.77663.79682.6668.97
    16
    2024-11-25 00:00:00.0000.554191.652338.18921.16932.32913.07
    17
    2024-11-18 00:00:00.0000.423152.581603.65830.57718.36697.22
    18
    2024-11-11 00:00:00.0000.141471.52852.3289.51329.72323.05
    19
    2024-11-04 00:00:00.0000.03797.7523.1571.69202.86201.92
    20
    2024-10-28 00:00:00.0000.01577.11396.4444.89135.79135.24
    55
    4KB
    52s