Selected API Endpoints for Integrations

Full documentation with API explorer available here - https://cache-half-full-staging.fly.dev/docs#/default/get_config_get_config_get

Ingesting Mach Config

  • /get_config GET - Returns a JSON object that defines the chains and tokens that Mach supports. All chain IDs, token contracts, swap contracts and necessary information for routing transactions to Mach can be retrieved from this endpoint...Read more

Prepping Orders

  • /orderETA GET - Returns the number of seconds that we expect a swap to settle within. We try our best to offer instant swaps to our partners and their users. But as market conditions are dynamic, so are our capabilities...Read more

  • /get_order_price GET - Returns the price that Mach can fill an order at for any of the pairs of token-chain combos that we support (pricing model changing soon to more dynamically reflect market conditions)...Read more

  • /estimate_gas GET - Estimates the gas price on the given chain at the time...Read more

Submitting Orders

  • /make_order POST - After receiving a confirmed transaction calling the PlaceTrade function on our Optimistic Swap smart contract, you can send the transaction data to our market making service to fulfill the order for the user...Read more

Tracking Orders

  • /v1/orders?wallet=0x0000 GET - Retrieve orders that were submitted by a wallet (query string: wallet)

  • /v1/orders/{order_id} GET - Retrieve the current status of an order

Last updated