hypersync-client-solana 0.0.1

Rust client for Solana HyperSync
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::collections::BTreeMap;

use arrow::record_batch::RecordBatch;

/// Response from a single query to the HyperSync server.
pub struct QueryResponse {
    /// The next slot to query from (for pagination).
    pub next_slot: u64,
    /// Named Arrow tables (e.g. "blocks", "transactions", "instructions").
    pub data: ArrowResponseData,
    /// Number of bytes in the raw response (for adaptive batch sizing).
    pub response_bytes: usize,
}

/// Arrow record batches keyed by table name.
pub struct ArrowResponseData {
    pub tables: BTreeMap<&'static str, RecordBatch>,
}