# Interpretation of OK on the command completion stream

**URL:** <https://forum.canton.network/t/interpretation-of-ok-on-the-command-completion-stream/1082>\
**Category:** App Development\
**Created:** [August 21, 2020, 1:05pm UTC](https://forum.canton.network/t/interpretation-of-ok-on-the-command-completion-stream/1082 "2020-08-21T13:05:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![georg](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/georg/32/368_2.png) [@georg](https://forum.canton.network/u/georg)\
**Post date:** [August 21, 2020, 1:05pm UTC](https://forum.canton.network/t/interpretation-of-ok-on-the-command-completion-stream/1082/1 "2020-08-21T13:05:56Z")

</div>

In a distributed setup, does an OK response on the completion stream mean that the transaction has successfully committed to the network (ie. consensus has happened)? Or does it merely indicate that the command as been successfully validated _on my node_ and has been _submitted_ to the network for committing?

---

<div class="post-metadata">

**Author:** ![stefanobaghino-da](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stefanobaghino-da/32/7057_2.png) [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Post date:** [August 21, 2020, 1:21pm UTC](https://forum.canton.network/t/interpretation-of-ok-on-the-command-completion-stream/1082/2 "2020-08-21T13:21:09Z")

</div>

The latter, it means that the command has been validated and executed on the local participant node. A transaction is produced, sent to the ledger for the distributed commit and once the participant receives an update on its status the completion service will tell you the actual outcome.

---

<div class="post-metadata">

**Author:** ![georg](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/georg/32/368_2.png) [@georg](https://forum.canton.network/u/georg)\
**Post date:** [August 21, 2020, 1:23pm UTC](https://forum.canton.network/t/interpretation-of-ok-on-the-command-completion-stream/1082/3 "2020-08-21T13:23:12Z")

</div>

So I first get an OK upon successful _submission_ and then again OK upon successful transaction commit? Or do they have different status? I thought only one success response is produced per submitted command.

---

<div class="post-metadata">

**Author:** ![stefanobaghino-da](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stefanobaghino-da/32/7057_2.png) [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Post date:** [August 21, 2020, 1:24pm UTC](https://forum.canton.network/t/interpretation-of-ok-on-the-command-completion-stream/1082/4 "2020-08-21T13:24:03Z")

</div>

You have a successful result coming back from the submission service and you can observe the successful commit on the completion service.

---

<div class="post-metadata">

**Author:** ![stefanobaghino-da](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stefanobaghino-da/32/7057_2.png) [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Post date:** [August 21, 2020, 1:24pm UTC](https://forum.canton.network/t/interpretation-of-ok-on-the-command-completion-stream/1082/5 "2020-08-21T13:24:49Z")

</div>

At least in the happy path, a successful submission of course does not imply a successful completion. 😃

---

<div class="post-metadata">

**Author:** ![georg](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/georg/32/368_2.png) [@georg](https://forum.canton.network/u/georg)\
**Post date:** [August 21, 2020, 1:25pm UTC](https://forum.canton.network/t/interpretation-of-ok-on-the-command-completion-stream/1082/6 "2020-08-21T13:25:28Z")

</div>

Ok I see. So as per my original question (I specifically ask about the completion stream), the answer is actual the former: an OK on the command _completion_ means the transaction has been committed.

---

<div class="post-metadata">

**Author:** ![stefanobaghino-da](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stefanobaghino-da/32/7057_2.png) [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Post date:** [August 21, 2020, 1:27pm UTC](https://forum.canton.network/t/interpretation-of-ok-on-the-command-completion-stream/1082/7 "2020-08-21T13:27:33Z")

</div>

Exactly, that’s why I added the detail that to observe a successful commit you have to track the outcome of the command via the completion service.
