Module pyth_solana_receiver_sdk::price_update
source · Structs§
- A Pyth price. The actual price is
(price ± conf)* 10^exponent.publish_timemay be used to check the recency of the price. - A price update account. This account is used by the Pyth Receiver program to store a verified price update from a Pyth price feed. It contains:
Enums§
- Pyth price updates are bridged to all blockchains via Wormhole. Using the price updates on another chain requires verifying the signatures of the Wormhole guardians. The usual process is to check the signatures for two thirds of the total number of guardians, but this can be cumbersome on Solana because of the transaction size limits, so we also allow for partial verification.
Functions§
- Get a
FeedIdfrom a hex string.