Explain why a transaction failed
diagnose_transactionLook up a Stellar transaction by hash and get a plain-language explanation of its outcome, decoding failure codes into what went wrong and what to do.
Instructions
Look up a Stellar transaction by hash and explain its outcome in plain language. For failures, decodes the transaction and operation result codes into what actually went wrong and what to do about it. Use this whenever a user asks why a transaction, payment, swap, or contract call failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | The 64-character hex transaction hash to diagnose. | |
| protocol | No | Optional protocol hint used to decode contract-defined error codes, e.g. "blend-v2-pool", "blend-v1-pool", or "soroswap-pair". Needed because permissionless protocols deploy one contract per pool, all sharing one error enum, so the contract address alone cannot identify the protocol. |