> **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

Transaction status endpoints

## Look up a transaction

`GET /admin/transaction-status/{txHash}`

Combine the RPC denial ledger, submission receipts, and live chain state into one verdict for a transaction hash

### Path parameters

- `txHash` `string` _(required)_: Hash of the transaction to look up.

### Responses

#### `200`: Default Response

Body (`application/json`):

- `verdict` `string` _(required)_: Outcome for the hash: `mined` (included and executed), `reverted` (included and reverted), `pending` (waiting for a block), `nonce_gap` (accepted and unknown to the node, with the next nonce of the sender below this one), `dropped_after_acceptance` (accepted and unknown to the node, with the next nonce of the sender at or past this one), `denied` (refused by the Prividium API or the policy engine), `rejected_on_submission` (rejected by the sequencer), `throttled_on_submission` (turned away by the sequencer rate limiter), or `never_reached` (no chain record and no ledger row).
- `checkedAt` `string <date-time>` _(required)_: Time the verdict was computed.
- `evidence` `object` _(required)_: Records the verdict was computed from.
  - `denial` `object` _(required)_: Recorded permission denial for the hash, or null when there is none.
    - `id` `string` _(required)_: Unique ID of the denial row.
    - `origin` `string` _(required)_: Where the refusal happened: `rpc` for the main RPC endpoint, `rpc_wallet` for the per-user wallet RPC URL, or `admit` for the sequencer admission check (contract permissions, plus Policy rules when that module is on).
    - `rpcMethod` `string` _(required)_: JSON-RPC method that was refused, or `admit` for a refusal at the sequencer admission check.
    - `txHash` `string` _(required)_: Hash of the refused transaction, or null for an admission-check refusal that carried none.
    - `targetAddress` `string` _(required)_: Address the refused transaction was sent to, or null when it has none.
    - `actorType` `string` _(required)_: Kind of caller: `user` for a user session, `m2m_app` for an M2M application, `tenant` for a legacy Tenant API key, or `anonymous` for an unauthenticated call.
    - `actorId` `string | null` _(required)_: ID of the caller, or null when unknown.
    - `organizationId` `string | null` _(required)_: Organization ID of the caller, or null when unknown.
    - `ip` `string | null` _(required)_: IP address of the caller, or null when unknown.
    - `reason` `string | null` _(required)_: Reason given for the refusal.
    - `ruleId` `string | null` _(required)_: ID of the rule that refused the call, or null when the refusal names no rule.
    - `requestId` `string | null` _(required)_: Request ID of the refused call.
    - `traceId` `string | null` _(required)_: Trace ID of the refused call, or null when none was recorded.
    - `count` `integer` _(required)_: Number of times this transaction hash was refused.
    - `lastSeenAt` `string <date-time>` _(required)_: Time of the most recent refusal of this transaction hash.
    - `createdAt` `string <date-time>` _(required)_: Time of the first refusal of this transaction hash.
  - `receipt` `object` _(required)_: Recorded submission receipt for the hash, or null when there is none.
    - `id` `string` _(required)_: Unique ID of the receipt row.
    - `txHash` `string` _(required)_: Hash of the forwarded transaction.
    - `senderAddress` `string` _(required)_: Address that signed the transaction.
    - `nonce` `integer` _(required)_: Nonce of the transaction.
    - `outcome` `string` _(required)_: Sequencer answer to the latest submission: `accepted`, `rejected`, or `throttled` when its rate limiter turned the transaction away.
    - `rejectionCode` `integer` _(required)_: Error code the node returned for a `rejected` or `throttled` submission, or null when accepted or when the node gave none.
    - `count` `integer` _(required)_: Number of times this transaction hash was submitted.
    - `lastSeenAt` `string <date-time>` _(required)_: Time of the most recent submission of this transaction hash.
    - `organizationId` `string | null` _(required)_: Organization ID of the submitter, or null when unknown.
    - `actorType` `string` _(required)_: Kind of submitter: `user` for a user session, `m2m_app` for an M2M application, `tenant` for a legacy Tenant API key, or `anonymous` for an unauthenticated call.
    - `actorId` `string | null` _(required)_: ID of the submitter, or null when unknown.
    - `requestId` `string | null` _(required)_: Request ID of the submission.
    - `traceId` `string | null` _(required)_: Trace ID of the submission, or null when none was recorded.
    - `createdAt` `string <date-time>` _(required)_: Time of the first submission of this transaction hash.
  - `chain` `object` _(required)_: Live chain state for the hash.
    - `found` `boolean` _(required)_: Whether the node knows the transaction.
    - `blockNumber` `string` _(required)_: Block that includes the transaction, or null when it is not in a block.
    - `status` `string` _(required)_: Execution result from the receipt, `success` or `reverted`, or null when the node has no receipt.
  - `nonce` `object` _(required)_: Nonce comparison for an accepted submission the node no longer knows, or null when it does not apply.
    - `onChain` `integer` _(required)_: Next nonce of the sender at the `latest` block.
    - `submitted` `integer` _(required)_: Nonce of the accepted submission.

