Previously had a PriceUpdateV2 account derived from the feed id (using default shardId of 0) is 6ZmtBYrQKfYLQ163KhpaAz3JW5ALAVpkLYWthcBSFvgC, but this account is not initialized on devnet, until I called addUpdatePriceFeed once. Now that it’s initialized, do I just prepend addPostPriceUpdates in my transactions?
gm,
This is a great question.
addUpdatePriceFeed is meant to update the price feed accounts, these are accounts at fixed addresses that contain the freshest update for each price feed.
addPostPriceUpdates instead posts a price update to an ephemeral account, it is meant to be used when you want a specific price update from any time in the past.
So, in the flow you are describing, I think you should only use addUpdatePriceFeed.