modulepackage
0.0.0-20180828082332-139c2bcc1264
Repository: https://github.com/orinocopay/go-etherutils.git
Documentation: pkg.go.dev
# README
This package contains a number of command-line utilities and libraries useful when working with Ethereum and Go.
ens
ens is a command-line utility that allows users to manage resolvers and addreses for ENS names.
To build ens from source run go build
from the cmd/ens
subdirectory.
Sample usage
Obtain the resolver for a name
ens resolver myname.eth
Set the resolver for a name
ens resolver set myname.eth --passphrase="my secret passphrase"
Obtain the address for a name
ens address myname.eth
Set the address for a name
ens address set myname.eth --passphrase="my secret passphrase" --address=0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1
Further details about ens usage can be obtained with ens help
# Functions
AccountSigner generates a signer using an account.
KeySigner generates a signer using a private key.
StringToWei turns a string in to number of Wei.
UnitToMultiplier takes the name of an Ethereum unit and returns a multiplier from Wei.
WeiToString turns a number of Wei in to a string.