---
title: VersionContext
description: VersionContext selects which logical version of a resource should be
source_url:
  html: https://thru.org/docs/api-ref/grpc/messages/thru/common/v1/version-context/
  md: https://thru.org/docs/api-ref/grpc/messages/thru/common/v1/version-context.md
---

# VersionContext

VersionContext selects which logical version of a resource should be returned. At least one field must be set.

**Package:** `thru.common.v1`

## Fields

| Field | Type | # | Description |
| - | - | - | - |
| `current` | [`CurrentVersion`](https://thru.org/docs/api-ref/grpc/messages/thru/common/v1/current-version.md) | 1 · optional | Request the latest version available at request time. |
| `currentOrHistorical` | [`CurrentOrHistoricalVersion`](https://thru.org/docs/api-ref/grpc/messages/thru/common/v1/current-or-historical-version.md) | 2 · optional | Request the latest version, or historical on. |
| `slot` | `uint64` | 3 · optional | Request the version for a specific slot number. |
| `timestamp` | [`google.protobuf.Timestamp`](https://thru.org/docs/api-ref/grpc/messages/google/protobuf/timestamp.md) | 4 · optional | Request the version nearest to the provided block timestamp. |
| `seq` | `uint64` | 5 · optional | Request the version for a specific seq number. Relevant only for GetAccount and GetRawAccount requests. |
