> ## 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 Engine

> How Prism translates XDR results into human-readable errors.

The Decode Engine is the core of Tier 1 diagnostics.

## Process

1. **Extraction**: It takes a `TransactionResult` and extracts the specific error variant.
2. **Classification**: Categorizes the error (e.g., `HostError`, `ContractError`).
3. **Enrichment**: Maps the code to the [Error Taxonomy](/concepts/error-taxonomy).
4. **Resolution**: Fetches and parses WASM custom sections to resolve custom contract errors.

## Performance

Designed to complete in \< 2 seconds for a standard mainnet transaction.
