-
Notifications
You must be signed in to change notification settings - Fork 55
Add GET /account/:id/trustlines with stellar.toml resolution #9
Copy link
Copy link
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programfeatureA new feature or endpoint to be added to the APIA new feature or endpoint to be added to the APIhighModerate complexity, requires some researchModerate complexity, requires some researchstellarDirectly involves Stellar blockchain integrationDirectly involves Stellar blockchain integrationtomlRelated to stellar.toml parsing and resolutionRelated to stellar.toml parsing and resolution
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programfeatureA new feature or endpoint to be added to the APIA new feature or endpoint to be added to the APIhighModerate complexity, requires some researchModerate complexity, requires some researchstellarDirectly involves Stellar blockchain integrationDirectly involves Stellar blockchain integrationtomlRelated to stellar.toml parsing and resolutionRelated to stellar.toml parsing and resolution
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description:
Add an endpoint that returns all trustlines for an account. For each asset, resolve the issuer's home_domain from their Stellar account and fetch their stellar.toml to return the asset's official name, description, and image.
Acceptance Criteria:
GET /account/:id/trustlines returns all non-native balances
For each asset, attempt to resolve issuer home_domain → fetch https://<home_domain>/.well-known/stellar.toml
Parse TOML and return name, description, image per asset if available
Gracefully handles issuers with no home_domain or unreachable TOML (toml: null)
Validates account ID
Tests cover both resolved and unresolved cases