Practical overview
When it fits
Use it when a Go application needs Solana JSON-RPC queries or the SDK's transaction-related types.
Who it is for
- Go developers building services or command-line utilities that query Solana JSON-RPC.
- Application developers who need Go types for assembling or managing Solana transaction components.
Documented uses
- Request a Solana node's version.
- Retrieve an account balance, optionally specifying a commitment.
- Choose between a wrapped result and the full RPC response.
- Represent keys, accounts, instructions, messages and transactions in Go code.
Requirements & limits
The project is publicly available on GitHub and identifies an MIT license.
- The SDK offers both wrapped client methods for main result values and RPC methods for full responses.
- Its README shows mainnet for the version example and devnet for the balance example.
- The documented installation command uses Go's package tool.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install the SDK and query a Solana node version
Add the Go package to a project and follow the documented example for requesting node version information.
Before you start
- A Go project
- Access to a Solana JSON-RPC endpoint
Steps
Install the package with the command below.
go get -v github.com/blocto/solana-go-sdkImport the SDK's
clientandrpcpackages.Create a client with
client.NewClient(rpc.MainnetRPCEndpoint).Call
GetVersionwith a context and handle the returned error.
Expected outcome
The example reads the Solana core version from the response.
Guide limitations
- The guide covers the version request example; it does not establish results for every endpoint or runtime environment.
Retrieve an account balance through devnet
Use the documented client example to request an account balance, with the wrapped result or the full RPC response.
Before you start
- A Go project with the SDK installed
- A Solana JSON-RPC endpoint
- An account public key
Steps
Create a client with
client.NewClient(rpc.DevnetRPCEndpoint).Call
GetBalancewith a context and account public key.For a configured request, use
GetBalanceWithConfigand provide aGetBalanceConfigwith a commitment.For the full RPC response, call
RpcClient.GetBalance.
Expected outcome
The wrapped methods return the main balance value, while the RPC client example retrieves the full response.
Guide limitations
- The example demonstrates request structure; it does not verify live endpoint behavior or account-specific results.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 14 October 2026
- Original website title
- blocto/solana-go-sdk · Official homepage title · retained in its source language

