NodeContext struct containing references to chain state and connection state.
NODISCARD TransactionError BroadcastTransaction(NodeContext &node, const Config &config, CTransactionRef tx, std::string &err_string, Amount max_tx_fee, bool relay, bool wait_callback)
Submit a transaction to the mempool and (optionally) relay it to all P2P peers.