ethereum

package
v1.3.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 23 Imported by: 2 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const SignatureSize = 65

SignatureSize is a byte size of a signature calculated by Ethereum with recovery-id, V, included. The signature consist of three values (R,V,S) in the following order: R = [0:31] S = [32:63] V = [64]

Variables

View Source
var (
	// DefaultMiningCheckInterval is the default interval in which transaction
	// mining status is checked. If the transaction is not mined within this
	// time, the gas price is increased and transaction is resubmitted.
	// This value can be overwritten in the configuration file.
	DefaultMiningCheckInterval = 60 * time.Second

	// DefaultMaxGasPrice specifies the default maximum gas price the client is
	// willing to pay for the transaction to be mined. The offered transaction
	// gas price can not be higher than the max gas price value. If the maximum
	// allowed gas price is reached, no further resubmission attempts are
	// performed. This value can be overwritten in the configuration file.
	DefaultMaxGasPrice = big.NewInt(70000000000) // 70 Gwei
)

Functions

func Connect

func Connect(config ethereum.Config) (chain.Handle, error)

Connect makes the network connection to the Ethereum network and returns a standard handle to the chain interface. Note: for other things to work correctly the configuration will need to reference a websocket, "ws://", or local IPC connection.

func ConnectUtility

func ConnectUtility(config ethereum.Config) (chain.Utility, error)

ConnectUtility makes the network connection to the Ethereum network and returns a utility handle to the chain interface with additional methods for non- standard client interactions. Note: for other things to work correctly the configuration will need to reference a websocket, "ws://", or local IPC connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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