@pythnetwork/pyth-sui-js
Version:
Pyth Network Sui Utilities
15 lines (14 loc) • 793 B
TypeScript
import { Buffer } from "node:buffer";
import type { HexString } from "@pythnetwork/hermes-client";
import { HermesClient } from "@pythnetwork/hermes-client";
export declare class SuiPriceServiceConnection extends HermesClient {
/**
* Gets price update data (either batch price attestation VAAs or accumulator messages, depending on the chosen endpoint), which then
* can be submitted to the Pyth contract to update the prices. This will throw an axios error if there is a network problem or
* the price service returns a non-ok response (e.g: Invalid price ids)
*
* @param priceIds - Array of hex-encoded price ids.
* @returns Array of buffers containing the price update data.
*/
getPriceFeedsUpdateData(priceIds: HexString[]): Promise<Buffer[]>;
}