[#PreCheckEphemeralTx]
= PreCheckEphemeralTx
:mrdocs:

Called for each transaction once transaction fees are known&period; Does context&hyphen;less checks about a single transaction&period;

== Synopsis

Declared in `&lt;policy&sol;ephemeral&lowbar;policy&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
PreCheckEphemeralTx(
    xref:CTransaction.adoc[CTransaction] const& tx,
    xref:CFeeRate.adoc[CFeeRate] dust&lowbar;relay&lowbar;rate,
    xref:CAmount.adoc[CAmount] base&lowbar;fee,
    xref:CAmount.adoc[CAmount] mod&lowbar;fee,
    xref:TxValidationState.adoc[TxValidationState]& state);
----

== Return Value

false if the fee is non&hyphen;zero and dust exists, populating state&period; True otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| Transaction being checked for ephemeral&hyphen;dust compliance&period;
| *dust&lowbar;relay&lowbar;rate*
| Fee rate used to decide which outputs count as dust&period;
| *base&lowbar;fee*
| Unmodified fee the transaction pays&period;
| *mod&lowbar;fee*
| Fee after any priority modifications applied by the mempool&period;
| *state*
| Set with the rejection reason when the check fails&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
