[#CTxMemPool-ChangeSet-StageAddition] = xref:CTxMemPool.adoc[CTxMemPool]::xref:CTxMemPool/ChangeSet.adoc[ChangeSet]::StageAddition :relfileprefix: ../../ :mrdocs: Stage a transaction for addition to the mempool. == Synopsis Declared in `<txmempool.h>` [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_t time, unsigned int entry_height, uint64_t entry_sequence, bool spends_coinbase, int64_t sigops_cost, xref:LockPoints.adoc[LockPoints] lp); ---- == Return Value A handle to the staged transaction. == Parameters [cols="1,4"] |=== | Name| Description | *tx* | The transaction to add. | *fee* | The base fee of the transaction. | *time* | The time the transaction entered the mempool. | *entry_height* | The block height at entry. | *entry_sequence* | The mempool sequence number at entry. | *spends_coinbase* | Whether the transaction spends a coinbase output. | *sigops_cost* | The sigop cost of the transaction. | *lp* | The LockPoints of the transaction. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#