<p>From a comment on the migrated question on ETH.SE:</p>
<blockquote>
<p>Hi @Murch! I'm asking abound bitcoin ) about block cypher usage ) etherscan I've post as example ) Or bitcoin can't get failed transactions?)</p>
</blockquote>
<p>The only way that transactions in Bitcoin can &quot;fail&quot; is by being replaced with a conflicting transaction that spends some of the same inputs. Each input can only be spent once, so the original transaction would no longer be eligible for inclusion in the blockchain after the conflicting transaction got confirmed. As far as I understand, Ethereum blocks can include transactions that ran out of gas during evaluation i.e. they failed to conclude, but are part of the blockchain. This cannot happen in Bitcoin.</p>

CC BY-SA 4.0
2023-06-02T07:08:38.807Z
How we can check that it failed?  Can block cypher provide this info ? I mean if I had failed transaction and hash, how I can see that transaction failed ? There are no "error" fields in https://www.blockcypher.com/dev/bitcoin/#transaction-hash-endpoint ... Or we can't send it and we got error before sending ? )
Sergey Udalov
CC BY-SA 4.0
2023-06-02T14:17:58.213Z
Are you now talking about a replaced transaction?
Murch
CC BY-SA 4.0
2023-06-02T04:20:30.197Z
2023-06-02T04:20:30.197Z
Murch
<p>At this moment we are developing mobile app and using BlockCypher.
Each completed transaction got 3 states: <code>success</code>/<code>failed</code>/<code>pending</code>.</p>
<p>We using link: <a href="https://www.blockcypher.com/dev/bitcoin/#transaction-hash-endpoint" rel="nofollow noreferrer">https://www.blockcypher.com/dev/bitcoin/#transaction-hash-endpoint</a>
We write <code>success</code> if <code>confirmations</code> more than 2,
<code>pending</code> if &lt;2
But how we can detect <code>failed</code> transactions?
Can't understand which field I can use for it?</p>

CC BY-SA 4.0
2023-06-01T14:17:44.667Z
What would you consider a failure?
Murch
CC BY-SA 4.0
2023-06-01T15:13:35.373Z
Hi @Murch. For example check this hash:
https://etherscan.io/tx/0x75b7ad2401800c85eb2558ae86d284f373e98b7baa0a23381ceebfe6343734c9
it got status failed.
Sergey Udalov
CC BY-SA 4.0
2023-06-01T16:25:52.877Z
Hi Sergey, we only talk about Bitcoin on this site. You will probably get a good answer on the Ethereum Stack Exchange for this topic!
Murch
<blockcypher>
BlockCypher transaction failed status fetch
Sergey Udalov
# BlockCypher transaction failed status fetch

(Asked by: username_0 on 2023-06-01)

At this moment we are developing mobile app and using BlockCypher.
Each completed transaction got 3 states: `success`/`failed`/`pending`.

We using link: <https://www.blockcypher.com/dev/bitcoin/#transaction-hash-endpoint>
We write `success` if `confirmations` more than 2,
`pending` if <2
But how we can detect `failed` transactions?
Can't understand which field I can use for it?

**Tags:** blockcypher

> **Comments:**
> **username_1**: What would you consider a failure?  
> **username_0**: Hi @username_1. For example check this hash: https://etherscan.io/tx/0x75b7ad2401800c85eb2558ae86d284f373e98b7baa0a23381ceebfe6343734c9 it got status failed.  
> **username_1**: Hi username_0, we only talk about Bitcoin on this site. You will probably get a good answer on the Ethereum Stack Exchange for this topic!  

---

## 1 answers

### Answer by username_1 on 2023-06-02. Score: 0

From a comment on the migrated question on ETH.SE:

> Hi @username_1! I'm asking abound bitcoin ) about block cypher usage ) etherscan I've post as example ) Or bitcoin can't get failed transactions?)

The only way that transactions in Bitcoin can "fail" is by being replaced with a conflicting transaction that spends some of the same inputs. Each input can only be spent once, so the original transaction would no longer be eligible for inclusion in the blockchain after the conflicting transaction got confirmed. As far as I understand, Ethereum blocks can include transactions that ran out of gas during evaluation i.e. they failed to conclude, but are part of the blockchain. This cannot happen in Bitcoin.

> **Comments:**
> **username_0**: How we can check that it failed?  Can block cypher provide this info ? I mean if I had failed transaction and hash, how I can see that transaction failed ? There are no "error" fields in https://www.blockcypher.com/dev/bitcoin/#transaction-hash-endpoint ... Or we can't send it and we got error before sending ? )  
> **username_1**: Are you now talking about a replaced transaction?  

---

