Skip to content

Add GET /account/:id/trustlines with issuer home domain resolution #7

@Sulex45

Description

@Sulex45

Add an endpoint that returns all trustlines for an account, and for each asset
attempts to resolve the issuer's home_domain from their Stellar account and
fetches the stellar.toml to return the asset's official name and description.

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 to extract name, desc, image for the asset if available
  • Gracefully handles issuers with no home_domain or unreachable TOML
  • Adds toml field to each asset: { name, description, image } | null
  • Tests cover both resolved and unresolved cases

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programfeatureA new feature or endpoint to be added to the APIhighModerate complexity, requires some researchstellarDirectly involves Stellar blockchain integrationtomlRelated to stellar.toml parsing and resolution

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions