gethutils

package
v0.0.0-...-1791402 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package gethutils provides utility functions that use ethereum-go. Further information for ethereum-go can be found at https://github.com/ethereum/go-ethereum

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectGeth

func ConnectGeth(datadir string) (*ethclient.Client, *big.Int, error)

ConnectGeth takes the full path to the geth data directory in use and connects via the ipc connection. Geth must be active and connected to a network.

func GetAccountByAddress

func GetAccountByAddress(addr common.Address, datadir string) (ks *keystore.KeyStore, a accounts.Account, err error)

GetAccountByAddress takes an address object and the geth data directory, then returns the key store and an account object.

func GetPassword

func GetPassword() string

GetPassword is a utility function for retrieving a key password via the terminal

Types

This section is empty.

Jump to

Keyboard shortcuts

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