[#node-TxBroadcast]
= xref:node.adoc[node]::TxBroadcast
:relfileprefix: ../
:mrdocs:

How to broadcast a local transaction&period; Used to influence `BroadcastTransaction()` and its callers&period;

== Synopsis

Declared in `&lt;node&sol;types&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum class TxBroadcast : uint8&lowbar;t;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `MEMPOOL&lowbar;AND&lowbar;BROADCAST&lowbar;TO&lowbar;ALL` 
| Add the transaction to the mempool and broadcast to all peers for which tx relay is enabled&period;
| `MEMPOOL&lowbar;NO&lowbar;BROADCAST` 
| Add the transaction to the mempool, but don&apos;t broadcast to anybody&period;
| `NO&lowbar;MEMPOOL&lowbar;PRIVATE&lowbar;BROADCAST` 
| Omit the mempool and directly send the transaction via a few dedicated connections to peers on privacy networks&period;
|===



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