blocto / solana-go-sdk

Solana Golang SDK
https://blocto.github.io/solana-go-sdk/
MIT License
366 stars 95 forks source link

creating a client #105

Open scottywm opened 1 year ago

scottywm commented 1 year ago

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?

scottywm commented 1 year ago

this is not a team who are trained with your library, i dont know why you referred me there.

yihau commented 1 year ago

It depends. The main point is the http client. I'll say you can do whatever you want before you encounter a performance issue.