> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://docs.prividium.com/api/mcp` to find what you need.
>
> **Have feedback?** Use `submit_feedback` on the same MCP server.

Transaction Status tells a zone operator what happened to a transaction a user says they sent. A transaction the Prividium API refuses never reaches the chain, and one the sequencer drops leaves no trace
on it. The module keeps a short-lived ledger of both cases and combines it with live chain state into one verdict per
transaction hash.

## What the module records

The Prividium API writes two kinds of rows while it serves RPC traffic.

| Record             | Written when                                                                                                                                             |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| RPC denial         | The Prividium API refuses a call that carries a signed transaction, or the sequencer's admission check refuses a transaction                             |
| Submission receipt | The Prividium API forwards a signed transaction to the sequencer and records its answer: `accepted`, `rejected`, or `throttled` (rate limited, `-32005`) |

On the two RPC origins, a denial is recorded only when a transaction hash can be read from the call, so refused read
calls never appear. Each denial row carries an origin: `rpc` for the main RPC endpoint, `rpc_wallet` for the per-user
wallet RPC URL, and `admit` for a refusal at the sequencer's admission check: contract permissions, plus
[Policy](/configuring/chain/policy) rules when that module is on. An `admit` row can have no hash. It shows in **Recent
denials**, and a lookup by hash cannot find it. Denials from wallet-ownership rules, such as
`wallet.not_owned_by_user` and `deploy.address_not_owned`, are skipped.
Anyone holding a copy of another user's signed transaction can trigger those, and recording them would misreport the
transaction's status.

A hash refused or submitted more than once keeps one row, and the row's `count` goes up. On a denial, `lastSeenAt` moves
forward, while the actor and reason stay those of the first refusal. On a receipt, a repeat by the same caller replaces
the outcome, rejection code, request ID and trace ID with the latest values, and a repeat by another caller only raises
`count`. A submission that was throttled and then accepted therefore follows the accepted path. Every write is best
effort. It runs after the response is built, and a ledger failure never fails the caller's request.

## Enabling the module

The module is off by default. Set the flag on the Prividium API. The Admin Panel needs no build flag.

| Variable                                    | Set on        | Default                        | Purpose                                                     |
| ------------------------------------------- | ------------- | ------------------------------ | ----------------------------------------------------------- |
| `TRANSACTION_STATUS_API_ENABLED`            | Prividium API | `false`                        | Records denials and receipts and mounts the lookup routes   |
| `TRANSACTION_STATUS_RETENTION_SECONDS`      | Prividium API | `1209600` (14 days)            | Age after which ledger rows are deleted                     |
| `TRANSACTION_STATUS_SWEEP_INTERVAL_SECONDS` | Prividium API | `3600`                         | How often the retention sweep runs                          |
| `TRANSACTION_STATUS_MAX_ROWS`               | Prividium API | `1000000`                      | Row cap per table, enforced by the sweep                    |
| `TRANSACTION_STATUS_MIGRATIONS_DIR`         | Prividium API | `./drizzle-transaction-status` | Migration journal for the ledger tables, applied at startup |

With `TRANSACTION_STATUS_API_ENABLED` off, the routes are never registered and answer `404`. With it on, the Prividium
API lists `transaction-status` in the `features` array of `GET /api/info`, and the Admin Panel shows the **Transaction
Status** page.

## Access

Both routes require a signed-in user whose zone-level roles grant Admin View Access (`admin_read`). The built-in `admin`
role qualifies, and so does a zone viewer. Organization admins are refused, because organization-scoped `admin_read`
does not satisfy the check, and M2M applications are refused because the routes accept user sessions only. The Admin
Panel shows the page at the zone level only.

Reads are not filtered by organization. A zone operator sees denials and receipts for every organization in the zone.

## Verdicts

A lookup returns one `verdict`. The chain's answer takes precedence over the ledger, so a transaction that was denied
once and later mined reports `mined`.

