jon4hz / go-ethutil

Ethereum utility functions for Go.

Home Page:https://github.com/miguelmota/go-ethutil

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


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

About

Ethereum utility functions for Go.

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

License:MIT License


Languages

Language:Go 99.4%Language:Makefile 0.6%