Decentralised Swapping

Kyber Network connector triggers methods like buy and sell. You can view details like source code, ABIs on Etherscan.

  • Use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee to indicate ETH.
  • use -1 or dsa.maxValue for the maximum amount in function.
  • If not sure about the arguments getId and setId, pass 0.


Buy / Sell tokens.

  connector: "kyber",
  method: "sell",
  args: [buyAddr, sellAddr, sellAmt, unitAmt, getId, setId]
buyAddraddressThe address of the token to buy.
sellAddraddressThe address of the token to buy.
sellAmtnumberThe amount of token to sell.
unitAmtnumberThe amount of buyAmt/sellAmt with slippage.
getIDnumberID stores the amount of token deposited.
setIdnumberID stores the amount of token deposited.

If you still can't find something you're looking for or have any questions, ask them at our developers community on Discord or simply send an Email.

Our team is excited about assisting you to build an application using Instadapp Developer Platform. Your questions and feedback help us make a better development environment for future developers.

Best way to stay connected with our progress.