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

# Exit Queue Latest

> Latest metrics for Ethereum beacon chain validator exit queue

The `beacon.validator.exit_queue_latest` model provides the estimated epoch and timestamp where a validator is expected to exit.

This model is derived from `beacon.validator.balances_latest` and is updated approximately every 30 minutes. The state of the validator will indicate which epoch it is expected to exit and available for withdrawal.

## Schema

| Column Name             | Type      | Description                                                                                                        |
| ----------------------- | --------- | ------------------------------------------------------------------------------------------------------------------ |
| status                  | string    | Current status of the validator.                                                                                   |
| validator\_index        | integer   | Unique index of the validator.                                                                                     |
| pubkey                  | string    | The validator's BLS public key, uniquely identifying them. 48-bytes, hex encoded with 0x prefix, case insensitive. |
| exit\_epoch             | integer   | Epoch when validator exited.                                                                                       |
| exit\_timestamp         | timestamp | Timestamp when validator exited.                                                                                   |
| hours\_to\_exit         | numeric   | Estimated time in hours to exit based on the current time at the time of querying the data.                        |
| withdrawable\_epoch     | integer   | Epoch when validator can withdraw.                                                                                 |
| withdrawable\_timestamp | timestamp | Timestamp when validator can withdraw.                                                                             |
| hours\_to\_withdraw     | numeric   | Estimated time in hours to withdraw based on the current time at the time of querying the data.                    |
| balance                 | numeric   | Balance of the validator.                                                                                          |
| effective\_balance      | numeric   | Effective balance of the validator.                                                                                |
| withdrawal\_credentials | string    | It’s a 32-byte field in each validator’s record that specifies the withdrawal destination and type.                |
| w                       |           |                                                                                                                    |

## Example Query

This query shows the estimated exit timestamp and hours to exit for a given validator.

```sql theme={null}
SELECT
  pubkey,
  exit_epoch,
  hours_to_exit,
  exit_timestamp,
  datediff('hours', current_timestamp, exit_timestamp) as hours_to_exit
FROM beacon.validator.exit_queue_latest
WHERE pubkey in ('') -- Insert validator pubkey here
```
