OxaPay Docs
v1
v1
  • Introduction
    • Welcome to OxaPay
    • Integrations
      • Payment Link
      • Donation Service
      • Merchant Service
      • Payout Service
      • Swap Service
      • Plugins
        • WooCommerce
        • WISECP
        • Clientexec
        • Blesta
        • WHMCS
        • PrestaShop
        • Easy Digital Downloads
        • Paid Memberships Pro
        • Gravity Forms
        • Restrict Content Pro
  • API Reference
    • Payment
      • Generate Invoice
      • Generate White Label
      • Generate Static Address
      • Revoking Static Address
      • Static Address List
      • Payment Information
      • Payment History
      • Accepted Currencies
      • Payment Status Table
    • Payout
      • Generate Payout
      • Payout Information
      • Payout History
      • Payout Status Table
    • Swap
      • Swap Request
      • Swap History
      • Swap Pairs
      • Swap Calculate
      • Swap Rate
    • Common
      • Account Balance
      • Prices
      • Supported Currencies
      • Supported Fiat Currencies
      • Supported Networks
      • System Status
    • Error
  • Webhook
  • Use Cases
Powered by GitBook
On this page
  • API Request Sample Codes
  • API Response Example
  1. API Reference
  2. Common

Supported Currencies

This endpoint allows you to access a comprehensive list of supported cryptocurrencies, including their network details, symbol, name, and withdrawal information, enabling you to identify the appropriate network for each currency.

GET https://api.oxapay.com/v1/common/currencies

