I am working with Pyth Price Feeds on the IOTA testnet and trying to get the priceInfo object address for the BTC/USD pair. However, I get the following error when attempting to fetch the price feed:
Error: Price feed 0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43 not found, please create it first
at IotaPythClient.updatePriceFeeds (/some_path_to_project/node_modules/@pythnetwork/pyth-iota-js/lib/client.js:129:23)
Support details:
Chain: IOTA Move VM testnet
Steps to reproduce:
Attempt to fetch BTC/USD priceInfo object address on IOTA testnet using IotaPythClient
So, if I create a price feed myself, will it work fine and give correct prices?
Your code for Sui is unfortunately a bit off, as IOTA is a different blockchain, but if I understand the workflow correctly, I will customize the code for IOTA and expect normal operation
@Pavlo yeah once you create the price info object it will work fine. we do have a special SDK for IOTA and you can use it. You shouldn’t need to change anything. You can see this as an example of how you can use the SDK.