ethconv

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Wei  = "1"
	Gwei = "1000000000"
	Eth  = "1000000000000000000"
)

multipliers for various eth denominations

View Source
const (
	ERC20Transfer     = "a9059cbb"
	ERC20TransferFrom = "23b872dd"
)

ERC20 function signatures

Variables

This section is empty.

Functions

func FromWei

func FromWei(value string, to string, prec uint) (string, bool)

FromWei returns a string converted from wei to respective unit

func IsERC20Transfer

func IsERC20Transfer(payload string) bool

IsERC20Transfer return true if the payload starts with erc20 transfer/transferFrom

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL