Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,27 @@ This project is ideal for:

## API Quick Reference

| Method | Endpoint | Description |
| --- | --- | --- |
| GET | `/` | Lists available API endpoints and descriptions |
| GET | `/health` | Returns basic service health status |
| GET | `/network-status` | Returns current Stellar network and ledger info |
| GET | `/fee-estimate` | Calculates fee estimates for a transaction |
| GET | `/account/:id` | Retrieves full account details and balances |
| GET | `/account/:id/balances` | Retrieves XLM and asset balances only |
| GET | `/account/:id/sequence` | Retrieves the account sequence number |
| GET | `/account/:id/summary` | Retrieves a compact account summary |
| GET | `/account/:id/payments` | Lists payment and create_account operations |
| GET | `/account/:id/sponsorship` | Returns sponsorship relationships for the account (sponsor id and sponsored ledger entries) |
| GET | `/transactions/:id` | Retrieves paginated transaction history |
| GET | `/transactions/:id/operations` | Retrieves paginated operation history |
| GET | `/asset/:code/:issuer` | Retrieves metadata and statistics for an asset |
| GET | `/asset/:code/:issuer/holders` | Lists holders of an asset trustline |
| GET | `/asset/search` | Searches assets by code across issuers |
| GET | `/stream/transactions/:id` | Streams live account transactions via SSE |
| GET | `/utils/friendbot/:accountId` | Funds a testnet account via Friendbot |
| GET | `/utils/memo` | Decodes Horizon memo data |
| GET | `/utils/base64` | Encodes or decodes Base64 strings |
| Method | Endpoint | Description |
| ------ | ------------------------------ | ----------------------------------------------- |
| GET | `/` | Lists available API endpoints and descriptions |
Expand Down Expand Up @@ -1185,6 +1206,21 @@ GET /account/GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN
"assets": [...],
"signers": [...],
"flags": {...}

### Understanding Account Sponsorship

Account sponsorship in Stellar allows one account (the sponsor) to cover the base reserve and associated subentry reserves for ledger entries owned or created for another account. Sponsorship makes it possible for custodial services, marketplaces, or onboarding flows to pay ledger costs on behalf of users while sponsorship is active.

- What it means: sponsorship ties specific ledger entries (accounts, trustlines, signers, data entries, offers, claimable balances, etc.) to a sponsoring account that pays the associated reserve while the sponsorship exists.
- Sponsored reserves: while sponsorship is active, the sponsor is responsible for the base reserve required by those sponsored ledger entries. If sponsorship ends, the sponsored account must meet the reserve requirements itself or the network may require cleanup or disallow some entries.
- Why it exists: to simplify onboarding, reduce friction for new users, and enable managed services to cover ledger costs temporarily or indefinitely.

Using this API:

- Inspect sponsorship relationships using `GET /account/:id/sponsorship`. This endpoint helps determine whether an account or its ledger entries are sponsored, who the sponsor is, and which entries are covered — useful for UI indicators, billing reconciliation, or migration workflows.

Note: This repository documents the sponsorship inspection endpoint; it does not change any runtime behavior or add sponsorship logic.

}
}
```
Expand Down
Loading