ethereum

package
v0.0.0-...-821c63f Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoundContract

type BoundContract interface {
	Call(opts *bind.CallOpts, results *[]interface{}, method string, params ...interface{}) error
	Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
}

type EthereumWrapper

type EthereumWrapper struct {
	Client  *ethclient.Client
	Auth    *bind.TransactOpts
	ChainId *big.Int
}

func (*EthereumWrapper) Close

func (eth *EthereumWrapper) Close()

func (*EthereumWrapper) Dial

func (eth *EthereumWrapper) Dial(rawurl string) (*ethclient.Client, error)

func (*EthereumWrapper) HexToECDSA

func (eth *EthereumWrapper) HexToECDSA(hexkey string) (*ecdsa.PrivateKey, error)

func (*EthereumWrapper) NetworkID

func (eth *EthereumWrapper) NetworkID(ctx context.Context) (*big.Int, error)

func (*EthereumWrapper) NewKeyedTransactorWithChainID

func (eth *EthereumWrapper) NewKeyedTransactorWithChainID(key *ecdsa.PrivateKey, chainID *big.Int) (*bind.TransactOpts, error)

func (*EthereumWrapper) SuggestGasPrice

func (eth *EthereumWrapper) SuggestGasPrice(ctx context.Context) (*big.Int, error)

Jump to

Keyboard shortcuts

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