Skip to content
Merged
Show file tree
Hide file tree
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
20 changes: 9 additions & 11 deletions docs/admin-treasury-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,20 @@ The treasury panel calls the authenticated backend API; this client repository d

All routes use the existing `BaseApiService` credentials and return the standard `{ success, data, message }` envelope.

| Method | Route | `data` |
| --- | --- | --- |
| `GET` | `/admin/treasury` | `{ accumulatedFeesStroops: string, updatedAt?: string }` |
| `GET` | `/admin/treasury/distributions` | `TreasuryDistribution[]` |
| `GET` | `/admin/treasury/fees` | Recent `FeeCollected` records, newest first |
| `POST` | `/admin/treasury/distributions` | Confirmed `{ epoch: number, transactionHash: string }` |
| Method | Route | `data` |
| ------ | ------------------------------- | -------------------------------------------------------- |
| `GET` | `/admin/treasury` | `{ accumulatedFeesStroops: string, updatedAt?: string }` |
| `GET` | `/admin/treasury/distributions` | `TreasuryDistribution[]` |
| `GET` | `/admin/treasury/fees` | Recent `FeeCollected` records, newest first |
| `POST` | `/admin/treasury/distributions` | Confirmed `{ epoch: number, transactionHash: string }` |

Distribution request body:

```json
{
"admin": "G...",
"totalAmountStroops": "10000000",
"recipients": [
{ "address": "G...", "amountStroops": "10000000" }
]
"admin": "G...",
"totalAmountStroops": "10000000",
"recipients": [{ "address": "G...", "amountStroops": "10000000" }]
}
```

Expand Down
Loading
Loading