blocto/solana-go-sdk

creating a client

Opened this issue · 2 comments

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.

yihau commented

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