Try to add a transaction to the memory pool.

Synopsis

Declared in <validation.h>

[[nodiscard, requires_capability(0x7f2e1bc17b68), requires_capability(0x7f2e146b5eb8), requires_capability(0x7f2e298fb288), requires_capability(0x7f2e360b89e8)]]
MempoolAcceptResult
ProcessTransaction(
    CTransactionRef const& tx,
    bool test_accept = false);

Return Value

a MempoolAcceptResult indicating whether the transaction was accepted or rejected.

Note

The return value should not be discarded.

Parameters

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.

Created with MrDocs