go-tezos

module
v3.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2020 License: MIT

README

GoDoc

A Tezos Go Library

Go Tezos is a GoLang driven library for your Tezos node. This library has received a grant from the Tezos Foundation to ensure it's continuous development through 2020.

Installation

Get goTezos

go get github.com/goat-systems/go-tezos/v3
Getting A Block
package main

import (
	"fmt"
	goTezos "github.com/goat-systems/go-tezos/v3/rpc"
)

func main() {
	rpc, err := client.New("http://127.0.0.1:8732")
	if err != nil {
		fmt.Printf("could not connect to network: %v", err)
	}

	block, err := rpc.Block(1000)
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println(block)
}
Getting a Cycle
	cycle, err := rpc.Cycle(50)
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println(cycle)

Contributing

The Makefile

The makefile is there as a helper to run quality code checks. To run vet and staticchecks please run:

make checks

Contributers: A Special Thank You

License

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

Directories

Path Synopsis
example
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL