0

I am trying to make a request for account data using stellar-core's boost/asio HttpClient.

//https://horizon.stellar.org/accounts/GALAXYVOIDAOPZTDLHILAJQKCVVFMD4IKLXLSZV5YHO7VY74IWZILUTO
std::string test = "";
//horizon.stellar.org ->54.210.168.139
int ret_code = http_request("54.210.168.139", "/accounts/GALAXYVOIDAOPZTDLHILAJQKCVVFMD4IKLXLSZV5YHO7VY74IWZILUTO", 80, test);

//test = live and kicking :)

I have tried other ports like 8000 and 443, but they either return error codes or the HttpClient will fail on establishing a connection.

Is it possible to make horizon calls using the stellar-core HttpClient?

1
  • 1
    It won't work without a fully qualified domain name. horizon.stellar.org is deployed on the AWS infrastructure, so 54.210.168.139 is a shared IP address of the load-balancer/firewall that handles millions of domains. Also, a HTTPS request to 80 port doesn't make sense. – Orbit Lens Jun 19 '20 at 13:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.