Skip to content

Introduction

The following methods are used to empower your service with CryptoZilla exchange features. CryptoZilla API is a white-label exchange solution.

Getting Started

  1. Read the following documentation;
  2. Register on the CryptoZilla website if you don't have an account yet.
  3. Contact us at [email protected] to register your:
  • E-mail address connected to your account;
  • Public API key;
  1. If you have any questions, please write us at [email protected].

Your API Extra Fee

After setting up an API key, you may want to set up your API extra fee.

To set up an extra commission, please email us with a link to your service.

List of available currencies

GET v1/currencies

This API endpoint returns the list of available currencies.

HTTP request

https://cryptozilla.pro/api/v1/currencies

Request

Header parameters

Name Type Required Description
X-Api-Key string true Your API key

Parameters

No options

Response

application/json
{
  "result": [
    {
      "name": "USDT",
      "coinName": "USDT",
      "tagname": "",
      "network": "ERC20",
      "addrRegex": "^(0x)[0-9A-Fa-f]{40}$",
      "enabled": true
    },
    {
      "name": "USDTTRC20",
      "coinName": "USDT",
      "tagname": "",
      "network": "TRC20",
      "addrRegex": "^T[1-9A-HJ-NP-Za-km-z]{33}$",
      "enabled": true
    }
  ]
}

List of all available pairs

GET v1/pairs

This API endpoint returns the list of all available pairs. Some currencies get enabled or disabled from time to time, so make sure to refresh the list occasionally.

HTTP request

https://cryptozilla.pro/api/v1/pairs

Request

Header parameters

Name Type Required Description
X-Api-Key string true Your API key

Parameters

No options

Response

application/json
{
"result": [
{
"from": "BTC",
"to": "USDT"
},
{
"from": "ETH",
"to": "USDTTRC20"
},
{
"from": "BTC",
"to": "XMR"
}
]
}

Estimated exchange rate

GET v1/rate

This API endpoint returns estimated exchange rate for the exchange. You need to provide the request with currency pair (from, to) and the amount user is going to exchange.

HTTP request

https://cryptozilla.pro/api/v1/rate

Request

Header parameters

Name Type Required Description
X-Api-Key string true Your API key

Parameters

Name Type Required Description
from string true Ticker of the currency you want to exchange.
to string true Ticker of the currency you want to receive.
amount string true Amount of currency that user is going to send.

Response

application/json
{
"result": {
"from": "BTC",
"to": "USDT",
"amount": 0.1,
"rate": 3500
}
}

Create exchange

POST v1/exchange

This API endpoint create new exchange. After a successful call of create exchange method, you get a unique ID to track the exchange status and a payin address for user to send money to.

HTTP request

https://cryptozilla.pro/api/v1/exchange

Request

Header parameters

Name Type Required Description
X-Api-Key string true Your API key

Body parameters

Name Type Required Description
from string true Ticker of the currency you want to exchange.
to string true Ticker of the currency you want to receive.
amount string true Amount of currency that user is going to send.
destinationAddress string true Recipient address.
destinationTag string false Recipient address tag.

Response

application/json
{
"result": {
"id": "di67******daa9",
"from": "BTC",
"to": "ETH",
"status": "new",
"depositAddress": "bc1q8h************yx6n4m",
"depositTag": null,
"destinationAddress": "0xFc9E************1C4c2",
"destinationTag": null,
"depositTxHash": "483373************5fbbea",
"amountExpectedFrom": 1,
"amountExpectedTo": 30.3,
"amountFrom": 1,
"amountTo": 30.4,
"createdAt": "15.03.2023 09:36:28",
"txHash": "0xfcf2************51affa"
}
}

Get status

GET v1/exchange

With the exchange ID obtained from create exchange call, you can get exchange status to notify your user or provide additional support.

HTTP request

https://cryptozilla.pro/api/v1/exchange

Request

Header parameters

Name Type Required Description
X-Api-Key string true Your API key

Parameters

Name Type Required Description
id string true Exchange ID.

Response

application/json
{
"result": {
"id": "di67******daa9",
"from": "BTC",
"to": "ETH",
"status": "new",
"depositAddress": "bc1q8h************yx6n4m",
"depositTag": null,
"destinationAddress": "0xFc9E************1C4c2",
"destinationTag": null,
"depositTxHash": "483373************5fbbea",
"amountExpectedFrom": 1,
"amountExpectedTo": 30.3,
"amountFrom": 1,
"amountTo": 30.4,
"createdAt": "15.03.2023 09:36:28",
"txHash": "0xfcf2************51affa"
}
}