- Are federations servers connected with each other directly?
- How federation servers connect to each other on Stellar network?
- Can we keep the history on federation server? How?
-
1That is three questions. Please ask each one in a separate post.– Chenmunka ♦Commented Sep 25, 2018 at 17:22
2 Answers
Stellar federation server is an implementation of Stellar Federation Protocol, which used to map names to addresses and any other info.
It is good practice to deploy federation server if you are Anchor.
It works such way:
- Got request like this username*anchordomain.com
- Look for federation server endpoint at https://anchordomain.com/.well-known/stellar.toml at FEDERATION_SERVER setting.
- Call federation server with query like this: https://federation.anchordomain.com/?q=username&type=name
- Got response like this: { "stellar_address": "username*anchordomain.com", "account_id": "GBOFXLQPWAHK4R5Z6NXMQYMKSXXYXAM5CVZSRCSTBZANQXWCFFAUFZUY" }
So, next is as usual.
For implementation of Federation server you can use it from stellar/go repo (services/federation) but it is possible to implement it with your own. Of course it is possible to log all queries to analyze data or add any additional logic, but server should be compliant with protocol.
https://www.stellar.org/developers/guides/concepts/federation.html
- No.
- They don't.
- Can you expand on what kind of history you mean?
Here's an answer I wrote that goes over what federation is and how it is used: https://stellar.stackexchange.com/a/1592/762