Description
Problem
Federated Stellar addresses require applications to manually perform federation lookups. The SDK has no high-level resolver for converting human-readable federation addresses into account information.
Repeated federation lookups also create unnecessary network traffic and provide no standardized identity verification or caching strategy.
Solution
Implement federation resolution utilities that parse federation addresses, query the configured federation service, validate the response, and cache successful lookups.
The resolver should distinguish account identifiers, memo information, federation domains, and invalid responses.
Acceptance Criteria
Note for Contributors
Do not trust federation responses solely because the HTTP request succeeded. Validate the returned account information and federation domain before returning the result.
Description
Problem
Federated Stellar addresses require applications to manually perform federation lookups. The SDK has no high-level resolver for converting human-readable federation addresses into account information.
Repeated federation lookups also create unnecessary network traffic and provide no standardized identity verification or caching strategy.
Solution
Implement federation resolution utilities that parse federation addresses, query the configured federation service, validate the response, and cache successful lookups.
The resolver should distinguish account identifiers, memo information, federation domains, and invalid responses.
Acceptance Criteria
resolveAddress(federationAddress)is implemented.src/account/index.tsandsrc/index.ts.Note for Contributors
Do not trust federation responses solely because the HTTP request succeeded. Validate the returned account information and federation domain before returning the result.