balance

package
v0.0.0-...-01747a8 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertWeiBalanceToEthValue

func ConvertWeiBalanceToEthValue(weiBalance *big.Int) *big.Float

ConvertWeiBalanceToEthValue convert wei to ethereum with formula: ETH = wei / 10^18

func GetBalanceForAccount

func GetBalanceForAccount(client *ethclient.Client, address common.Address, blockNumber ...int64) (balance *big.Int, err error)

GetBalanceForAccount get the balance for an account, optional at the moment of block, in wei

func GetPendingBalanceForAccount

func GetPendingBalanceForAccount(client *ethclient.Client, address common.Address) (pendingBalance *big.Int, err error)

GetPendingBalanceForAccount util ti find pending account balance is, after submitting or waiting for a transaction to be confirmed

Types

This section is empty.

Jump to

Keyboard shortcuts

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