> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kuru.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Reverts Handling

> Public HTTP API for tx revert simulation.

# API

**Base URL:** `https://mm-tx-simulator.aws.kuru.io`

JSON only (`Content-Type: application/json`).

## `GET /tx/{tx_hash}`

`tx_hash`: `0x` + 64 hex characters.

```bash theme={null}
curl -sS "https://mm-tx-simulator.aws.kuru.io/tx/0x05284c16fc1e1bfd2004ff651d6f2c60893bb305e92fe15709229ec08ab3537f"
```

* `200` — `{ "tx_hash", "error", "status" }` where `status` is `simulation_success` or `simulation_failed`
* `400` — bad or missing hash
* `429` — max **1 request per second** (shared across all callers); body has `retry_after_seconds`
* `500` — server error

Other paths → `404` with `{"error": "Not Found"}`.

## `GET /health`

```bash theme={null}
curl -sS "https://mm-tx-simulator.aws.kuru.io/health"
```

* `200` — includes `status` (`healthy` or `unhealthy`), optional `last_tx_hash_scanned`, `last_scanned_at`
* `503` — unhealthy / error (body may include `error`)
