1

Account ID is referred as federation address here.

After reading here I interpreted account id as a publickey.

You can use the federation endpoint to look up an account id if you have a stellar address. You can also do reverse federation and look up a stellar addresses from account ids or transaction ids. This is useful to see who has sent you a payment.

What is an account id?

2 Answers 2

2

An Account ID is a unique identifier for a registered account, and is an StrKey-encoded ed25519 public key.

NB: Not all public keys are account IDs. E.g., it's perfectly fine to have signers that are public keys, but not accounts.

1

It is indeed mostly means the public key but sometimes it means the user name part of a federated stellar address, which is something completely different and indeed confusing.

Federation is something you do mostly outside stellar by using the optional memo field on transactions. If you have a federated address of the form username*domain.com, username refers an account on domain.com. Stellar does not understand these addresses natively and you have to use the federation protocol to figure out the correct stellar public key/account id + memo.

So, if domain.com implements the federation protocol, you can hit its federation REST API to get back a stellar account id and memo combination that you can use to send tokens to that user. The way that works is that stellar simply puts tokens in the account without caring about or validating the memo field in any way. The stellar account owner can then can look at incoming transactions and decide based on the memo field which of their users should receive actually receive the tokens.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.