Skip to content

[WIP] Simple, Opinionated, Lightweight, GoLang Solana JSONRPC Client

License

Notifications You must be signed in to change notification settings

Dank-del/go-sol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

[WIP] Simple, Opinionated, Lightweight, GoLang Solana JSONRPC Client

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages