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
Last updated
Full documentation with API explorer available here - https://cache-half-full-staging.fly.dev/docs#/default/get_config_get_config_get
Last updated
/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...
/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...
/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)...
/estimate_gas
GET - Estimates the gas price on the given chain at the time...
/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...
/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