PrevUpHomeNext

preclaim

Gate a transaction based on static ledger information.

Synopsis
PreclaimResult
preclaim(
    PreflightResult const& preflightResult,
    Application& app,
    OpenView const& view);
Description

The transaction is checked against all possible validity constraints that DO require a ledger.

If preclaim succeeds, then the transaction is very likely to claim a fee. This will determine if the transaction is safe to relay without being applied to the open ledger.

"Succeeds" in this case is defined as returning a tes or tec, since both lead to claiming a fee.

The transaction has been checked and validated using preflight

Parameters

Name

Description

preflightResult

The result of a previous call to preflight for the transaction.

app

The current running Application.

view

The open ledger that the transaction will attempt to be applied to.

See Also

PreclaimResult, preflight, doApply, apply

Return Value

A PreclaimResult object containing, among other things the TER code and the base fee value for this transaction.

Header

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


PrevUpHomeNext