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

# E1804 — Invalid target key epoch

> Invalid target key epoch

# E1804 — Invalid target key epoch

| Property | Value |
| - | - |
| **Code** | `1804` |
| **Slug** | `E1804` |
| **Category** | `watchtower` (Watchtower) |
| **CIP** | CIP-7 |

## What happened

Invalid target key epoch.

This is the receipt's `what` text, produced by the host-call result `HostError::InvalidTargetKeyEpoch`.

## Why it happened

The node rejected the operation with `E1804` (category `watchtower`, Watchtower). The receipt's `why` field carries the specific cause and `context` carries structured details, when the emitter attaches any.

The normative rule is in CIP-7.

## How to fix

Request the current or a future key epoch.

## Receipt example

```json theme={null}
{
  "code": 1804,
  "slug": "E1804",
  "category": "watchtower",
  "what": "invalid target key epoch",
  "fix": "Request the current or a future key epoch.",
  "docs_url": "https://docs.cowboy.inc/errors/E1804"
}
```

***

> [card] [All Error Codes](https://docs.cowboy.inc/errors/overview.md)
>
> View the complete error code reference


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.