Ethereum utility functions for Go.
Clone or download
Latest commit 960eba5 Jan 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example public key to address util Jan 5, 2019
vendor/github.com log topic hash helper Oct 7, 2018
.gitignore log topic hash helper Oct 7, 2018
.travis.yml init Jun 7, 2018
Gopkg.lock add vendor Jun 7, 2018
Gopkg.toml add vendor Jun 7, 2018
LICENSE.md init Jun 7, 2018
Makefile log topic hash helper Oct 7, 2018
README.md update readme Jan 19, 2019
ethutil.go public key to address util Jan 5, 2019
ethutil_test.go public key to address util Jan 5, 2019

README.md


logo


go-ethutil

Ethereum utility functions for Go.

License Build Status Go Report Card GoDoc

Documentation

https://godoc.org/github.com/miguelmota/go-ethutil

Install

go get -u github.com/miguelmota/go-ethutil

Getting started

package main

import (
	"fmt"
	"log"

	"github.com/miguelmota/go-ethutil"
)

func main() {
	wei := ethutil.ToWei(0.02, 18)
	fmt.Println(wei) // 20000000000000000
}

Examples

Check out the ./example directory and documentation.

License

MIT