Build
SDK and API
@anypool/sdk and REST, planned.
Planned
The SDK and REST API are designed but not published yet. Names may change before release.
Install
npm i @anypool/sdk viemQuote a zap
import { anypool } from "@anypool/sdk";
const zap = await anypool.quote({
pool: "TARDI/ETH",
pay: { chain: "base", coin: "ETH", amount: "0.5" },
slippageBps: 50,
});
zap.split; // { swap: "0.2511 ETH", keep: "0.2476 ETH" }
zap.steps; // ["relay", "swap", "mint"]Send it
const lp = await zap.send(wallet); // one signature per chain
lp.tokenId; // 4812n
lp.txs; // relay deposit + zap hashesREST endpoints
| Method | Path | Returns |
|---|---|---|
| GET | /api/pools | graduated pools with TVL and volume |
| GET | /api/pools/[token] | one pool |
| POST | /api/quote | split, route and guards for a zap |
| GET | /api/xchain/status?id= | Relay request state |
| GET | /api/positions?owner= | your LP NFTs |

