PrevUpHomeNext

calculateBaseFee

Compute only the expected base fee for a transaction.

Synopsis
std::uint64_t
calculateBaseFee(
    Application& app,
    ReadView const& view,
    STTx const& tx,
    beast::Journal j);
Description

Base fees are transaction specific, so any calculation needing them must get the base fee for each transaction.

No validation is done or implied by this function.

Caller is responsible for handling any exceptions. Since none should be thrown, that will usually mean terminating.

Parameters

Name

Description

app

The current running Application.

view

The current open ledger.

tx

The transaction to be checked.

j

A journal.

Return Value

The base fee.

Header

#include <ripple/app/tx/applySteps.h>


PrevUpHomeNext