iota_grpc_types/
headers.rs

1// Copyright (c) Mysten Labs, Inc.
2// Modifications Copyright (c) 2025 IOTA Stiftung
3// SPDX-License-Identifier: Apache-2.0
4
5/// Chain ID of the current chain
6pub const X_IOTA_CHAIN_ID: &str = "x-iota-chain-id";
7
8/// Chain name of the current chain
9pub const X_IOTA_CHAIN: &str = "x-iota-chain";
10
11/// Current checkpoint height
12pub const X_IOTA_CHECKPOINT_HEIGHT: &str = "x-iota-checkpoint-height";
13
14/// Lowest available checkpoint for which transaction and checkpoint data can be
15/// requested.
16///
17/// Specifically this is the lowest checkpoint for which the following data can
18/// be requested:
19///  - checkpoints
20///  - transactions
21///  - effects
22///  - events
23pub const X_IOTA_LOWEST_AVAILABLE_CHECKPOINT: &str = "x-iota-lowest-available-checkpoint";
24
25/// Lowest available checkpoint for which object data can be requested.
26///
27/// Specifically this is the lowest checkpoint for which input/output object
28/// data will be available.
29pub const X_IOTA_LOWEST_AVAILABLE_CHECKPOINT_OBJECTS: &str =
30    "x-iota-lowest-available-checkpoint-objects";
31
32/// Current epoch of the chain
33pub const X_IOTA_EPOCH: &str = "x-iota-epoch";
34
35/// Current timestamp of the chain - represented as number of milliseconds from
36/// the Unix epoch
37pub const X_IOTA_TIMESTAMP_MS: &str = "x-iota-timestamp-ms";
38
39/// Current timestamp of the chain - encoded in the [RFC 3339] format.
40///
41/// [RFC 3339]: https://www.ietf.org/rfc/rfc3339.txt
42pub const X_IOTA_TIMESTAMP: &str = "x-iota-timestamp";
43
44/// Server version string
45pub const X_IOTA_SERVER: &str = "x-iota-server";