> ## 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.

The estimated exit and withdrawable epochs are based on the current churn rate and the validator's position in the exit queue at the time of the snapshot. As with `beacon.validator.entry_queue_latest`, these are approximations: the outputs are expected to vary around +/- 1-2 epochs as churn rate and queue depth change.

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.

### Table Details

| Property     | Value                                |
| ------------ | ------------------------------------ |
| Table Name   | `beacon.validator.exit_queue_latest` |
| Table Status | Production-Ready                     |

### Table Columns

| Column Name             | Data Type         | Description                                                                                                          |
| ----------------------- | ----------------- | -------------------------------------------------------------------------------------------------------------------- |
| status                  | VARCHAR(16777216) | Current status of the validator.                                                                                     |
| validator\_index        | NUMBER(38,0)      | Unique index of the validator.                                                                                       |
| pubkey                  | VARCHAR(16777216) | The validator's BLS public key, uniquely identifying them. 48-bytes, hex encoded with 0x prefix, case insensitive.   |
| exit\_epoch             | VARCHAR(16777216) | Epoch when validator exited.                                                                                         |
| exit\_timestamp         | TIMESTAMP\_NTZ(0) | Timestamp when validator exited.                                                                                     |
| hours\_to\_exit         | NUMBER(25,2)      | Estimated time in hours to exit based on the current time at the time of querying the data.                          |
| withdrawable\_epoch     | VARCHAR(16777216) | Epoch when validator can withdraw.                                                                                   |
| withdrawable\_timestamp | TIMESTAMP\_NTZ(0) | Timestamp when validator can withdraw.                                                                               |
| hours\_to\_withdraw     | NUMBER(25,2)      | Estimated time in hours to withdraw based on the current time at the time of querying the data.                      |
| balance                 | FLOAT             | Balance of the validator.                                                                                            |
| effective\_balance      | FLOAT             | Effective balance of the validator.                                                                                  |
| withdrawal\_credentials | VARCHAR(16777216) | It’s a 32-byte field in each validator’s record that specifies the withdrawal destination and type.                  |
| execution\_optimistic   | BOOLEAN           | Whether the beacon state used for this snapshot was optimistic (not yet fully verified) at the time of the API call. |
| finalized               | BOOLEAN           | Whether the beacon state used for this snapshot was finalized at the time of the API call.                           |
| \_updated\_at           | TIMESTAMP\_NTZ(9) | Timestamp of when the entry was last updated in the database.                                                        |

## 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
```
