Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 528 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 528 Bytes

go-sol (WIP)

Simple, Opinionated, Lightweight, GoLang Solana Client

Usage

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)
}

License

MIT License - see LICENSE for full text