{
  "data": {
    [currencySymbol: string]:
      {
        "symbol": string,
        "name": string,
        "status": boolean,
        "networks":
        {
          ["networkName": string]:
            {
              "network": string,
              "name": string,
              "required_confirmations": integer,
              "withdraw_fee": decimal,
              "withdraw_min": decimal,
              "deposit_min": decimal,
              "static_fixed_fee": decimal,
            };
        } // Represents dynamic keys (currency symbol) with object values.
    },
  "message": string, // A message containing additional information about the result of the request
    "error": {
      "type": string,
      "key": string,
      "message": string
    } || {}, // An object that provides details about any errors that occurred.
    "status": integer, // The status of the request response. Typically provided as a numeric code (e.g., 200 for success or other codes for errors).
    "version": string // The version of the API being used.
  }

API Request Sample Codes

curl -X GET https://api.oxapay.com/v1/common/currencies
<?php

$url = 'https://api.oxapay.com/v1/common/currencies';

$options = array(
    'http' => array(
        'method' => 'GET'
    ),
);

$context  = stream_context_create($options);
$response = file_get_contents($url, false, $context);
if ($response === FALSE) {
    die('Error occurred');
}

$result = json_decode($response, true);
var_dump($result);

?>
const axios = require('axios');

const url = 'https://api.oxapay.com/v1/common/currencies';

axios.get(url)
  .then((response) => {
    console.log(response.data);
  })
  .catch((error) => {
    console.error(error);
  });
import requests

url = 'https://api.oxapay.com/v1/common/currencies'

response = requests.get(url)
result = response.json()
print(result)

These example code snippets demonstrate how to request the "Supported Currencies" endpoint using different programming languages. You can customize the data parameters according to your specific requirements.

API Response Example

{
    "data": {
        "BTC": {
            "symbol": "BTC",
            "name": "Bitcoin",
            "status": true,
            "networks": {
                "Bitcoin": {
                    "network": "Bitcoin",
                    "name": "Bitcoin Network",
                    "required_confirmations": 2,
                    "withdraw_fee": 0.01,
                    "withdraw_min": 1.0e-5,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 2
                }
            }
        },
        "ETH": {
            "symbol": "ETH",
            "name": "Ethereum",
            "status": true,
            "networks": {
                "Ethereum": {
                    "network": "Ethereum",
                    "name": "Ethereum Network",
                    "required_confirmations": 10,
                    "withdraw_fee": 0.0011,
                    "withdraw_min": 0.00011,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 1
                },
                "Base": {
                    "network": "Base",
                    "name": "Base",
                    "required_confirmations": 10,
                    "withdraw_fee": 0.0017,
                    "withdraw_min": 0.0001,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        },
        "USDT": {
            "symbol": "USDT",
            "name": "Tether",
            "status": true,
            "networks": {
                "Ethereum": {
                    "network": "Ethereum",
                    "name": "Ethereum Network",
                    "required_confirmations": 10,
                    "withdraw_fee": 8,
                    "withdraw_min": 1,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                },
                "Tron": {
                    "network": "Tron",
                    "name": "Tron Network",
                    "required_confirmations": 10,
                    "withdraw_fee": 1,
                    "withdraw_min": 0.01,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                },
                "BSC": {
                    "network": "BSC",
                    "name": "Binance Smart Chain",
                    "required_confirmations": 15,
                    "withdraw_fee": 0.25,
                    "withdraw_min": 0.01,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                },
                "Polygon": {
                    "network": "Polygon",
                    "name": "Polygon Network",
                    "required_confirmations": 250,
                    "withdraw_fee": 1,
                    "withdraw_min": 0.01,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                },
                "TON": {
                    "network": "TON",
                    "name": "TON Network",
                    "required_confirmations": 3,
                    "withdraw_fee": 1,
                    "withdraw_min": 1,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        },
        "USDC": {
            "symbol": "USDC",
            "name": "USD Coin",
            "status": true,
            "networks": {
                "Ethereum": {
                    "network": "Ethereum",
                    "name": "Ethereum Network",
                    "required_confirmations": 10,
                    "withdraw_fee": 8,
                    "withdraw_min": 5,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        },
        "BNB": {
            "symbol": "BNB",
            "name": "BNB",
            "status": true,
            "networks": {
                "BSC": {
                    "network": "BSC",
                    "name": "Binance Smart Chain",
                    "required_confirmations": 15,
                    "withdraw_fee": 5.0e-5,
                    "withdraw_min": 0.0004,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        },
        "DOGE": {
            "symbol": "DOGE",
            "name": "Dogecoin",
            "status": true,
            "networks": {
                "Dogecoin": {
                    "network": "Dogecoin",
                    "name": "Dogecoin Network",
                    "required_confirmations": 12,
                    "withdraw_fee": 0.01,
                    "withdraw_min": 0.0001,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        },
        "POL": {
            "symbol": "POL",
            "name": "Polygon",
            "status": true,
            "networks": {
                "Polygon": {
                    "network": "Polygon",
                    "name": "Polygon Network",
                    "required_confirmations": 250,
                    "withdraw_fee": 0.02,
                    "withdraw_min": 0.001,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        },
        "LTC": {
            "symbol": "LTC",
            "name": "Litecoin",
            "status": true,
            "networks": {
                "Litecoin": {
                    "network": "Litecoin",
                    "name": "Litecoin Network",
                    "required_confirmations": 3,
                    "withdraw_fee": 0.0001,
                    "withdraw_min": 0.002,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        },
        "SOL": {
            "symbol": "SOL",
            "name": "Solana",
            "status": true,
            "networks": {
                "Solana": {
                    "network": "Solana",
                    "name": "Solana Network",
                    "required_confirmations": 30,
                    "withdraw_fee": 0.0006,
                    "withdraw_min": 0.01,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        },
        "TRX": {
            "symbol": "TRX",
            "name": "Tron",
            "status": true,
            "networks": {
                "Tron": {
                    "network": "Tron",
                    "name": "Tron Network",
                    "required_confirmations": 10,
                    "withdraw_fee": 1,
                    "withdraw_min": 0.0001,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        },
        "SHIB": {
            "symbol": "SHIB",
            "name": "Shiba Inu",
            "status": true,
            "networks": {
                "BSC": {
                    "network": "BSC",
                    "name": "Binance Smart Chain",
                    "required_confirmations": 15,
                    "withdraw_fee": 32000,
                    "withdraw_min": 10000,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        },
        "TON": {
            "symbol": "TON",
            "name": "Toncoin",
            "status": true,
            "networks": {
                "TON": {
                    "network": "TON",
                    "name": "TON Network",
                    "required_confirmations": 3,
                    "withdraw_fee": 0.02,
                    "withdraw_min": 0.05,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        },
        "XMR": {
            "symbol": "XMR",
            "name": "Monero",
            "status": true,
            "networks": {
                "Monero": {
                    "network": "Monero",
                    "name": "Monero Network",
                    "required_confirmations": 3,
                    "withdraw_fee": 6.0e-5,
                    "withdraw_min": 0.0001,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        },
        "DGB": {
            "symbol": "DGB",
            "name": "DigiByte",
            "status": true,
            "networks": {
                "DigiByte": {
                    "network": "DigiByte",
                    "name": "DigiByte Network",
                    "required_confirmations": 50,
                    "withdraw_fee": 0.005,
                    "withdraw_min": 0.05,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        },
        "BCH": {
            "symbol": "BCH",
            "name": "Bitcoin Cash",
            "status": true,
            "networks": {
                "BitcoinCash": {
                    "network": "BitcoinCash",
                    "name": "Bitcoin Cash Network",
                    "required_confirmations": 4,
                    "withdraw_fee": 6.0e-5,
                    "withdraw_min": 1.0e-5,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        },
        "NOT": {
            "symbol": "NOT",
            "name": "NotCoin",
            "status": true,
            "networks": {
                "TON": {
                    "network": "TON",
                    "name": "TON Network",
                    "required_confirmations": 3,
                    "withdraw_fee": 55,
                    "withdraw_min": 5,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        },
        "DOGS": {
            "symbol": "DOGS",
            "name": "Dogs",
            "status": true,
            "networks": {
                "TON": {
                    "network": "TON",
                    "name": "TON Network",
                    "required_confirmations": 3,
                    "withdraw_fee": 400,
                    "withdraw_min": 5,
                    "deposit_min": 1.0e-6,
                    "static_fixed_fee": 0
                }
            }
        }
    },
    "message": "Operation completed successfully!",
    "error": {},
    "status": 200,
    "version": "1.0.0"
}

The response example above is provided to help you understand the format and structure of the response. If you have any further questions or need assistance, please feel free to contact to your account manager.

PreviousPricesNextSupported Fiat Currencies

Last updated 3 months ago

Please note that a successful request will return status 200. In case of any issues or validation problems, refer to the corresponding for further details.

error