Go Tezos is a GoLang driven library for your Tezos node.
Get goTezos
go get github.com/goat-systems/go-tezos/v2
package main
import (
"fmt"
goTezos "github.com/goat-systems/go-tezos/v2"
)
func main() {
gt, err := goTezos.New("http://127.0.0.1:8732")
if err != nil {
fmt.Printf("could not connect to network: %v", err)
}
block, err := gt.Block(1000)
if err != nil {
fmt.Println(err)
}
fmt.Println(block)
}
cycle, err := gt.Cycle(50)
if err != nil {
fmt.Println(err)
}
fmt.Println(cycle)
The makefile is there as a helper to run quality code checks. To run vet and staticchecks please run:
make checks
This project is licensed under the MIT License - see the LICENSE.md file for details