Skip to main content

iota_types/api/plugins/
indexer.rs

1// Copyright 2023 IOTA Stiftung
2// SPDX-License-Identifier: Apache-2.0
3
4//! Node indexer responses.
5
6use serde::{Deserialize, Serialize};
7
8/// Response of GET /api/indexer/v1/*
9/// Returns the output_ids for the provided query parameters.
10#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
11pub struct OutputIdsResponse {
12    /// The ledger index at which the outputs were collected
13    #[serde(rename = "ledgerIndex")]
14    pub ledger_index: u32,
15    /// Cursor confirmationMS+outputId.pageSize
16    pub cursor: Option<String>,
17    /// The output ids
18    pub items: Vec<String>,
19}