[#PrivateBroadcast-GetTxForNode]
= xref:PrivateBroadcast.adoc[PrivateBroadcast]::GetTxForNode
:relfileprefix: ../
:mrdocs:

Get the transaction that was picked for sending to a given node by PickTxForSend()&period;

== Synopsis

Declared in `&lt;private&lowbar;broadcast&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e376846e8), requires&lowbar;capability(0x7f2e219d1c68), requires&lowbar;capability(0x7f2e1ac64e98)&rsqb;&rsqb;
std::optional&lt;CTransactionRef&gt;
GetTxForNode(xref:NodeId-08.adoc[NodeId] const& nodeid);
----

== Return Value

Transaction or nullopt if the nodeid is unknown&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *nodeid* [in]
| Node to which a transaction is being (or was) sent&period;
|===


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