> ## Documentation Index
> Fetch the complete documentation index at: https://prism-ddf93e61.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# decode_error

> Core API for Tier 1 diagnostics.

```rust theme={null}
pub async fn decode_error(
    result_xdr: &str,
    network: &NetworkConfig
) -> Result<DiagnosticReport, PrismError>
```

Given a transaction result XDR, this function:

* Classifies the error category.
* Enriches the error with taxonomy data.
* Returns a structured report suitable for UI rendering.
