Build
The indexer API
Ponder indexes only Tsuneni's contracts and pools; the app reads it, and so can you.
Ponder 0.18.9 indexes both Executors and CopyExecutors, the Watcher and the Copier, the PriceMovers, the funders and our test pools into Postgres. It's read-only and never in the loop. Live at indexer-testnet.tsuneni….
| Route | Returns |
|---|---|
GET /latency | Median, p90, min, max and the loops per half second (buckets, 0–5 s, the last bucket slower) per chain pair from completed proofs, and the bot comparison |
GET /proof/:chainId/:requestId | One action's three legs with explorer links |
GET /account/:address | An address's rules, mirrors, positions, recent actions with proofs, budgets and moves; whom it follows, who follows it, and its latest copies with counts per follow; held, the position NFTs it holds in our pools, each with its pool |
GET /position/:chainId/:tokenId | A position's lineage, rules, actions and cash flows |
GET /action/:id | One action with its proof, its rule and the positions before and after |
GET /flows/:chainId?ids= | Cash flows per position across its lineage (for PnL) |
GET /pool/:chainId/:poolId/prices | A pool's price history |
GET /account/:address/copies?before= | Older copies for a follower, newest first (a cursor ms:id) |
GET /copy/:id | One copy with its follow, the leader's event, the three legs and any protection rule it armed |
GET /leader/:address | A wallet as a leader: its copiers (followers) by chain and kind, whether the Copier watches it (or capped it today), its recent events and how their copies went |
GET /leaders?kind=lp|trader&window=&chain=&me= | The board, up to 100 rows: LPs by PnL to date (open positions at today's price, uncollected fees and withdrawals, minus deposits, each flow valued at its own block; a re-range's withdraw and re-deposit netted), or traders by a window's swaps (24h, 7d, 30d, all) marked at today's price, a copy counted for its follower and a token order for its owner. With me, that wallet's own row even past the top 100. Cached a minute |
GET /wallet/:address/pnl?kind=&window= | A wallet's PnL over time, sampled at round times from the window's start (or the index's first swap, if later), each valued at that moment's pool price (an LP's last point adds the fees waiting): the wallet page's chart |
GET /wallet/:address/trades | A wallet's latest 50 trades in our pools, newest first, attributed as the traders board attributes them: side, USDC and ETH, price, and whether it was its own swap, a copy or a token order |
GET /activity?chain=&limit=&before= | Every action a rule took, anyone's, newest first: up to 100 a page (default 30) with a cursor next (ms:id), each with its proof, its rule and its three explorer links. The first page adds stats: wallets with a rule watching, rules watching, actions in the last 24 hours and in all, the median and p90 loop over every chain, and (Testnet) the polling bot's run. Explore's Activity tab and the header's Live chip read it |
GET /recent-copies | The latest copies that reached their callback, anyone's (the Telegram bot's copy alerts) |
GET /watcher | The Watcher's and the Copier's lREACT balance, debt and paused state, read from Lasna |
GET /summary | Counts of actions by outcome, positions and rules, and the move rows themselves |
GET /status | Ponder's own: the latest block indexed on each chain |
/sql/* | Ponder's read-only SQL over HTTP (what @ponder/client uses) |
curl https://indexer.tsuneni.xyz/latencyLatency per action is the callback's block time minus the origin swap's, where the origin is read from the Watcher's reactive transaction; Base Sepolia gives milliseconds, the other chains whole seconds.