Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

ethereum unit converter written in go

License

NotificationsYou must be signed in to change notification settings

jon4hz/ethconvert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Report CardLicense: MIT

ethconvert

Ethereum unit converter written in go.

Install

go get github.com/jon4hz/ethconvert/pkg/ethconvert

Example usage

package mainimport ("fmt""github.com/jon4hz/ethconvert/pkg/ethconvert""github.com/shopspring/decimal")funcmain() {amount:=decimal.NewFromInt(50)gwei,err:=ethconvert.Convert(amount,"ether","gwei")iferr!=nil {panic(err)}fmt.Println(gwei)}

CLI

Install

go install github.com/jon4hz/ethconvert/cmd/ethconvert@latest

Example

$ ethconvert -i ether -o wei -a 11000000000000000000 wei$ ethconvert 50 wei gwei0.00000005 gwei

About

ethereum unit converter written in go

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp