Skip to content

Add GET /account/:id/trustlines with stellar.toml resolution #9

@Sulex45

Description

@Sulex45

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

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