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

# Quickstart

> Analyze your first Solana transaction

## Analyze a confirmed transaction

Get a full analysis of any mainnet transaction:

```bash theme={null}
opendev tx 4W8cbHAkjJC3jKdFY39JFXtTakf5JK9rz6jyGPbbpKEqhweRYzwjveZasFin46WuApDeLoQRHieG3t5b3T7VXMRR --network mainnet
```

Output includes:

* Compute units used
* CPI call tree (cross-program invocations)
* Account state diffs
* AI-generated optimization suggestions (if configured)
* Rule-based insights

***

## Output formats

### Full analysis as JSON

Pipe into `jq`, save to file, process programmatically:

```bash theme={null}
opendev tx <signature> --json
```

### CSV report

Save structured data for spreadsheets or databases:

```bash theme={null}
opendev tx <signature> --csv --output report.csv
```

***

## Batch processing

Analyze multiple transactions from a JSON file:

```bash theme={null}
opendev batch ./signatures.json --csv --output batch-report.csv
```

<Note>
  Before running batch commands, you'll need a `signatures.json` file. The repo ships with a sample at the root. If you installed only via npm/curl, grab it:

  ```bash theme={null}
  curl -O https://raw.githubusercontent.com/OpenSubmissionn/Open_DevTool/main/signatures.json
  ```

  Schema: `{ "network": "mainnet", "signatures": ["...", "..."] }`
</Note>

***

## Simulate unsigned transactions

Test transactions without on-chain confirmation:

### From a base64 blob

```bash theme={null}
opendev simulate <base64-blob>
```

### From a file

```bash theme={null}
opendev simulate ./sample-tx.b64
```

### From source code

<Tabs>
  <Tab title="TypeScript">
    ```bash theme={null}
    opendev simulate ./build_tx.ts --network devnet
    ```

    Runs `npx -y tsx build_tx.ts` and uses the last base64 output line.
  </Tab>

  <Tab title="Rust">
    ```bash theme={null}
    opendev simulate ./build_tx.rs    # runs `cargo run --release`
    opendev simulate ./my-rust-proj   # directory with Cargo.toml
    ```
  </Tab>

  <Tab title="JavaScript">
    ```bash theme={null}
    opendev simulate ./build_tx.js --network devnet
    ```

    Runs `node build_tx.js` and uses the last base64 output line.
  </Tab>
</Tabs>

<Warning>
  By default, `opendev simulate` executes user-provided scripts. Pass `--no-exec` if you want to refuse source-file input (useful in CI).
</Warning>

***

## Get program info

See which programs are supported and decoder coverage:

```bash theme={null}
opendev info
```

Shows:

* Registered programs
* Decoder availability
* Coverage status

***

## Next steps

<Columns cols={2}>
  <Card title="CLI Commands" icon="terminal" href="cli-commands">
    Complete reference for all commands and options
  </Card>

  <Card title="CLI Flags" icon="sliders" href="cli-flags">
    All available flags with descriptions and defaults
  </Card>

  <Card title="Source-file runners" icon="code-merge" href="source-file-runners">
    In-depth guide for running TypeScript, Rust, and JS
  </Card>

  <Card title="AI Insights" icon="sparkles" href="ai-insights">
    Set up AI-powered optimization suggestions
  </Card>
</Columns>
