<p>For the above example, you would run:</p>
<p><code>cardano-cli transaction txid --tx-file matx.signed</code></p>
<p>If instead of inspecting a signed transaction you wish to inspect a transaction body / unsigned draft, it would look similar:</p>
<p><code>cardano-cli transaction txid --tx-body-file tx.draft</code></p>
<p>The Txid will be printed to <code>stdout</code></p>

CC BY-SA 4.0
2022-01-21T01:42:05.657Z
2022-01-21T01:42:05.657Z
zhekson
<p>It's possible to submit transactions using cardano cli. Here is an example (assumes you have gone through the steps to build the tx):</p>
<pre><code>cardano-cli transaction submit --tx-file matx.signed --mainnet
</code></pre>
<p>I would like to follow up on the transaction after submitting. For that I need the transaction ID. Is there a way to derive or otherwise programatically figure out the transaction Id of a tx created in this manner?</p>

<cardano-cli>
Figure out transaction id after submitting using cardano cli
# Figure out transaction id after submitting using cardano cli

(Asked by: username_0 on 2022-01-21)

It's possible to submit transactions using cardano cli. Here is an example (assumes you have gone through the steps to build the tx):
cardano-cli transaction submit --tx-file matx.signed --mainnet

I would like to follow up on the transaction after submitting. For that I need the transaction ID. Is there a way to derive or otherwise programatically figure out the transaction Id of a tx created in this manner?

**Tags:** cardano-cli

---

## 1 answers

### Answer by username_1 on 2022-01-21. Score: 5 | Accepted answer

For the above example, you would run:

`cardano-cli transaction txid --tx-file matx.signed`

If instead of inspecting a signed transaction you wish to inspect a transaction body / unsigned draft, it would look similar:

`cardano-cli transaction txid --tx-body-file tx.draft`

The Txid will be printed to `stdout`


---

