Question: What is the "Network" used for?
See original GitHub issueI see in the examples:
// Set network and server
Network network = new Network("Test SDF Network ; September 2015");
Server server = new Server("https://horizon-testnet.stellar.org");
....
Or even:
Network.UseTestNetwork();
Server server = new Server("https://horizon-testnet.stellar.org");
I went over the Network
class and can’t figure out what/where it is used for?
Since we instantiate the Server
with specific uri (test or main), where does the Network
used? I can’t see its being used anywhere for example:
examples/send_native_assets.md
Thanks 😃
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
What is a Computer Network? | Definition from TechTarget
A computer network is a group of interconnected nodes or computing devices that exchange data and resources with each other. A network connection...
Read more >Chapter 1: What is a Network?
A network consists of two or more computers that are linked in order to share resources (such as printers and CDs), exchange files,...
Read more >Top Networking Interview Questions (2023)
Find Networking interview questions asked. Explore basic, intermediate, and advanced level questions.
Read more >5.1 Uses of networks
A network allows several people to be connected to one printer or scanner, thus making optimal use of these resources. Software: Networks also...
Read more >Computer Network Interview Questions
Answer: A set of devices connected to each other over the physical medium is known as a computer network. For example, the Internet....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think you have a good understanding of it. In the case of applications like wallets I think it makes sense to have a global object for the current network, but if you’re developing something else it’s probably better to use the overloaded
Sign
method. You’re also right about thread safety (I brought this exact same issue up in #104).Hi there i’m on my lunch time so i have time to reply to you.
A network is a cluster of servers connected between them in a decentralized way.
For connect to a network you need a passphrase. Think of it like a way to assign an ID
If you ask the server it will give you the details of the network it’s in, also it can give you the passphrase https://horizon-testnet.stellar.org (try to click and see on the bottom).
Here is more info: https://www.stellar.org/how-it-works/stellar-basics/explainers/
It’s a bit tricky though.