sendTxids function

List<String> sendTxids(
  1. List<TxSubmitResult> results
)

The transaction ids in results, in order — every arm that HAS one, not only the accepted ones. A tx that got no verdict (grpcFailure), was rejected from the mempool (submitFailure), or was never attempted still EXISTS: it is signed, persisted, and re-broadcast by the resubmission machinery, so a host must be able to cite it. The forward-compat TxSubmitResult.unknown arm carries no id and contributes none — which is why a caller checks for emptiness rather than assuming one id per result. Pure + total.

Implementation

List<String> sendTxids(List<TxSubmitResult> results) => [
  for (final result in results)
    if (_txidOf(result) case final String txid) txid,
];