eth1

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZERO_HASH = [32]byte{}

Functions

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 PubkeyFromPrivateKey

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

PubkeyFromPrivateKey todo err need to test

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