PhorosPhoros
Developers

Developers

Everything the app reads is open: a JSON API, a one-file SDK, an MCP server for agents, a skill file and the contract ABIs. All of it is served from this site.

API

RouteAnswers
GET /api/listingsEvery stream: coin, term, share offered, price per 1,000 shares, fees a day, status
GET /api/pools?listable=1Live Montra pools with tier, creator rate, 24h volume and creator fees a day
GET /api/quote?id=1&shares=10000What a buy costs now, the sale fee and what the creator receives
curl -s https://www.phorosfees.xyz/api/pools?listable=1 | jq '.pools[0]'

SDK

One ES module with the ABIs and helpers for viem: read a listing, quote, buy, claim.

curl -sO https://www.phorosfees.xyz/sdk/phoros.js
curl -sO https://www.phorosfees.xyz/sdk/abis.json
import { phoros } from "./phoros.js";
const p = phoros({ vault: "0x…", publicClient, walletClient });
const l = await p.listing(1n);
const { cost } = await p.quote(1n, 10_000n * 10n ** 18n);
await p.buy(1n, 10_000n * 10n ** 18n);   // pays cost in HYPE
await p.claim(l.share);                  // your fees, in the pool's quote asset

MCP

A JSON-RPC MCP server at https://www.phorosfees.xyz/api/mcp with three tools: list_streams, montra_pools, quote_buy.

curl -s https://www.phorosfees.xyz/api/mcp -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"montra_pools","arguments":{"listable":true}}}'

skill.md and llms.txt

/skill.md teaches an agent to price and buy a stream. /llms.txt maps the docs.