API reference
The MetaFlux API is one MTF-native protocol. The gateway serves it at
https://api.<net>.mtf.exchange.
| Surface | Where | Notes |
|---|---|---|
| MTF-native | POST /exchange, POST /info, GET /ws, POST /faucet | Compact snake_case shape. It exposes all features, including the advanced MTF features (RFQ, FBA, PM enrollment, cross-chain). |
The gateway serves the MTF-native surface (/info, /exchange, /ws). A
node that you run yourself serves the same native surface directly at
http://localhost:8080.
Common tasks
| Task | Page |
|---|---|
| Make a first call | Quickstart |
| Place an order | submit_order, then placing orders |
| Sign a request | Signing and typed data |
| Read an account | account_state |
| Stream the book or your fills | WS subscriptions |
| Find the fields of one action | The action catalog |
| Find why a request was refused | Errors |
| Use a client library | TypeScript and Rust |
REST
POST /exchange: the envelope, signing and the action catalog. The fields of each action are on the page of its lane. The catalog links to each page.POST /info: the schema of each read type
WebSocket
- WS protocol: connection lifecycle, frames, auth and resume
- Subscriptions: the full channel catalog
Shared topics
- Errors: the response envelope, every error code and the action for each code
- Rate limits: the weight budget for each IP and the request budget for each account
See also
- Integration quickstart: a 5-minute flow from start to end
- Signing walkthrough: the EIP-712 envelope
- Networks: the endpoints of each network
- Changelog: what changed and at which block. Only an existing client needs it