[Ethereum] What does it mean to have a failed TxReceipt Status

blockchainether

I realize this is probably a noob question so please forgive me, but what does it mean to have a failed TxReceipt?

So for instance: https://etherscan.io/tx/0x54f66e0c91b380b4779e92a8f0475663aa764f1c196bf98ec35fa5f11e4c0eea

I mean, it's obviously part of the chain, but it implys that because something failed, the value gets reverted? What exactly failed here? Because it certainly deducted the value from the origin address, that sure didn't fail.

Best Answer

In most cases, a failed transaction to a contract address means that some modifier or require(...) did not hold, and therefore the whole transaction was reverted.

If you look closely, the ethers were actually not taken, as it says [CANCELLED].

Actually, by looking at the empty data field of that transaction, I assume this address was calling the default callback function of the contract or that maybe you did not properly called the desired function of the contract, but instead the contract itself, and therefore it failed WITHOUT CHARGING THE SENT ETHERS.

Hope this helped. Try to be more specific if it did not.

Related Topic