Documentation ¶
Index ¶
- Constants
- Variables
- func AddPercents(gasLimitUnits uint64, percents int) *big.Int
- func CheckEthHashStatus(hash string, client *ethclient.Client) int
- func ConfirmEthereumTransaction(hash string, times int, duration time.Duration, client *ethclient.Client) (int, error)
- func Convert(input decimal.Decimal, inputUnit string, outputUnit string) (decimal.Decimal, error)
- func CreateHDWallet() (*accounts.Account, string, error)
- func FromWei(amount decimal.Decimal, unit string) (decimal.Decimal, error)
- func NewSignedTransaction(pack []byte, from, to string, value *big.Int, privateKey *ecdsa.PrivateKey, ...) (*bind.TransactOpts, error)
- func ToWei(amount decimal.Decimal, unit string) (decimal.Decimal, error)
Constants ¶
View Source
const ( STATUS_FAIL = 1 STATUS_SUCCESS = 0 )
View Source
const ( Wei = "wei" Kwei = "kwei" Mwei = "mwei" Gwei = "gwei" Szabo = "szabo" Finney = "finney" Ether = "ether" Kether = "kether" Mether = "mether" Gether = "gether" Tether = "tether" )
Variables ¶
View Source
var ErrInvalidUnit = fmt.Errorf("invalid unit")
ErrInvalidUnit is returned when the given unit is not supported.
Functions ¶
func CheckEthHashStatus ¶
CheckEthHashStatus - checking the status of ETH transaction possible values 0 (fail) or 1 (success)
func NewSignedTransaction ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.