ethereum

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRPCCli

func NewRPCCli(ethConf Config) (*ethclient.Client, error)

NewRPCCli connects to ethereum node and return a connection backend

func NewWSCli

func NewWSCli(ethConf Config) (*ethclient.Client, error)

NewWSCli connects to ethereum node and return a connection backend

Types

type Config

type Config struct {
	Host            string
	JSONRPCPort     string
	JSONRPCProtocol string
	WSProtocol      string
	WSPort          string
	NetworkID       int64
}

Config is a conf for the ethereum node

Jump to

Keyboard shortcuts

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