[#node-TxBroadcast] = xref:node.adoc[node]::TxBroadcast :relfileprefix: ../ :mrdocs: How to broadcast a local transaction. Used to influence `BroadcastTransaction()` and its callers. == Synopsis Declared in `<node/types.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class TxBroadcast : uint8_t; ---- == Members [cols="1,4"] |=== | Name| Description | `MEMPOOL_AND_BROADCAST_TO_ALL` | Add the transaction to the mempool and broadcast to all peers for which tx relay is enabled. | `MEMPOOL_NO_BROADCAST` | Add the transaction to the mempool, but don't broadcast to anybody. | `NO_MEMPOOL_PRIVATE_BROADCAST` | Omit the mempool and directly send the transaction via a few dedicated connections to peers on privacy networks. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#