UNPKG

@pythnetwork/client

Version:

Client for consuming Pyth price data

7 lines (6 loc) 475 B
import { Cluster, PublicKey } from '@solana/web3.js'; export declare type PythCluster = Cluster | 'pythtest-conformance' | 'pythnet' | 'localnet' | 'pythtest-crosschain'; /** Gets the public key of the Pyth program running on the given cluster. */ export declare function getPythProgramKeyForCluster(cluster: PythCluster): PublicKey; /** Retrieves the RPC API URL for the specified Pyth cluster */ export declare function getPythClusterApiUrl(cluster: PythCluster): string;