Accounts

package
v0.0.0-...-7b292b7 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eth

func Eth(amount *big.Int) *big.Float

func Gwei

func Gwei(amount *big.Int) *big.Float

Types

type Account

type Account struct {
	PrivateKey         *ecdsa.PrivateKey
	PublicKey          *ecdsa.PublicKey
	Address            common.Address
	Tokens             []Token
	Balance            *big.Int
	TotalAssetTransfer *big.Int
	Available          *big.Int
	Nonce              uint64
	ChainId            *big.Int
}

func GetAccounts

func GetAccounts(mnemonics []string, privateKeys []string, numberOfAccounts int) []Account

func (Account) TotalAssetTransferPrice

func (self Account) TotalAssetTransferPrice(gasPrice *big.Int) *big.Int

type Token

type Token struct {
	Contract common.Address
	Balance  *big.Int
	Symbol   string
	Decimals uint8
	GasLimit uint64
}

func (Token) DecimalBalance

func (self Token) DecimalBalance() *big.Float

func (Token) TotalTransferPrice

func (self Token) TotalTransferPrice(gasPrice *big.Int) *big.Int

Jump to

Keyboard shortcuts

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