solana-go-sdk
solana-go-sdk copied to clipboard
creating a client
When creating a client to query the solana blockchain as below, can I create a new client for each request coming into my server or should I create just the one client and reuse it?
c := client.NewClient(rpc.MainnetRPCEndpoint)
What method is best?
this is not a team who are trained with your library, i dont know why you referred me there.
It depends. The main point is the http client. I'll say you can do whatever you want before you encounter a performance issue.