[#PreCheckEphemeralTx] = PreCheckEphemeralTx :mrdocs: Called for each transaction once transaction fees are known. Does context‐less checks about a single transaction. == Synopsis Declared in `<policy/ephemeral_policy.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool PreCheckEphemeralTx( xref:CTransaction.adoc[CTransaction] const& tx, xref:CFeeRate.adoc[CFeeRate] dust_relay_rate, xref:CAmount.adoc[CAmount] base_fee, xref:CAmount.adoc[CAmount] mod_fee, xref:TxValidationState.adoc[TxValidationState]& state); ---- == Return Value false if the fee is non‐zero and dust exists, populating state. True otherwise. == Parameters [cols="1,4"] |=== | Name| Description | *tx* | Transaction being checked for ephemeral‐dust compliance. | *dust_relay_rate* | Fee rate used to decide which outputs count as dust. | *base_fee* | Unmodified fee the transaction pays. | *mod_fee* | Fee after any priority modifications applied by the mempool. | *state* | Set with the rejection reason when the check fails. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#