OpenViSTAI · Agents · Blockchain · Crypto
Menu
Developer Tools

Solana Go SDK

Solana Go SDK is an MIT-licensed Go library for communicating with Solana through JSON-RPC. It provides client and RPC interfaces, examples for node-version and account-balance queries, and types for keys, accounts, instructions, messages and transactions.

Independent OpenViST project profile, based on linked sources.

Solana Go SDK — OpenViST project profile in Developer Tools.
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Install the package with the command below.

    Documented command
    go get -v github.com/blocto/solana-go-sdk
  2. Import the SDK's client and rpc packages.

  3. Create a client with client.NewClient(rpc.MainnetRPCEndpoint).

  4. Call GetVersion with 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.
Source-based practical guide

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

  1. Create a client with client.NewClient(rpc.DevnetRPCEndpoint).

  2. Call GetBalance with a context and account public key.

  3. For a configured request, use GetBalanceWithConfig and provide a GetBalanceConfig with a commitment.

  4. 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.
Evidence and transparency

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