Module fees

Source

Structs§

FeeConfiguration
Fee-related network configuration.
LedgerEntryRentChange
Change in a single ledger entry with parameters relevant for rent fee computations.
RentFeeConfiguration
Rent fee-related network configuration.
TransactionResources
These are the resource upper bounds specified by the Soroban transaction.
WriteFeeConfiguration
Network configuration used to determine the ledger write fee.

Constants§

DATA_SIZE_1KB_INCREMENT
INSTRUCTIONS_INCREMENT
MINIMUM_WRITE_FEE_PER_1KB
TTL_ENTRY_SIZE
Estimate for any TtlEntry ledger entry
TX_BASE_RESULT_SIZE
This module defines the fee computation protocol for Soroban.

Functions§

compute_rent_fee
Computes the total rent-related fee for the provided ledger entry changes.
compute_transaction_resource_fee
Computes the resource fee for a transaction based on the resource consumption and the fee-related network configuration.
compute_write_fee_per_1kb
Computes the effective write fee per 1 KB of data written to ledger.