Skip to main content

Exchange API Use Case


Learn a typical use case of Cripto InterCombio Exchange API:

  1. API — get a list of currently available currencies from the getCurrencies or getCurrenciesFull response.
  2. GUI — ask a user to select an exchange currency pair.
  3. GUI — ask a user to enter an exchange amount.
  4. API — call the getExchangeAmount method to get an estimated amount.
  5. GUI - deduct networkFee from the estimated amount (amountTo) to get the exchange amount.
  6. GUI — show the calculated amount to user.
  7. GUI — ask a user for confirmation.
  8. GUI — ask a user for their wallet address to send coins after the exchange.
  9. API — call the validateAddress method to validate the user wallet address for a given currency.
  10. API — call the createTransaction method to get the address for sending user funds.
  11. GUI — ask user to send coins to the address for the exchange.
info

For the currencies with multiple outputs in a transaction (BTC, LTC, etc), we do not accept more than one output per address in one transaction.