Skip to main content
Everything on the Offers page comes from this APIEverything on the Offers page comes from this API
The indexer reads every Ambi event on Ethereum and on each destination chain and serves them over HTTP. The app is built entirely on it.

Base URL

The API is served with the app at https://ambichain.org/api. Every response is JSON with cache-control: no-store.

Endpoints

The order object

GET /offers and GET /offers/{id} return orders shaped like this:
state is listed, matched, filled, refunded or canceled. Once the destination decides, destinationOutcome holds { outcome: "Paid" | "ExpiredUnpaid", hash, timestamp }.

Filters on /offers

Errors

Errors return { "error": "message" } with a 4xx status. POST bodies must be JSON under 8 KB, from a local origin.