[#wallet-CWallet-SubmitTxMemoryPoolAndRelay] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::SubmitTxMemoryPoolAndRelay :relfileprefix: ../../ :mrdocs: Pass this transaction to node for optional mempool insertion and relay to peers. == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f94fde05758), requires_capability(0x7f95061a8498), requires_capability(0x7f94f2b78fa8), requires_capability(0x7f94f0cf7c38), requires_capability(0x7f94fee3a628)]] bool SubmitTxMemoryPoolAndRelay( xref:wallet/CWalletTx.adoc[CWalletTx]& wtx, std::string& err_string, xref:node/TxBroadcast.adoc[node::TxBroadcast] broadcast_method) const; ---- == Return Value true if the transaction was accepted for broadcast. == Parameters [cols="1,4"] |=== | Name| Description | *wtx* | The wallet transaction to submit. | *err_string* | Set to an error message on failure. | *broadcast_method* | How the transaction should be broadcast. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#