#### `401`: Default Response

Body (`application/json`):

- `error` `object` _(required)_: Details of the error.
  - `code` `string` _(required)_: A machine-readable error code.
  - `message` `string` _(required)_: A human-readable description of the error.
  - `issues` `unknown[]`: Validation issues, present when the request failed validation.

#### `403`: Default Response

Body (`application/json`):

- `error` `object` _(required)_: Details of the error.
  - `code` `string` _(required)_: A machine-readable error code.
  - `message` `string` _(required)_: A human-readable description of the error.
  - `issues` `unknown[]`: Validation issues, present when the request failed validation.

### Example request

```bash
curl /api/admin/transaction-status/string
```

```ts
fetch('/api/admin/transaction-status/string')
```

## List RPC denials

`GET /admin/rpc-denials`

List recorded RPC permission denials with pagination and filtering

### Query parameters

- `txHash` `string`: Return only the denial for this transaction hash.
- `address` `string`: Return only denials of transactions sent to this address.
- `userId` `string`: Return only denials of calls made by this user.
- `m2mAppId` `string`: Return only denials of calls made by this M2M application.
- `from` `unknown`: Return only denials created at or after this time.
- `to` `unknown`: Return only denials created at or before this time.
- `limit` `integer`: The maximum number of items to return.
- `offset` `integer`: The number of items to skip before the first returned item.

### Responses

#### `200`: Default Response

Body (`application/json`):

- `items` `object[]` _(required)_: The items on this page.
  - `id` `string` _(required)_: Unique ID of the denial row.
  - `origin` `string` _(required)_: Where the refusal happened: `rpc` for the main RPC endpoint, `rpc_wallet` for the per-user wallet RPC URL, or `admit` for the sequencer admission check (contract permissions, plus Policy rules when that module is on).
  - `rpcMethod` `string` _(required)_: JSON-RPC method that was refused, or `admit` for a refusal at the sequencer admission check.
  - `txHash` `string` _(required)_: Hash of the refused transaction, or null for an admission-check refusal that carried none.
  - `targetAddress` `string` _(required)_: Address the refused transaction was sent to, or null when it has none.
  - `actorType` `string` _(required)_: Kind of caller: `user` for a user session, `m2m_app` for an M2M application, `tenant` for a legacy Tenant API key, or `anonymous` for an unauthenticated call.
  - `actorId` `string | null` _(required)_: ID of the caller, or null when unknown.
  - `organizationId` `string | null` _(required)_: Organization ID of the caller, or null when unknown.
  - `ip` `string | null` _(required)_: IP address of the caller, or null when unknown.
  - `reason` `string | null` _(required)_: Reason given for the refusal.
  - `ruleId` `string | null` _(required)_: ID of the rule that refused the call, or null when the refusal names no rule.
  - `requestId` `string | null` _(required)_: Request ID of the refused call.
  - `traceId` `string | null` _(required)_: Trace ID of the refused call, or null when none was recorded.
  - `count` `integer` _(required)_: Number of times this transaction hash was refused.
  - `lastSeenAt` `string <date-time>` _(required)_: Time of the most recent refusal of this transaction hash.
  - `createdAt` `string <date-time>` _(required)_: Time of the first refusal of this transaction hash.
- `pagination` `object` _(required)_: Paging details for the result.
  - `currentPage` `number` _(required)_: The 1-based number of this page.
  - `totalPages` `number` _(required)_: The number of pages at the current limit.
  - `totalItems` `number` _(required)_: The number of items that match the query across all pages.
  - `limit` `number` _(required)_: The maximum number of items per page.
  - `offset` `number` _(required)_: The number of items skipped before this page.

#### `401`: Default Response

Body (`application/json`):

- `error` `object` _(required)_: Details of the error.
  - `code` `string` _(required)_: A machine-readable error code.
  - `message` `string` _(required)_: A human-readable description of the error.
  - `issues` `unknown[]`: Validation issues, present when the request failed validation.

#### `403`: Default Response

Body (`application/json`):

- `error` `object` _(required)_: Details of the error.
  - `code` `string` _(required)_: A machine-readable error code.
  - `message` `string` _(required)_: A human-readable description of the error.
  - `issues` `unknown[]`: Validation issues, present when the request failed validation.

### Example request

```bash
curl '/api/admin/rpc-denials?txHash=string&address=string&userId=string&m2mAppId=string&from=from&to=to&limit=50&offset=0'
```

```ts
fetch('/api/admin/rpc-denials?txHash=string&address=string&userId=string&m2mAppId=string&from=from&to=to&limit=50&offset=0')
```
