-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with using Solana Mainnet, might be about mapping key #56
Comments
Hi thanks for reaching out. I think perhaps the issue is the |
I think probably the best way to proceed here is if you can provide a reproducible code example that causes the error, for example as a Github repository. |
Sorry it took me some time to build a clean and simple repo. Here is it: |
The code hardcodes to using DEVNET solana http endpoint. you need to provide a correct mainnet/testnet endpoint to get into about mainnet accounts, this would solve the issue |
Problem Description
I'm trying to read all price from solana by each time I call the function. When I set
solana_network
withdevnet
, it was working perfect. However, when I try to usemainet
,testnet
, orpythnet
, it can't work anymore.Calling method
Debug Console Output
I checked the variables with debugger.
pyth-client-py/pythclient/pythclient.py
Lines 174 to 193 in bdd32b4
Until L180, everything works fine. Both key was correctly assigned values. But then, at L183,
m_data = account_json.get(AHtgzX45WTKfkPG53L6WYhGEXwQkN1BVknET3sVsLL8J )
it reads empty data.
Is this an error with mapping key? ( I checked with Pyth Network Website, the key is as same as here) Or with the method that I calling it?
The text was updated successfully, but these errors were encountered: