Skip to main content

Networks & public settings

Networks

GET /api/networks

Returns accepted chains with RPC URLs and deployed contract maps. Keys commonly include:

  • factory / mothership entry
  • rfq (often same as mothership locally)
  • opshuns_core (CLOB implementation or pair — registry naming may lag renames)
  • token0, token1, premium tokens, faucet mocks (weth, usdc, wbtc, meme)

Use this to discover where to call executeIntent and which factory to use when creating pairs.

Coming soon: margin_rfq_core, margin_vault_factory, and related margin keys. Ignore them until Borrow is live.

Local Anvil (mix dev.local) upserts chain 31337 from priv/dev/anvil-31337.json on API boot.

Other public settings

EndpointPurpose
GET /api/payment-tokensPayment token metadata (quote defaults + testnet faucet)
GET /api/default-premium-tokensDefault premium token list
GET /api/recommended-min-notionalSuggested minimum notionals
GET /api/landing-page-settingsTrading landing CMS: default premium tokens, payment tokens, networks
GET /api/filler-page-settingsMaker/filler page CMS content
GET /api/bond-requirementsPer-token premium_bond_amount and fill_bond_amount (exclusive fills)

The trading app also ships static RFQ allowlists / blacklists (underlyings, premium tokens, permitted CLOB addresses) compiled at build time — not an API round-trip. Custom 0x addresses can still be pasted in the token picker.

Indexer

EndpointPurpose
GET /api/indexer/statusHead, cursors, lag
GET /api/indexer/coresDiscovered CLOB addresses

Returns 503 when the indexer or RPC is unavailable.

Portfolio

GET /api/portfolio/:address — public snapshot of current CLOB holdings (balanceOf > 0), open book orders, and settled/closed holdings across all configured networks (networks[]). Optional ?chain_id= limits to one network.

Powers the trading Portfolio page. Full field list and statuses: Portfolio.