Documentation
    Preparing search index...

    Function updatePythPriceFeeds

    • Update Pyth price feeds in a transaction

      Fetches the latest price update data from Pyth Network and adds the update operations to the transaction block.

      Parameters

      • tx: Transaction

        The transaction block to add price feed updates to

      • priceFeedIds: string[]

        Array of Pyth price feed IDs to update

      • Optionaloptions: Partial<SuiClientOption & EnvOption>

        Optional client and environment configuration

      Returns Promise<string[]>

      Promise that resolves when price feeds are updated

      Error if failed to update price feeds