[#PrivateBroadcast-PickTxForSend] = xref:PrivateBroadcast.adoc[PrivateBroadcast]::PickTxForSend :relfileprefix: ../ :mrdocs: Pick the transaction with the fewest send attempts, and confirmations, and oldest send/confirm times. == Synopsis Declared in `<private_broadcast.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e376845a8), requires_capability(0x7f2e219d1b28), requires_capability(0x7f2e1ac64d58)]] std::optional<CTransactionRef> PickTxForSend( xref:NodeId-08.adoc[NodeId] const& will_send_to_nodeid, xref:CService.adoc[CService] const& will_send_to_address); ---- == Return Value Most urgent transaction or nullopt if there are no transactions with send attempts remaining. == Parameters [cols="1,4"] |=== | Name| Description | *will_send_to_nodeid* [in] | Will remember that the returned transaction was picked for sending to this node. Calling this method more than once with the same `will_send_to_nodeid` is not allowed because sending more than one transaction to one node would be a privacy leak. | *will_send_to_address* [in] | Address of the peer to which this transaction will be sent. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#