ethereum

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 25 Imported by: 6

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(50000000000) // 50 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