eth1

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZERO_HASH = [32]byte{}

Functions

func AddressFromPrivateKey added in v0.0.6

func AddressFromPrivateKey(pri string) (common.Address, error)

AddressFromPrivateKey Push out the address from the private key

func ETH32

func ETH32() decimal.Decimal

func GWEIToWEI

func GWEIToWEI(value *big.Int) *big.Int

func KeyTransactOpts

func KeyTransactOpts(chainID *big.Int) (*bind.TransactOpts, error)

func NewSimulatedClient added in v0.0.5

func NewSimulatedClient(walletBalance *big.Int, gasLimit uint64) (*backends.SimulatedBackend, error)

NewSimulatedClient ETH client of constructing simulation transactions

Types

type EthClient

type EthClient struct {
	Client *ethclient.Client
}
var ElClient *EthClient

func NewEthClient

func NewEthClient(ctx context.Context, rpcHost string) (*EthClient, error)

func (*EthClient) BalanceAt

func (e *EthClient) BalanceAt(ctx context.Context, address string, blockNumber *big.Int) (*big.Int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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