Positions
List, register and reconcile Mesh strategy pools, and read their fill history.
GET /api/v1/positions/:ownerPkh
Live StrategyCovenantV2 pools owned by one LP. The index follows each pool to its recreated outpoint after every fill.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
ownerPkh |
path | string | yes | 20-byte hex (40 chars). |
POST /api/v1/positions
Register a pool you funded. The address is recomputed from the params and the outpoint must be unspent there; reserves come from chain.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
txid |
body | string | yes | Funding txid. |
vout |
body | number | no | Output index. Default 0. |
ownerPkh |
body | string | yes | Dock key hash. |
tokenCategoryIn |
body | string | yes | What the pool receives. |
tokenCategoryOut |
body | string | yes | What the pool gives. |
priceNum |
body | number | yes | Price numerator. |
priceDen |
body | number | yes | Price denominator. |
feeBps |
body | number | no | Default 30. |
More endpoints
| Endpoint | Purpose |
|---|---|
GET /api/v1/positions |
Every live pool, with indexer stats |
POST /api/v1/positions/batch |
Register several pools: an array or { positions: [...] } |
GET /api/v1/positions/utxo/:txid/:vout |
One pool by outpoint |
GET /api/v1/positions/:txid/fills |
Fill history for a pool |
GET /api/v1/positions/address/:address/fills |
Fill history for a covenant address |
POST /api/v1/positions/dock |
{ txid, vout }: re-read chain after the LP broadcast dock(). 200 gone, 409 still live |
POST /api/v1/positions/dock-all |
{ ownerPkh? }: reconcile every pool address for an owner |