syntaxval Hello, could someone explain the purpose of Network class in the API? From what I understand it is simply a helper class for setting the passphrase used in either public or test stellar networks. Does that go along with setting the Horizon server network to public/testnet? What I mean is let's say I am using public Horizon access point at https://horizon.stellar.org then I have to make sure my Network is also set to "usePublicNetwork()" so the passphrase is set to the correct one and the "correct" keys are issued that are accepted on that network? Sorry if I sound ill-informed but I am.... just trying to put all the pieces of the puzzle together. Thanks and cheers!
istrau2 Yep, that's the basic idea. There are a couple of additional details for exanple: If you choose usePublicNetwork() you will get an error for a non-https horizon endpoint etc whereas useTestNetwork() will allow you to specify an http horizon endpoint.
bnogal and one thing is Network and other the horizon server you connect to. In the future it may appear new servers, distributed geographically, making it perform even better.