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

> Export a transaction as a standalone test case.

The `export` command helps you turn a mainnet failure into a reproducible regression test.

## Usage

```bash theme={null}
prism export <TX_HASH> --format test
```

## Formats

* **`test`**: Generates a Rust unit test using the `soroban-sdk` test framework.
* **`json`**: Exports the full reconstructed state and inputs for custom tools.
* **`trace`**: Saves the Tier 2 execution timeline as a shareable file.
