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

# prism decode

> Decode a transaction failure and identify the root cause.

The `decode` command is the entry point for most debugging sessions. It provides Tier 1 diagnostics.

## Usage

```bash theme={null}
prism decode <TX_HASH> [FLAGS]
```

## Flags

| Flag            | Description                                                                  |
| --------------- | ---------------------------------------------------------------------------- |
| `--network`     | Specify the network (`mainnet`, `testnet`, `futurenet`). Default: `testnet`. |
| `--rpc-url`     | Use a custom Soroban RPC endpoint.                                           |
| `--raw`         | Decode a raw error string from logs instead of a transaction hash.           |
| `--output json` | Output the diagnostic report in JSON format.                                 |

## Example

<CodeGroup>
  ```bash Terminal theme={null}
  prism decode d5c3... --network mainnet
  ```
</CodeGroup>

**Output:**

```text theme={null}
✔ Transaction Fetched
✔ Error Classified: Contract
✔ Custom Error Resolved: InsufficientBalance
✔ Source: MyContract.rs:124
```
