[#CTxMemPool-ChangeSet-StageAddition]
= xref:CTxMemPool.adoc[CTxMemPool]::xref:CTxMemPool/ChangeSet.adoc[ChangeSet]::StageAddition
:relfileprefix: ../../
:mrdocs:

Stage a transaction for addition to the mempool&period;

== Synopsis

Declared in `&lt;txmempool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CTxMemPool/ChangeSet/TxHandle.adoc[TxHandle]
StageAddition(
    xref:CTransactionRef.adoc[CTransactionRef] const& tx,
    xref:CAmount.adoc[CAmount] fee,
    int64&lowbar;t time,
    unsigned int entry&lowbar;height,
    uint64&lowbar;t entry&lowbar;sequence,
    bool spends&lowbar;coinbase,
    int64&lowbar;t sigops&lowbar;cost,
    xref:LockPoints.adoc[LockPoints] lp);
----

== Return Value

A handle to the staged transaction&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The transaction to add&period;
| *fee*
| The base fee of the transaction&period;
| *time*
| The time the transaction entered the mempool&period;
| *entry&lowbar;height*
| The block height at entry&period;
| *entry&lowbar;sequence*
| The mempool sequence number at entry&period;
| *spends&lowbar;coinbase*
| Whether the transaction spends a coinbase output&period;
| *sigops&lowbar;cost*
| The sigop cost of the transaction&period;
| *lp*
| The LockPoints of the transaction&period;
|===


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