Dank-del / go-sol

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Go 100.0%