<p>The <code>rawtx</code> endpoint has a field <code>block_height</code>. If this field has an integer value, then the transaction was confirmed in the block at that height. If it is <code>null</code>, then the transaction is still unconfirmed. You can use that to know if a transaction is confirmed via the blockchain.info api.</p>

CC BY-SA 4.0
2021-04-24T23:09:39.057Z
2021-04-24T23:09:39.057Z
Ava Chow
<p>I'm using the Blockchain.info API to get info about addresses and transactions.</p>
<p>It seems to me that the transactions (<code>txs</code>) don't indicate if they are confirmed or not.</p>
<p>Is there a way to get this info, directly from the api or indirectly, calculating the status from other values present in the repsonse?</p>

CC BY-SA 4.0
2021-04-24T18:28:09.830Z
I wouldn’t trust blockchain.info, they have quite the history of issues. But the good news is you can run your own node and easily query this information from it :)
chytrik
<blockchain.info>
Blockchain.info: Is there a way to know if a transaction is confirmed or not?
Aerendir
# Blockchain.info: Is there a way to know if a transaction is confirmed or not?

(Asked by: username_0 on 2021-04-24)

I'm using the Blockchain.info API to get info about addresses and transactions.

It seems to me that the transactions (`txs`) don't indicate if they are confirmed or not.

Is there a way to get this info, directly from the api or indirectly, calculating the status from other values present in the repsonse?

**Tags:** blockchain.info

> **Comments:**
> **username_1**: I wouldn’t trust blockchain.info, they have quite the history of issues. But the good news is you can run your own node and easily query this information from it :)  

---

## 1 answers

### Answer by username_2 on 2021-04-24. Score: 3 | Accepted answer

The `rawtx` endpoint has a field `block_height`. If this field has an integer value, then the transaction was confirmed in the block at that height. If it is `null`, then the transaction is still unconfirmed. You can use that to know if a transaction is confirmed via the blockchain.info api.


---

