Search…
Introduction
This page describes the general information you need to know in order to connect to our API.

Writing your integration

Integrating with UniDex is simple and requires minimal work. Don't be afraid to reach out to us in our social media channels such as discord or telegram if you need assistance. Our main endpoints return a transaction object that is ready to be submitted by any web3 wallet. These transactions place orders in the UniDex order book for a relayer network to fill.
Use the following endpoint for all your requests.
1
https://unidex.herokuapp.com/
Copied!
Below is an example of what a complete request looks like
1
GET https://unidex-backend.herokuapp.com/orders/limit?
2
sellToken=0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063&
3
buyToken=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&
4
sellAmount=1000000000000000000&
5
buyAmount=799936000000000000&
6
account=0xe9F7B6F81883F321EFb8beed766e873C4E01EC4b&
7
chainId=137
Copied!

Add support for your DEX / AMM

Are you a AMM or DEX looking for a more custom solution? Or maybe you're just looking to get added to our aggregation engine. Head over to https://a99fdj1a5hr.typeform.com/to/hwdXYoif and fill out this short 1 minute questionnaire and we'll be in touch shortly.

Common Parameters

All our endpoints receive chainId and account as parameters. chainId corresponds to the network you would like to interact with. account is the account which will ultimately be doing the interactions with the blockchain.

Supported Networks

  • Ethereum Mainnet: 1
  • Kovan Testnet: 42
  • Binance Smart Chain: 56
  • Polygon: 137
  • Fantom: 250
  • Avalanche: 43114
  • xDai: 100
  • Moonriver: 1285
  • Fuse: 122
Last modified 1mo ago