Get Supported Crypto Currencies List

This endpoint allows you to retrieve a list of supported Curypto Currencies. This is useful in the following context:

  • Pay-In Requests: When creating a Pay-In request, the currency used must be from the Supported Currencies List. For instance, if you’re selling an item priced at BTC 100, but your customer wishes to pay in USDT, or if the item is priced in USDT and the payment is made in USDT, both the fromCurrency and toCurrency fields must reflect valid cryptocurrencies from this list.

  • Pay-Out Requests: Similarly, when processing a Pay-Out request, you can select the cryptocurrency being disbursed. This must also be a currency listed in the Supported Crypto Currencies List to ensure compliance and proper transaction execution.

Endpoint

GEThttps://api.tylt.money/transactions/merchant/getSupportedCryptoCurrenciesList

Request Headers

Name
Type
Example
Description

X-TLP-APIKEY

string

93ee3c5e133697251b5362bcf9cc8532476785t8768075616f58d88

Your Tylt API Key, used to identify your account in API requests.

X-TLP-SIGNATURE

string

d0afef3853dfc8489c8b9affa5825171fdd7y7685675e4966a05f66ed2b3eaf9462b3c9c0

HMAC SHA-256 signature generated using the API Secret Key to secure the request.

When using the API, ensure to include your API Key and generate the signature for the request payload using your API Secret. The tables provided above contain example values for illustration purposes only. Please refer to the code snippets for detailed instructions on how to sign the request and generate the signature properly.

Code Snippet

const axios = require('axios');
const crypto = require('crypto');

// Replace with your API Key and Secret
const apiKey = 'your-api-key';
const apiSecret = 'your-api-secret';

// Create HMAC SHA-256 signature (no params for this request)
const signature = crypto
  .createHmac('sha256', apiSecret)
  .update('') // No parameters to sign
  .digest('hex');

// Define headers
const headers = {
  "X-TLP-APIKEY": apiKey,
  "X-TLP-SIGNATURE": signature
};

// Send the GET request
axios.get("https://api.tylt.money/transactions/merchant/getSupportedCryptoCurrenciesList", { headers })
  .then(response => console.log(response.data))
  .catch(error => console.error(error));

Response

{
    "data": [
        {
            "currencyName": "Dai",
            "currencySymbol": "DAI",
            "networks": [
                {
                    "standard": "BEP20",
                    "canDeposit": 1,
                    "canWithdraw": 1,
                    "networkFees": 0,
                    "networkName": "Binance Smart Chain",
                    "networkSymbol": "BSC",
                    "maximumDeposit": 100,
                    "minimumDeposit": 1,
                    "contractAddress": "0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3",
                    "maximumWithdrawal": 100,
                    "minimumWithdrawal": 0
                }
            ]
        },
        {
            "currencyName": "Tether",
            "currencySymbol": "USDT",
            "networks": [
                {
                    "standard": "BEP20",
                    "canDeposit": 1,
                    "canWithdraw": 1,
                    "networkFees": 0,
                    "networkName": "Binance Smart Chain",
                    "networkSymbol": "BSC",
                    "maximumDeposit": 100,
                    "minimumDeposit": 1,
                    "contractAddress": "0x55d398326f99059fF775485246999027B3197955",
                    "maximumWithdrawal": 100,
                    "minimumWithdrawal": 0
                },
                {
                    "standard": "ERC20",
                    "canDeposit": 1,
                    "canWithdraw": 1,
                    "networkFees": 0,
                    "networkName": "Ethereum",
                    "networkSymbol": "ETH",
                    "maximumDeposit": 100,
                    "minimumDeposit": 1,
                    "contractAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
                    "maximumWithdrawal": 100,
                    "minimumWithdrawal": 0
                }
            ]
        }
    ],
    "errorCode": 0,
    "msg": ""
}

Last updated