solana-go-sdk
solana-go-sdk copied to clipboard
an error
Hello, i have been using your library to interact with the solana blockchain and its been working pretty good up to this point.
Now when I try and make the below query I'm getting the following error and I was wondering if you could explain to me what the error means because I don't understand
QUERY
c := client.NewClient(rpc.MainnetRPCEndpoint)
tokenAccounts, errGetTkn := c.GetTokenAccountsByOwner(context.Background(), data.SolanaWallet)
ERROR
rpc: call error, err: get status code: 429, body: {"jsonrpc":"2.0","error":{"code": 429,"message":"Too many requests
for a specific RPC call, please contact your app developer to further troubleshoot. If you are using an open endpoint,
please consider signing up for your own subscription to avoid getting rate limited, you can find some suitable options
at https://solana.com/rpc."}, "id": 1 }
PLEASE HELP! I have no where else to go for assistance with these matters.
I think the error message is clear. You just hit the rate limit. You need to
- build your own rpc or
- use existed rpc services (some of them listed on https://solana.com/rpc)
I'm not getting this error when I have been making other requests to the solana blockchain its only this particular request.
Why is this the case and how will I know if there are not going to be other such issues with the other requests i'm doing with your library?
I really need to chat with you in person over zoom because I'm absolutely lost right now. Can we please do this? If yes, send me an email with the time and day you are free for this. [email protected]
thanks
Seems there is a more strict rate limit on the official mainnet-beta endpoint. The same query works fine on the devnet endpoint. Nothing I can help. You just need a new endpoint. By any chance take a look at https://solana.com/rpc?
It looks like I'm going to have to pay for a RPC provider because I'm building a platform that is supposed to scale. I have been using your library to interact with the solana blockchain this whole time and thought my work was done but now I've discovered that I need an RPC provider.
If i choose to pay for an RCP provider will i have to change my code and if so how significant will the changes i make to my code have to be ????????
Or will i simply just need to make a small adjustment to my code????
I'm really shitting my pants right now because i don't want to have to rewrite all my code and I have nowhere else to go with my questions.
the question I'm asking is, when I subscribe to a rpc provider, can I continue using your library and just add in their end point of will I have to change my code and use their library?
it depends. if the RPC provider's behavior is the same as the official rpc service, you won't need to do any changes.
I don't want to have to rewrite any of my code as I just want to have to add in the new end point.
I have visited some RPC providers and they have their OWN API to use to connect to their nodes and I don't want to have to rewrite my code again as I have been using YOUR API. So you must help your users (me) to get an endpoint otherwise your API is useless.
PLEASE HELP !!!!