Exwell API Documentation


Start
All requests sent to API Exwell maust include the parameter key (API key) available after signing up to our Partnership Program.

API URI https://exwell.io/v1/api

Response type json


GET REQUESTS


/validate-address - Address Validation
This request checks the validity of the address.
GET
https://exwell.io/v1/api/validate-address?key=1QdX7HY2GTZ7HQTHg&currency=USDT&address=0x651bf10b18d1ecaf7753cfe2457ac1aa23de540b

Parameter

ParameterTypeExample
keystring1QdX7HY2GTZ7HQTHg
currencystringUSDT
addressstring0x651bf10b18d1ecaf7753cfe2457ac1aa23de540b

Response 200

{
    "result":true
}

/rate - Exchange rate for transaction amount
This request gets the current exchange rate. Transaction fee is not included.
GET
https://exwell.io/v1/api/rate?key=1QdX7HY2GTZ7HQTHg&from=ZEC&to=BTC&amount=1000

Parameter

ParameterTypeExample
keystring1QdX7HY2GTZ7HQTHg
fromstringZEC
tostringBTC
amountfloat1000

Response 200

{
  "minamount": 100.4,
  "maxamount": 121334,
  "rate": 0.9835947505534923,
  "withdrawalFee": 0.002 BTC,
  "result": true
}

* withdrawalFee - approximate commission for withdrawal. Floating parameter.


/currencies - Currency List
This request gets the list of all available currencies.
GET
https://exwell.io/v1/api/currencies?key=1QdX7HY2GTZ7HQTHg

Parameter

ParameterTypeExample
keystring1QdX7HY2GTZ7HQTHg

Response 200

{
  "XMR": {
    "coinName": "Monero",
    "minamount": 20.01,
    "maxamount": 23724,
    "tagname": "",
    "network":"Monero",
    "available": true
  },
  "ZEC": {
    "coinName": "Zcash",
    "minamount": 110.06,
    "maxamount": 132304,
    "tagname": "",
    "network":"Zcash",
    "available": true
  },
  "XRP": {
    "coinName": "XRP",
    "minamount": 6180.12,
    "maxamount": 7343941,
    "tagname": "TAG",
    "network":"Ripple",
    "available": true
  },
  "XLM": {
    "coinName": "Stellar",
    "minamount": 34429.06,
    "maxamount": 41095890,
    "tagname": "MEMO",
    "network":"Stellar Lumens",
    "available": true
  },
  ...
}

Note

If the tagname is not an empty value, the tag is a mandatory parameter for this currency.


/pairs - Pairs List
This request gets all pairs available for exchange.
GET
https://exwell.io/v1/api/pairs?key=1QdX7HY2GTZ7HQTHg

Parameter

ParameterTypeExample
keystring1QdX7HY2GTZ7HQTHg

Response 200

{
  "ZEC": [
    "BTC",
    "USDT",
    "USDC",
    "ETH",
    "BTCLIGHTNING",
    "USDTTRC20"
  ],
  "DASH": [
    "USDC",
    "BTC",
    "ETH",
    "USDCTRC20"
  ],
  "DOT": [
    "USDT",
    "BTC",
    "USDC"
  ],
  ...
}

/exchange-create - Exchange Initiation
This request creates – initiates - the exchange.
GET
https://exwell.io/v1/api/exchange-create?key=1QdX7HY2GTZ7HQTHg&from=XMR&to=ZEC&amount=26.4509&destinationAddress=33NWPY7z4vHzMnuyzRJg6hUvMXDw5Y7v9o&refundAddress=87mEgetMnPSMMKsAFRRf7UMKLSdzdke99Rk63PYZv5hYeUmx29gEd9PKbwiQ7ZsYv7AJMKZ3515E

Parameter

ParameterTypeExample
keystring1QdX7HY2GTZ7HQTHg
destinationAddressstring33NWPY7z4vHzMnuyzRJg6hUvMXDw5Y7v9o
destinationTagoptionalstring
refundAddressstring87mEgetMnPSMMKsAFRRf7UMKLSdzdke99Rk63PYZv5hYeUmx29gEd9PKbwiQ7ZsYv7AJMKZ3515E
refundTagoptionalstring
fromstringXMR
tostringBTC
amountfloat26.4509

Response 200

{
    'id'                 : '43c393b8-1dc6-40e3-ad83-d721bf467ac1',
    'from'               : 'XMR',
    'to'                 : 'BTC',
    'expectedAmountFrom' : '26.4509',
    "expectedAmountTo"   : '0.24118351760777',
    'depositAddress'     : '87mEgetMnPSMMKsAFRRf7UMKLSdzdke99Rk63PYZv5hYeUmx29gEd9PKbwiQ7ZsYv7AJMKZ3515E',
    'depositTag'         : '',
}

/exchange-status - Getting exchange status
Getting information about the current exchange status
GET
https://exwell.io/v1/api/exchange-status?key=1QdX7HY2GTZ7HQTHg&id=43c393b8-1dc6-40e3-ad83-d721bf467ac1

Parameter

ParameterTypeExample
keystring1QdX7HY2GTZ7HQTHg
idstring43c393b8-1dc6-40e3-ad83-d721bf467ac1

Response 200

{
    'status'             : 'deposit_received',
    'from'               : 'XMR',
    'to'                 : 'BTC',
    'depositAddress'     : '87mEgetMnPSMMKsAFRRf7UMKLSdzdke99Rk63PYZv5hYeUmx29gEd9PKbwiQ7ZsYv7AJMKZ3515EtJ6uxZvWmksLFtMi7qM',
    'depositTag'         : '',
    'depositTxId'        : '',
    'destinationAddress' : '33NWPY7z4vHzMnuyzRJg6hUvMXDw5Y7v9o',
    'destinationTag'     : '',
    'refundAddress'      : '87mEgetMnPSMMKsAFRRf7UMKLSdzdke99Rk63PYZv5hYeUmx29gEd9PKbwiQ7ZsYv7AJMKZ3515E',
    'refundTag'          : '',
    'expectedAmountFrom' : '26.4509',
    'expectedAmountTo'   : '0.24118351760777',
    'amountFrom'         : '26.4509',
    'date'               : '01.06.2023 10:24:30',
    'txId'               : null,
    'amountTo'           : null,
    'result'             : true
}

Explanatory Note

List of used statuses:
waiting_deposit - waiting for the deposit
deposit_received - deposit is received
exchanging - in the process of exchange
sending - in the process of sending
success - exchange completed successfully
time_expired - the waiting time for funds has expired
failed - the exchange ended with an error
sending_failed - sending attempt failed
reverted - the funds were returned to the client


If you have any questions regarding the integration, be sure to contact us:

© 2022-2024 exwell.io