| Verdict                    | Source | Meaning                                                                                                          |
| -------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------- |
| `mined`                    | Chain  | Included in a block and executed successfully                                                                    |
| `reverted`                 | Chain  | Included in a block, and execution reverted                                                                      |
| `pending`                  | Chain  | Known to the node and waiting for a block                                                                        |
| `nonce_gap`                | Chain  | Accepted by the sequencer and unknown to the node now. The sender's next nonce is below this transaction's       |
| `dropped_after_acceptance` | Chain  | Accepted by the sequencer and unknown to the node now. The sender's next nonce is at or above this transaction's |
| `denied`                   | Ledger | Refused by the Prividium API or the policy engine. It never reached the chain                                    |
| `rejected_on_submission`   | Ledger | Passed the permission check, and the sequencer rejected it                                                       |
| `throttled_on_submission`  | Ledger | Passed the permission check, and the sequencer's rate limiter turned it away. It can be resubmitted              |
| `never_reached`            | Ledger | No chain record and no ledger row. The hash was not sent through Prividium, or its rows have expired             |

The verdict is computed on every lookup, in this order:

```mermaid
flowchart TD
  A[Lookup by hash] --> B{Receipt on chain?}
  B -- status success --> M[mined]
  B -- status reverted --> R[reverted]
  B -- no --> C{Transaction known to node?}
  C -- yes --> P[pending]
  C -- no --> D{Accepted submission receipt?}
  D -- "yes, next nonce below submitted" --> N[nonce_gap]
  D -- "yes, next nonce at or above submitted" --> X[dropped_after_acceptance]
  D -- no --> E{Denial row?}
  E -- yes --> DN[denied]
  E -- no --> F{Receipt outcome}
  F -- rejected --> RJ[rejected_on_submission]
  F -- throttled --> T[throttled_on_submission]
  F -- none --> NR[never_reached]
```

The `nonce_gap` and `dropped_after_acceptance` checks read the sender's nonce at the `latest` block. The response
returns that value with the submitted nonce in `evidence.nonce`.

## Using the Admin Panel

Open **Transaction Status** from the **Modules** group in the sidebar. The page has two tabs.

**Look up a transaction** takes a transaction hash and shows the verdict with its evidence: the permission denial and an
explanation of its rule, the submission receipt with sender, nonce, organization, and request ID, the chain state with
block number, and the nonce comparison when one applies. A receipt's trace ID links to the matching entries in **Audit
Logs**.

**Recent denials** lists recorded denials, newest first, with the time last seen, origin, actor, rule, and repeat count.
Filter by M2M application ID, transaction hash, target address, user ID, or a time range. **Details** opens the full
denial row.

## API at a glance

| Method | Path                                     | Returns                                               |
| ------ | ---------------------------------------- | ----------------------------------------------------- |
| `GET`  | `/api/admin/transaction-status/{txHash}` | The verdict, `checkedAt`, and its `evidence`          |
| `GET`  | `/api/admin/rpc-denials`                 | A paginated list of denials, newest first by creation |

`/api/admin/rpc-denials` accepts `txHash`, `address` (target contract), `userId`, `m2mAppId`, `from`, and `to` (ISO
timestamps on the creation time), plus `limit` (default `50`, maximum `1000`) and `offset`.

```bash
curl "http://localhost:8000/api/admin/transaction-status/0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060" \
  -H "Authorization: Bearer <TOKEN>"
```

Example response for a transaction the Prividium API refused:

```json
{
  "verdict": "denied",
  "checkedAt": "2026-11-17T10:42:03.512Z",
  "evidence": {
    "denial": {
      "origin": "rpc",
      "rpcMethod": "eth_sendRawTransaction",
      "actorType": "user",
      "ruleId": "permission.missing",
      "reason": "Forbidden",
      "count": 2,
      "lastSeenAt": "2026-11-17T10:40:18.004Z"
    },
    "receipt": null,
    "chain": { "found": false, "blockNumber": null, "status": null },
    "nonce": null
  }
}
```

The `denial` object above is trimmed. The full field list is in the
[Transaction Status API reference](/api-reference/transaction-status-api).

## Retention

A background sweep runs every `TRANSACTION_STATUS_SWEEP_INTERVAL_SECONDS`. It deletes denials not seen within
`TRANSACTION_STATUS_RETENTION_SECONDS` and receipts created before that window, then deletes the oldest rows of each
table beyond `TRANSACTION_STATUS_MAX_ROWS`. A lookup for an expired hash returns `never_reached` unless the chain still
knows the transaction. Ledger writes create no audit log entries.
