anypool.fun
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.
quotesignRelayzapLP NFT
Every zap is the same five steps.

Install

npm i @anypool/sdk viem

Quote 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 hashes

REST endpoints

MethodPathReturns
GET/api/poolsgraduated pools with TVL and volume
GET/api/pools/[token]one pool
POST/api/quotesplit, route and guards for a zap
GET/api/xchain/status?id=Relay request state
GET/api/positions?owner=your LP NFTs
Follow @AnypoolFun on X · Not affiliated with Robinhood, Pons, Uniswap or Relay. Sample numbers on the home page are illustrations.