modules

package
v0.0.0-...-0460f07 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddressBalance

func GetAddressBalance(client ethclient.Client, address string) (string, error)

GetAddressBalance returns the given address balance

func GetLatestBlock

func GetLatestBlock(client ethclient.Client) *models.Block

Function that will give the information about the block and the transactions embedded in it.

func GetTxByHash

func GetTxByHash(client ethclient.Client, hash common.Hash) *models.Transaction

Get Transaction information by Hash

func TransferEth

func TransferEth(client ethclient.Client, privKey string, to string, amount int64) (string, error)

TransferEth allow us to send ether from one account to another

Types

This section is empty.

Jump to

Keyboard shortcuts

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