[#ChainstateManager-ProcessTransaction] = xref:ChainstateManager.adoc[ChainstateManager]::ProcessTransaction :relfileprefix: ../ :mrdocs: Try to add a transaction to the memory pool. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard, requires_capability(0x7f9513c47ec8), requires_capability(0x7f9502de9668), requires_capability(0x7f950b21be38), requires_capability(0x7f9514bf5e28)]] xref:MempoolAcceptResult.adoc[MempoolAcceptResult] ProcessTransaction( xref:CTransactionRef.adoc[CTransactionRef] const& tx, bool test_accept = false); ---- == Return Value a MempoolAcceptResult indicating whether the transaction was accepted or rejected. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *tx* [in] | The transaction to submit for mempool acceptance. | *test_accept* [in] | When true, run validation checks but don't submit to mempool. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#