@pythnetwork/pyth-sui-js
Version:
Pyth Network Sui Utilities
14 lines • 818 B
TypeScript
import { PriceServiceConnection, HexString } from "@pythnetwork/price-service-client";
import { Buffer } from "buffer";
export declare class SuiPriceServiceConnection extends PriceServiceConnection {
/**
* 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[]>;
}
//# sourceMappingURL=SuiPriceServiceConnection.d.ts.map