soroban_env_host::fees

Function compute_write_fee_per_1kb

Source
pub fn compute_write_fee_per_1kb(
    bucket_list_size_bytes: i64,
    fee_config: &WriteFeeConfiguration,
) -> i64
Expand description

Computes the effective write fee per 1 KB of data written to ledger.

The computed fee should be used in fee configuration for compute_transaction_resource_fee function.

This depends only on the current ledger (more specifically, bucket list) size.