/go-tezos

go-tezos Is a Golang library that exposes the Tezos RPC, along with some helper functions that may be used in common scenarios. It is currently under development.

Primary LanguageGoMIT LicenseMIT

goTezos: A Tezos Go Library

The purpose of this library is to allow developers to build go driven applications for Tezos of the Tezos RPC. This library is a work in progress, and not complete.

More robust documentation will come soon.

Installation

Get goTezos

go get github.com/DefinitelyNotAGoat/goTezos

goTezos Documentation

GoDoc

The goTezos Library requires you to set the RPC URL for a node to query.

Usage:

package main

import (
	"fmt"
	goTezos "github.com/DefinitelyNotAGoat/go-tezos"
)

func main() {
	gt := goTezos.NewGoTezos()
	gt.AddNewClient(goTezos.NewTezosRPCClient("localhost",":8732"))

	block,_ := gt.GetBlockAtLevel(1000)
	fmt.Println(block.Hash)
}

I will create a wiki shortly describing the functions available.

Contributers

See the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details