EthereumAPI icon indicating copy to clipboard operation
EthereumAPI copied to clipboard

Please add method for https support

Open syrohei opened this issue 7 years ago • 0 comments

This code supported http only. please add https method

func Call(method string, params interface{}) (*JSON2Response, error) {
	j := NewJSON2RequestBlank()
	j.Method = method
	j.Params = params
	j.ID = 1

	postGet := "POST"

	address := fmt.Sprintf("http://%s/", server)

	data, err := j.JSONString()
	if err != nil {
		return nil, err
	}

syrohei avatar Jun 28 '17 08:06 syrohei