The following methods are used to empower your service with Changelly exchange features. You can request more features by contacting our developers team. Changelly API is a white-label exchange solution.
- Basic info
- Fixed Rate Exchange Feature
- Getting started
- Your API extra fee
- Usage - Use Case - Protocol - Authentication * Node.js authentication * Postman authentication - Currency List - Minimum Exchangable Amount - Estimated Exchange Amount - Generating Transaction - Identifying The Transaction - Getting Exchange Status
- Fixed Rate Methods
- Currencies logo
- KYC/AML Policy
- Support
- Generate API Keys
- Please read for better understanding https://medium.com/@Changelly/changelly-api-to-robust-your-crypto-business-25f5030bc803.
- Welcome to check these articles on implementation examples in the other crypto wallets: Trezor, BRD, Coinomi, Ginco, Huobi, Jelurida
- The usage scheme could be useful for you.
- Please note, that for currencies with multiple outputs in a transaction (BTC, LTC, etc), we do not accept more than one output per address in one transaction
- New way of exchanging the crypto assets
- 90+ cryptos available for the fixed-rate exchanges
- Users get the exact amount of money as they expected
- Less technical support requests on the subject of rate fluctuation and compensation
- Contact us at pro@changelly.com to get the API keys;
- Read the following documentation;
- Open an issue if you have any questions;
After setting up an API key you may want to set up your API extra fee.
For example, you may choose to charge a 0.5% fee on top of Changelly exchange fee.
To set up an extra commission, please email us with a link to your service.
Your API extra commission is included in a result of getExchangeAmount function call. All fees are always in output currency.
Implementation examples on GitHub:
Postman Collection and short description of API methods with examples: https://api-docs.changelly.com. You will need to set up authentication to use Postman with our API.
API URL: https://api.changelly.com
Here is simple use case of our exchange API:
- API — get available at the current moment list of currencies with
getCurrenciesorgetCurrenciesFullmethod; - GUI — ask user for currency pair he wants to exchange. For example, it can be LTC (Litecoin) to ETH (Ethereum);
- API — get minimum exchangeable amount for selected currency pair with
getMinAmountmethod; - GUI — ask user for the amount to exchange;
- API — call
getExchangeAmountmethod to get estimated ETH amount after exchange; - GUI — show an estimated amount to user and ask for confirmation;
- GUI — ask user for his wallet address to send coins after exchange;
- API — call
createTransactionmethod to get the LTC address to which user should send his funds; - GUI — ask user to send LTC coins to the address for exchange;
- User sends LTC. We receive LTC and exchange it for ETH. We send ETH to the address that was submitted to
createTransactionmethod; - Via
getTransactionsmethod you can get all the transactions history.
Changelly API uses JSON-RPC 2.0 protocol.
Example request:
{
"jsonrpc": "2.0",
"id": "test",
"method": "getMinAmount",
"params": {
"from": "ltc",
"to": "eth"
}
}Example response:
{
"jsonrpc": "2.0",
"id": "test",
"result": "0.0008563"
}Id used is a custom ID generated at the client side to distinguish responses. You may use any value you want.
All requests must contain the following headers:
| Header | Description |
|---|---|
| api-key | your api key |
| sign | the query's serialized body signed by your key's "secret" according to the HMAC-SHA512 method |
Example of how to sign a request with node.js crypto module:
const crypto = require("crypto");
const message = {
"jsonrpc": "2.0",
"id": "test",
"method": "getMinAmount",
"params": {
"from": "ltc",
"to": "eth"
},
};
const sign = crypto
.createHmac('sha512', apiSecret)
.update(JSON.stringify(message))
.digest('hex');Here is a small guide how to properly sign transaction with postman:
- Add new environment.
- Add
signandapi-keyvariables to the new environment.
- Create new request. Being on the
Headerstab addsignandapi-keyheaders. Use postman variable syntax for them inValuecolumn. These variables will be updated for each request using the pre-request script.
- Paste the following code to the
Pre-request Scripttab for the request. Fill up the apiKey and secret variables. Be very careful not to accidentally share your secret.
const crypto = require('crypto-js')
const apiKey = ''
const secret = ''
const sign = crypto.HmacSHA512(request.data, secret).toString()
postman.setEnvironmentVariable('apiKey', apiKey)
postman.setEnvironmentVariable('sign', sign)Commands getCurrencies and getCurrenciesFull will return you the currency list available for exchange. Check the list of available currencies at Supported currencies page before you start. Example request:
{
"jsonrpc": "2.0",
"id": "test",
"method": "getCurrencies",
"params": {},
}Example response:
{
"jsonrpc": "2.0",
"id": "test",
"result": [
"btc",
"ltc",
"eth",
"doge",
"xrp",
"xem",
"lsk",
"xmr",
"zec"
]
}{
"id": "test",
"jsonrpc": "2.0",
"method": "getCurrenciesFull",
"params": {
}
}Example response:
{
"jsonrpc": "2.0",
"id": "test",
"result": [
{
"name": "btc",
"ticker": "btc",
"fullName": "Bitcoin",
"enabled": true,
"enabledFrom": true,
"enabledTo": true,
"fixRateEnabled": true,
"payinConfirmations": 2,
"extraIdName": null,
"addressUrl": "https://www.blockchain.com/btc/address/%1$s",
"transactionUrl": "https://www.blockchain.com/btc/tx/%1$s",
"image": "https://web-api.changelly.com/api/coins/btc.png",
"fixedTime": 1200000
}
]
}Note and warning: getCurrencies returns a list of currently enabled currencies. We can disable and enable any currency at any time and the response list will reflect the change. Use getCurrenciesFull to get list of all available currencies along with description and state.
To proceed with exchange we need it to be larger than the certain amount. Use getMinAmount with a currency pair (from, to) to notify users of the minimum amount they need to send.
Example:
{
"jsonrpc": "2.0",
"id": "test",
"method": "getMinAmount",
"params": {
"from": "ltc",
"to": "eth",
}
}Example response:
{
"jsonrpc": "2.0",
"id": "test",
"result": "0.0008563"
}NOTE: most of the users do not read the information about the minimum amount. Be sure to highlight this information in your UI. If users send less than the minimum amount, their coins will likely be lost.
You can show users the estimated amount of coins they receive as a result of exchange using getExchangeAmount. You need to provide the request with currency pair (from, to) and the amount user is going to exchange. Estimated result property includes Changelly plus partner extra fee. All fees are always in output currency. Your API extra fee will decrease the estimated result.
Example:
{
"jsonrpc": "2.0",
"id": "test",
"method": "getExchangeAmount",
"params": {
"from": "ltc",
"to": "eth",
"amount": "3.99"
},
}Example response:
{
"jsonrpc": "2.0",
"id": "test",
"result": "0.72596439091239070521"
}When requesting more than 1 currency pair with getExchangeAmount you just have to pass array of arguments.
{
"jsonrpc": "2.0",
"method": "getExchangeAmount",
"params": [
{
"from": "eth",
"to": "wax",
"amount": "1"
},
{
"from": "btc",
"to": "wax",
"amount": "1"
}
],
"id": 1
}Example response:
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"from": "eth",
"to": "wax",
"networkFee": "10.0000000000000000000000",
"amount": "1",
"result": "3279.52",
"visibleAmount": "3296",
"rate": "3296",
"fee": "16.48"
},
{
"from": "btc",
"to": "wax",
"networkFee": "10.0000000000000000000000",
"amount": "1",
"result": "126612.755",
"visibleAmount": "127249",
"rate": "127249",
"fee": "636.245"
}
]
}If you want to receive an extended response when calling getExchangeAmount (with network fee, exchange fee, and other parameters included), please pass the request params as an array.
{
"id": "test",
"jsonrpc": "2.0",
"method": "getExchangeAmount",
"params": [{
"from": "ETH",
"to": "BTC",
"amount": "1"
}]
}Example response:
{
"jsonrpc": "2.0",
"id": "test",
"result": [
{
"from": "eth",
"to": "btc",
"networkFee": "0.0005000000000000000000",
"amount": "1",
"result": "0.03558319",
"visibleAmount": "0.03572609437751004016",
"rate": "0.03572609437751004016",
"fee": "0.00014290437751004016064"
}
]
}Example response fields:
| Property | Description |
|---|---|
| from | currency to exchange from |
| to | currency to exchange for |
| amount | amount of currency you are going to send |
| networkFee | commission that is taken by the network from the amount sent to the user |
| visibleAmount | the amount before any fees are deducted |
| rate | current rate of exchange |
| fee | exchange fee |
| result | includes exchange fee |
After a successful call of createTransaction method you get a unique id to track the transaction status and a payin address for user to send money to.
createTransaction, once get called, creates a pair of deposit and payout address. If somebody sends coins to the same address twice, without second call to createTransaction, the coins will be exchanged and sent to the user's payout address.
| Property | Required or optional | Description |
|---|---|---|
| from | required | currency to exchange from |
| to | required | currency to exchange for |
| address | required | recipient address |
| extraId | optional | property for addresses of currencies that use additional ID for transaction processing (XRP, XLM, EOS, IGNIS, BNB, XMR, ARDOR, DCT, XEM) |
| refundAddress | optional | used in case of refund |
| refundExtraId | optional | same as of extraId but for refundAddress |
Example request:
{
"jsonrpc": "2.0",
"id": "test",
"method": "createTransaction",
"params": {
"from": "doge",
"to": "ltc",
"address": "<<valid ltc address>>",
"extraId": null,
"amount": 1
}
}Example response:
{
"jsonrpc": "2.0",
"id": "test",
"result": {
"id": "jev5lt0qmg26h48v",
"apiExtraFee": "0",
"changellyFee": "0.5",
"payinExtraId": null,
"payoutExtraId": null,
"amountExpectedFrom": 1,
"amountExpectedTo": 3.99,
"status": "new",
"currencyFrom": "eth",
"currencyTo": "ltc",
"amountTo": 0,
"payinAddress": "<<doge address to send coins to>>",
"payoutAddress": "<<valid ltc address>>",
"createdAt": "2018-09-24T10:31:18.000Z"
}
}Example response fields:
| Property | Description |
|---|---|
| id | Transaction ID. Could be used in getStatus method |
| apiExtraFee | Your API Extra fee in percents |
| changellyFee | Changelly fee in percents |
| payinAddress | Address for a user to send coins to |
| payinExtraId | ExtraId for payinAddress in case it is required |
| payoutAddress | Address where the exchange result will be sent to |
| payoutExtraId | ExtraId for payoutAddress in case it is required |
| amountExpectedFrom | amount from createTransaction |
| amountExpectedTo | result from getExchangeAmount at the moment of createTransaction |
| status | Transaction status |
| currencyTo | Ticker of input currency |
| currencyFrom | Ticker of output currency |
| amountTo | Real amount after the exchange that was sent to payoutAddress |
| createdAt | Point of time when the transaction was created |
Example 2 request:
{
"jsonrpc": "2.0",
"id": "test",
"method": "createTransaction",
"params": {
"from": "doge",
"to": "ltc",
"address": "<<valid ltc address>>",
"extraId": null,
"amount": 1,
"refundAddress": "<<valid doge address to make automatic refund in case of transaction fail>>",
"refundExtraId": null
},
}Example 2 response:
{
"jsonrpc": "2.0",
"id": "test",
"result": {
"id": "pgj49c80p572minj",
"apiExtraFee": "0",
"changellyFee": "0.5",
"payinExtraId": null,
"payoutExtraId": null,
"refundAddress": "<<doge refund address>>",
"refundExtraId": null,
"amountExpectedFrom": 1,
"status": "new",
"currencyFrom": "eth",
"currencyTo": "ltc",
"amountTo": 0,
"payinAddress": "<<doge address to send coins to>>",
"payoutAddress": "<<valid ltc address>>",
"createdAt": "2018-09-24T10:33:39.000Z"
}
}Note: amountTo: 0 is expected. amountTo will have non-zero value when transaction is in finished state.
To identify transaction the id from the createTransaction method is used.
Also you can use getTransactions method to list all transactions that satisfy request params.
Note on transaction processing: It's common situation when there are many transactions in waiting status when processing payin. In this case transaction with waiting status and the nearest amount is selected. And in case there are many - the earleast of them is selected. If the are no transactions in waiting status then new transaction is created automatically.
All parameters for this method are optional.
| Parameter | Description |
|---|---|
| currency | currencyFrom to filter |
| address | sender address to filter |
| extraId | use if address needs any extraId |
| limit | how many records to retreive |
| offset | records cursor |
Example request:
{
"jsonrpc": "2.0",
"id": "test",
"method": "getTransactions",
"params": {
"currency": "doge",
"address": "<<payin address to search>>",
"extraId": null,
"limit": 10,
"offset" : 10
}
}Example response:
{
"jsonrpc": "2.0",
"id": "test",
"result": [{
"id": "pgj49c80p572minj",
"createdAt": 1537785219,
"moneyReceived": 0,
"moneySent": 0,
"payinConfirmations": "0",
"status": "waiting",
"currencyFrom": "doge",
"currencyTo": "ltc",
"payinAddress": "<<payin address>>",
"payinExtraId": null,
"payinHash": null,
"amountExpectedFrom": "1",
"payoutAddress": "",
"payoutExtraId": null,
"payoutHash": null,
"refundHash": null,
"amountFrom": "",
"amountTo": "0",
"networkFee": null,
"changellyFee": "0.5",
"apiExtraFee": "0"
}, {
"id": "7kcc21x5z66f5vv9",
"createdAt": 1535638050,
"moneyReceived": 1535638050,
"moneySent": 0,
"payinConfirmations": "1",
"status": "confirming",
"currencyFrom": "btc",
"currencyTo": "doge",
"payinAddress": "<<payin address>>",
"payinExtraId": null,
"payinHash": "txid4",
"amountExpectedFrom": "0",
"payoutAddress": "<<payout address>>",
"payoutExtraId": null,
"payoutHash": null,
"refundHash": null,
"amountFrom": "1",
"amountTo": "0",
"networkFee": null,
"changellyFee": "0.5",
"apiExtraFee": "0"
}]
}To get details on a specific transaction, just include the "id" parameter in your request:
{
"id": "test",
"jsonrpc": "2.0",
"method": "getTransactions",
"params": {
"id": "ahvt********dnfo",
"limit": 10
}
}Example response:
{
"jsonrpc": "2.0",
"id": "test",
"result": [
{
"id": "ahvt********dnfo",
"trackUrl": "https://changelly.com/track/ahvt********dnfo",
"createdAt": 1617187096,
"type": "float",
"moneyReceived": 0,
"moneySent": 0,
"rate": "0.00021545",
"payinConfirmations": "0",
"status": "waiting",
"currencyFrom": "xlm",
"currencyTo": "eth",
"payinAddress": "GDX6FFZUVSYTOV****************HUXXPXYOUIOY6CDQXG4NP6OEQ7",
"payinExtraId": "9783********7653",
"payinExtraIdName": "Memo.ID",
"payinHash": null,
"payoutHashLink": null,
"refundHashLink": null,
"amountExpectedFrom": "500",
"payoutAddress": "0xCde3463364****************73d7f91136Ac34",
"payoutExtraId": null,
"payoutExtraIdName": null,
"payoutHash": null,
"refundHash": null,
"amountFrom": "",
"amountTo": "0",
"amountExpectedTo": "0.10746",
"networkFee": "0",
"changellyFee": "0.25",
"apiExtraFee": "0.00",
"totalFee": null,
"fiatProviderId": null,
"fiatProvider": null,
"fiatProviderRedirect": null,
"canPush": false,
"canRefund": false
}
]
}Note: first
With the transaction ID, obtained from createTransaction call, you can get exchange status to notify your user or provide additional support.
Example:
{
"jsonrpc": "2.0",
"id": "test",
"method": "getStatus",
"params": {
"id": "pgj49c80p572minj"
}
}Example response:
{
"jsonrpc": "2.0",
"id": "test",
"result": "waiting"
}Possible transaction statuses:
| Status | Description |
|---|---|
| waiting | Transaction is waiting for an incoming payment. |
| confirming | We have received payin and are waiting for certain amount of confirmations depending of incoming currency. |
| exchanging | Payment was confirmed and is being exchanged. |
| sending | Coins are being sent to the recipient address. |
| finished | Coins were successfully sent to the recipient address. |
| failed | Transaction has failed. In most cases, the amount was less than the minimum. Please contact support and provide a transaction id. |
| refunded | Exchange failed and coins were refunded to user's wallet. The wallet address should be provided by user. |
| hold | Due to AML/KYC procedure, exchange may be delayed |
| expired | In case payin for fixed-rate transaction was not sent within the indicated timeframe |
For fixed-rates we’ve added three methods in our API: getFixRate, getFixRateForAmount and createFixTransaction.
API Call - getFixRate
Request params example:
{
"id": "test",
"jsonrpc": "2.0",
"method": "getFixRate",
"params": [
{
"from": "eth",
"to": "btc"
},
{
"from": "eth",
"to": "wax"
}
]
}Response example:
{
"jsonrpc": "2.0",
"id": "test",
"result": [
{
"id": "f4dd43106d63b65b88955a0b362645ce960987c7ffb7a8480dd32e799431177f",
"result": "0.02556948",
"from": "eth",
"to": "btc",
"maxFrom": "50.000000000000000000",
"maxTo": "1.27847400",
"minFrom": "0.148414210000000000",
"minTo": "0.00379488"
},
{
"id": "f4dd43107876ad5b88955a0b362645ce960a87c0fdb7ab540ed635799230107e830d3f",
"result": "3237.50839254",
"from": "eth",
"to": "wax",
"maxFrom": "27.799155735744717075",
"maxTo": "89999.99999999",
"minFrom": "0.187060000000000000",
"minTo": "605.60831991"
}
]
}- minFrom, minTo, maxFrom, maxTo - denote the frame, inside of which we would be able to perform the fix rate exchange and give to the user the exact amount of assets that was shown initially
- “Max” and “min” params here denote the frame, inside of which we would be able to perform the fix rate exchange and give to the user the exact amount of assets that was shown initially
- fix rate methods return
rateIdthat can be used for 1 minute or 30 sec ingetFixRateForAmount. This time should be enough for user to initiate the exchange idhas to be stored somewhere and will be used asrateIdparam while calling- Expired
rateIdcannot be used for creation of the fixed-rate transaction resultorrateis a parameter that you can show to the user as the exchange rate- Important: users shall send the exact amount of funds which were specified as a pay-in amount. In case, users send different sum - the transaction can be automatically refunded
- Important: for fixed rate transactions to process successfully, refund address must be presented as well as refund extraId if needed
getFixRateForAmount returns a fixed exchange result of amount provided. It needs an additional parameter amountFrom user is going to exchange and returns amountTo user receive.
First of all, you need to be sure about your amount is greater or equal than minimal amount and less or equal than maximal amount.
For this, you need to call getPairsParams for fetching minimal and maximal amount for current pair.
{
"id": "test",
"jsonrpc": "2.0",
"method": "getPairsParams",
"params": [
{
"from": "eth",
"to": "btc"
},
{
"from": "btc",
"to": "eth"
}
]
}getPairsParams response:
{
"jsonrpc": "2.0",
"id": "test",
"result": [
{
"from": "eth",
"to": "btc",
"minAmountFloat": "0.0465",
"maxAmountFloat": "449172.45240999997",
"minAmountFixed": "0.0775",
"maxAmountFixed": "100"
},
{
"from": "btc",
"to": "eth",
"minAmountFloat": "0.0015",
"maxAmountFloat": "25629.527850432485",
"minAmountFixed": "0.0025",
"maxAmountFixed": "3.2138"
}
]
}minAmountFixed and maxAmountFixed gives a range for amount provided by user.
So, main difference between getFixRateForAmount and getFixRate methods is that getFixRateForAmount fetch fixed amount according to additional parameter field amountFrom.
Request params example:
{
"id": "test",
"jsonrpc": "2.0",
"method": "getFixRateForAmount",
"params": [
{
"from": "eth",
"to": "btc",
"amountFrom": "5.2"
},
{
"from": "eth",
"to": "wax",
"amountFrom": "2.25"
}
]
}Response example:
{
"jsonrpc": "2.0",
"id": "test",
"result": [
{
"id": "f4dd43106d63b65b88955a0b362645ce960987c7ffb7a8480dd32e799431177f",
"rate": "0.02556948",
"from": "eth",
"to": "btc",
"amountFrom": "5.2",
"amountTo": "0.132961296"
},
{
"id": "f4dd43107876ad5b88955a0b362645ce960a87c0fdb7ab540ed635799230107e830d3f",
"rate": "3237.50839254",
"from": "eth",
"to": "wax",
"amountFrom": "2.25",
"amountTo": "7284.393883215"
}
]
}idhas to be stored somewhere and will be used asrateIdparam for 30 seconds while calling.- Expired
rateIdcannot be used for creation of the fixed-rate transaction. rateis a parameter that you can show to the user as the exchange rate.fromandtoparameters are present exchange pair provided by user.amountFromis a copy of provided by useramountFromrequest's parameter.amountTois fixed exchange amount of assets that user will receive after create fixed-rate transaction with currentrateId.
If amount will not be correspond with minimal and maximal range for amount than error will be thrown.
Request params example:
{
"id": "test",
"jsonrpc": "2.0",
"method": "getFixRateForAmount",
"params": [
{
"from": "eth",
"to": "btc",
"amountFrom": "0.00034"
}
]
}Response example:
{
"jsonrpc": "2.0",
"id": "test",
"error": {
"code": -32600,
"message": "invalid amount: minimal amount is 0.28200000000000000"
}
}-
Using
createFixTransactionyou need to provide the request with currency pair (from,to), recipient address, refund address (used in case of refund), rateID for this pair (that you get in getFixRate/getFixRateForAmount requests) and theamountFromuser is going to exchange, oramountTouser wants to receive. All fields are required -
Important: in response there will be same fields presented as with the float rate api with
amountExpectedTo. The number shown in theamountExpectedToshould be understood as a pay-out amount to the user -
In response there is a payTill field, where is indicated till what time user needs to make the payment
-
Using
createFixTransactionyou can provide a sum, user wants to receive during the exchange. For this you need to indicate the sum in the fieldamountTo -
Important: you can’t provide fields
amountFromand amountTo at the same time.
Example request fields:
| Property | Required or optional | Description |
|---|---|---|
| from | required | currency to exchange from |
| to | required | currency to exchange for |
| address | required | recipient address |
| refundAddress | required | used in case of refund |
| amountFrom | required | amount user is going to exchange |
| amountTo | required | amount user wants to receive |
| rateId | required | that you get from getFixRate/getFixRateForAmount requests |
| extraId | optional | property for addresses of currencies that use additional ID for transaction processing (XRP, XLM, EOS, IGNIS, BNB, XMR, ARDOR, DCT, XEM) |
| refundExtraId | optional | same as of extraId but for refundAddress |
Example of request with providing the sum user wants to send:
Request:
{
"id": "test",
"jsonrpc": "2.0",
"method": "createFixTransaction",
"params": {
"from": "btc",
"to": "eth",
"address": "0xee*******5E3DFc214",
"amountFrom": "1",
"rateId": "f3dd48106a63b*********b7ab5413d32c7b96301a7e82",
"refundAddress": "1Bvjij5653y9****BGPuQBPzTZpb"
}
}Response:
{
"jsonrpc": "2.0",
"id": "test",
"result": {
"id": "149a****m90",
"apiExtraFee": "0",
"changellyFee": "0.5",
"payinExtraId": null,
"payoutExtraId": null,
"refundAddress": "1Bvjij5653y9r********QBPzTZpb",
"amountExpectedFrom": "1.00000000",
"amountExpectedTo": "32.277489930000000000",
"payTill": "2019-05-28T13:30:26.898Z",
"status": "new",
"currencyFrom": "btc",
"currencyTo": "eth",
"amountTo": 0,
"payinAddress": "3EkyEjzs********vZ95AyTM",
"payoutAddress": "0xeee031413*******B8Cf5E3DFc214",
"createdAt": "2019-05-28T13:10:26.000Z"
}
}Example of request with providing the sum user wants to receive:
Request:
{
"id": "test",
"jsonrpc": "2.0",
"method": "createFixTransaction",
"params": {
"from": "btc",
"to": "eth",
"address": "0xeee031*******E3DFc214",
"amountTo": "0.0390573347142",
"rateId": "f3dd48106a63bd5b88955a05********32c7495301a7783",
"refundAddress": "1Bvjij5653y9r******QBPzTZpb"
}
}Response:
{
"jsonrpc": "2.0",
"id": "test",
"result": {
"id": "44******kvi7bh",
"apiExtraFee": "0",
"changellyFee": "0.5",
"payinExtraId": null,
"payoutExtraId": null,
"refundAddress": "1Bvjij5653*********BPzTZpb",
"amountExpectedFrom": "0.00121000",
"amountExpectedTo": "0.0390573347142",
"payTill": "2019-05-28T13:42:17.079Z",
"status": "new",
"currencyFrom": "btc",
"currencyTo": "eth",
"amountTo": 0,
"payinAddress": "3FWBE******nTBSeMN9dLHRQ",
"payoutAddress": "0xeee03************Cf5E3DFc214",
"createdAt": "2019-05-28T13:22:17.000Z"
}
You can get logo of each currency with
https://web-api.changelly.com/api/coins/btc.png
- Kindly note that we have AML/KYC policy;
- Due to this policy, users’ transactions may be held for KYC procedures;
- That is why, before users start an exchange via our API, please, notify them about the possibility of holding the transactions for KYC procedures;
- You may want to use the following text: “Exchange services provided by Changelly. By clicking “Accept”, I acknowledge and understand that my transaction may trigger AML/KYC verification according to Changelly AML/KYC”;
- The text may appear in a form of a pop-up window, you are welcome to check the examples of a desktop version notification and a mobile version notification;
- If a transaction of your customer gets ‘hold’ status, please ask the customer to contact our security team at security@changelly.com in order to pass the KYC procedure.
Changelly provides two options for support. Please choose your support line and inform us at pro@changelly.com:
— You just redirect users to our support line;
— You provide the first line support from your side and send your tickets directly to our dedicated email address. These tickets are forwarded strictly to our second level support team. It will be assigned the highest priority. Please don't make our email public.
Inform us in case the dedicated support line is needed. Feel free to request it at pro@changelly.com.
Also, send us a link to your service, confirm that you are ready to provide support from your side and you won’t share this email with your clients.
The support line option is provided at the discretion of the Changelly's developer team.
You can check all the transactions with online stats on the history page in your personal account.
| Code | Method | Message | Description |
|---|---|---|---|
-32600 | getFixRateForAmount, getExchangeAmount |
| The attempt to exchange more currency than a maximal amount. |
getFixRateForAmount, getExchangeAmount |
| The attempt to exchange less currency than a minimal amount. | |
| Any method |
| You have been sending more than 10 requests per second. | |
-32601 | N/A |
| The method you're calling doesn't exist. |
-32602 | Any method containing from/to parameter |
| This currency is currently disabled. |
getFixRate, getFixRateForAmount, createFixTransaction |
| This currency is currently disabled for fix-rate transactions. | |
| Any method containing from/to parameter |
| This currency is currently disabled on API as an output currency. | |
| Any method containing from/to parameter |
| This currency is currently disabled on API as an input currency. | |
| Any method containing from/to parameter |
| This currency is not listed on Changelly. | |
createTransaction, |
| You've specified an invalid payout address. | |
createFixTransaction |
| You've specified an invalid refund address. | |
| Any method |
| You've specified an invalid parameter. | |
createTransaction |
| The amount you've specified exceeds maximal volume. | |
| createFixTransaction | Error: rateId was expired or already used. Use method getFixRateForAmount to generate new rateId | New rateId has to be generated. | |
-32603 | createFixTransaction |
| The limit for creating fix-rate transactions was exceeded. Please wait for 5 more minutes and try again. |
| createTransaction |
| An error occurred during address generation. | |
| Any method |
| Most likely, the problem is on our side. Further investigation is required. | |



