Versions in this module Expand all Collapse all v1 v1.1.0 Nov 16, 2018 v1.0.0 Nov 4, 2018 Changes in this version + const ContentType + const Mainnet + const Testnet + var MainnetUrls = []string + var NetType = Testnet + var TestnetUrls = []string + type RPC struct + GasPrice uint64 + NetType string + NetVersion *big.Int + func GetInstance() *RPC + func (r *RPC) Call(to, data string) (string, error) + func (r *RPC) DoRPC(req interface{}) (ret string, err error) + func (r *RPC) GetChainID() *big.Int + func (r *RPC) GetCode(addr string) (string, error) + func (r *RPC) GetEthClient() *ethclient.Client + func (r *RPC) GetGasPrice() uint64 + func (r *RPC) GetTransactionCount(addr string) uint64 + func (r *RPC) InitClient() + func (r *RPC) SendRawTransaction(raw []byte) (string, error) + func (r *RPC) SendTransaction(from, to, data string, gas int) (string, error)