Documentation ¶
Index ¶
- Constants
- Variables
- func GetAddressByPrivateKey(privateKey *ecdsa.PrivateKey) (address string, err error)
- func GetPriaveKeyByEcdsa(privateKey *ecdsa.PrivateKey) (privateKeyStr string)
- func Init(platform Platform) (err error)
- func InitInfura(key, env string) *infura
- func NewPrivateKey() (privateKey *ecdsa.PrivateKey, err error)
- type Geth
- type Platform
Constants ¶
View Source
const ( Mainnet = "mainnet" Rinkeby = "rinkeby" Ropsten = "ropsten" Ifr = "infura" )
Variables ¶
View Source
var Infura *infura
View Source
var InfuraEnv = map[string]string{
Mainnet: "mainnet",
Rinkeby: "rinkeby",
Ropsten: "ropsten",
}
Functions ¶
func GetAddressByPrivateKey ¶
func GetAddressByPrivateKey(privateKey *ecdsa.PrivateKey) (address string, err error)
func GetPriaveKeyByEcdsa ¶
func GetPriaveKeyByEcdsa(privateKey *ecdsa.PrivateKey) (privateKeyStr string)
func InitInfura ¶
func InitInfura(key, env string) *infura
func NewPrivateKey ¶
func NewPrivateKey() (privateKey *ecdsa.PrivateKey, err error)
Types ¶
type Geth ¶
func (*Geth) AddressIsContract ¶
Click to show internal directories.
Click to hide internal directories.