API reference — v1
Base URL: https://api.didinska.my.id. Responses are JSON with an x-request-id header. Session endpoints require an X-Agent-Token header.
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/stats | Protocol TVL, 24h volume, trade count, block height |
| GET | /api/v1/tokens | Token list with prices and market caps |
| GET | /api/v1/tokens/:symbol | Single token detail |
| GET | /api/v1/pools | Pool list with reserves, TVL and APR |
| GET | /api/v1/candles/:pair | 1-minute candles for a pair |
| POST | /api/v1/quote | Swap quote for a pool and input amount |
| POST | /api/v1/approve | Approve a token for swapping (session) |
| POST | /api/v1/swap | Execute a swap (session) |
| POST | /api/v1/liquidity/add | Add liquidity (session) |
| POST | /api/v1/liquidity/remove | Remove liquidity (session) |
| GET | /api/v1/tx/:hash | Transaction detail |
| GET | /api/v1/address/:address | Address balances and history |
| GET | /api/v1/blocks | Recent blocks |
| POST | /api/v1/subgraph | Subgraph-style queries: pools, tokens, swaps |
| GET | /api/v1/governance/proposals | Governance proposals |
An older v0 API surface is kept for reference in the v0 archive.