Simple, Opinionated, Lightweight, GoLang Solana Client
import (
"github.com/Dank-del/go-sol"
"fmt"
)
func main() {
url := "https://api.devnet.solana.com"
client := gosol.NewClient(url, nil)
publicKey := "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg"
response, err := client.GetAccountBalance(publicKey)
if err != nil {
t.Error("Error:", err)
return
}
fmt.Println(response)
}
MIT License - see LICENSE for full text