Categorygithub.com/miguelmota/go-ethutil
repositorypackage
0.0.0-20211107025933-8f19054700cb
Repository: https://github.com/miguelmota/go-ethutil.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README


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