Bazonix API Documentation

Introduction

To use the Bazonix API, you must specify the key parameter (API key), which is issued after registration in the Partner Program.

Base API URL: https://bazonix.com/v1/api

All responses are returned in JSON format.

GET Methods

/currencies — Get Supported Currencies

Returns a list of all coins available for operations on the platform.

GET
https://bazonix.com/v1/api/currencies?key=8h238xk4g7x002b7s

Parameters:

  • key (string): Your API key

Example response (200):

{
  "XMR": {
    "coinName": "Monero",
    "minamount": 9.95,
    "maxamount": 29850,
    "tagname": "",
    "network": "Monero",
    "available": true
  },
  "ZEC": {
    "coinName": "Zcash",
    "minamount": 99.5,
    "maxamount": 149250,
    "tagname": "",
    "network": "Zcash",
    "available": true
  },
  "XRP": {
    "coinName": "XRP",
    "minamount": 5888.55925,
    "maxamount": 8200256.44,
    "tagname": "TAG",
    "network": "Ripple",
    "available": true
  },
  "XLM": {
    "coinName": "Stellar",
    "minamount": 33197.44865,
    "maxamount": 40072953.375,
    "tagname": "MEMO",
    "network": "Stellar Lumens",
    "available": true
  },
  ...
}

Note: if the tagname field is not empty, a tag is required for this currency when transferring.

/pairs — Get Currency Pairs

Returns all available currency pairs for exchange.

GET
https://bazonix.com/v1/api/pairs?key=8h238xk4g7x002b7s

Parameters:

  • key (string): Your API key

Example response (200):

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

/rate — Get Current Exchange Rate

Allows you to get the current exchange rate between two currencies. The miner fee is not included in the rate and is charged separately.

GET
https://bazonix.com/v1/api/rate?key=8h238xk4g7x002b7s&from=XMR&to=BTC&amount=387.9

Parameters:

  • key (string): Your API key
  • from (string): Source currency, e.g. ZEC
  • to (string): Target currency, e.g. BTC
  • amount (float): Amount to exchange, e.g. 1000

Example response (200):

{
  "minamount": 101.291,
  "maxamount": 141748.695,
  "rate": 1.0440850508752765,
  "withdrawalFee": 0.002 BTC,
  "result": true
}

* withdrawalFee — approximate withdrawal fee, may vary.

/validate-address — Address Validation

This method allows you to check if the specified address is valid for the selected cryptocurrency.

GET
https://bazonix.com/v1/api/validate-address?key=8h238xk4g7x002b7s¤cy=USDTERC20&address=0x5867c19db1c1d05ba1034a9162c4c78ca8830f3ccb0eeedd977c91385dd30169

Parameters:

  • key (string): Your API key, e.g. 8h238xk4g7x002b7s
  • currency (string): Currency, e.g. USDTERC20
  • address (string): Address to validate, e.g. 0x5867c19db1c1d05ba1034a9162c4c78ca8830f3ccb0eeedd977c91385dd30169

Example response (200):

{
    "result": true
}

/exchange-create — Create New Exchange Request

Allows you to create an exchange request between two currencies.

GET
https://bazonix.com/v1/api/exchange-create?key=8h238xk4g7x002b7s&from=XMR&to=ZEC&amount=26.4509&destinationAddress=33NWPY7z4vHzMnuyzRJg6hUvMXDw5Y7v9o&refundAddress=87mEgetMnPSMMKsAFRRf7UMKLSdzdke99Rk63PYZv5hYeUmx29gEd9PKbwiQ7ZsYv7AJMKZ3515E

Parameters:

  • key (string): Your API key
  • destinationAddress (string): Recipient address
  • destinationTag (string, optional): Recipient tag (if required)
  • refundAddress (string): Refund address
  • refundTag (string, optional): Refund tag (if required)
  • from (string): Source currency
  • to (string): Target currency
  • amount (float): Exchange amount

Example response (200):

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

/exchange-status — Check Exchange Status

Allows you to get the current status of an exchange request.

GET
https://bazonix.com/v1/api/exchange-status?key=8h238xk4g7x002b7s&id=43c393b8-1dc6-40e3-ad83-d721bf467ac1

Parameters:

  • key (string): Your API key
  • id (string): Request ID

Example response (200):

{
    'status'             : 'deposit_received',
    'from'               : 'XMR',
    'to'                 : 'BTC',
    'depositAddress'     : '87mEgetMnPSMMKsAFRRf7UMKLSdzdke99Rk63PYZv5hYeUmx29gEd9PKbwiQ7ZsYv7AJMKZ3515EtJ6uxZvWmksLFtMi7qM',
    'depositTag'         : '',
    'depositTxId'        : '',
    'destinationAddress' : '34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo',
    'destinationTag'     : '',
    'refundAddress'      : '87mEgetMnPSMMKsAFRRf7UMKLSdzdke99Rk63PYZv5hYeUmx29gEd9PKbwiQ7ZsYv7AJMKZ3515E',
    'refundTag'          : '',
    'expectedAmountFrom' : '25.2351',
    'expectedAmountTo'   : '0.198351760777',
    'amountFrom'         : '25.3419',
    'date'               : '12.06.2024 00:13:22',
    'txId'               : null,
    'amountTo'           : null,
    'result'             : true
}

Possible request statuses:

  • waiting_deposit — waiting for deposit
  • deposit_received — deposit received
  • exchanging — exchanging
  • sending — sending funds
  • success — exchange completed successfully
  • time_expired — deposit waiting time expired
  • failed — exchange failed
  • sending_failed — sending failed
  • reverted — funds returned to client