ganache

package
v0.0.0-...-65055fe Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(Host string) (err error)

func NewCli

func NewCli(Host string) (Cli *ethclient.Client, err error)

Types

type Ganache

type Ganache struct {
	Cli *ethclient.Client
}
var G *Ganache

func New

func New() *Ganache

func (*Ganache) GetBalance

func (G *Ganache) GetBalance(Address string, Block *big.Int) (balance *big.Int, err error)

func (*Ganache) GetBlock

func (G *Ganache) GetBlock(Height *big.Int) (block *types.Block, err error)

func (*Ganache) GetHeader

func (G *Ganache) GetHeader(Height *big.Int) (header *types.Header, err error)

func (*Ganache) NewAccount

func (G *Ganache) NewAccount()

Jump to

Keyboard shortcuts

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