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
fromCurrencyandtoCurrencyfields 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
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.
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));
import requests
import hmac
import hashlib
# Replace with your API Key and Secret
api_key = 'your-api-key'
api_secret = 'your-api-secret'
# Create HMAC SHA-256 signature (no params for this request)
signature = hmac.new(api_secret.encode(), b'{}', hashlib.sha256).hexdigest()
# Define headers
headers = {
"X-TLP-APIKEY": api_key,
"X-TLP-SIGNATURE": signature
}
# Send the GET request
response = requests.get("https://api.tylt.money/transactions/merchant/getSupportedCryptoCurrenciesList", headers=headers)
# Print the response
if response.status_code == 200:
print("Response:", response.json())
else:
print(f"Failed with status code {response.status_code}: {response.text}")
const crypto = require('crypto');
const fetch = require('node-fetch');
// 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 myHeaders = {
"X-TLP-APIKEY": apiKey,
"X-TLP-SIGNATURE": signature
};
// Send the GET request
fetch("https://api.tylt.money/transactions/merchant/getSupportedCryptoCurrenciesList", { headers: myHeaders })
.then(response => response.json())
.then(result => console.log(result))
.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": ""
}Field Name
Type
Description
currencyName
string
The name of the cryptocurrency (e.g., Dai, Tether).
currencySymbol
string
The symbol representing the cryptocurrency (e.g., DAI, USDT). Use this as input in other API requests.
networks
array
A list of networks where the cryptocurrency is supported.
networks[].standard
string
The token standard for the network (e.g., BEP20, ERC20).
networks[].canDeposit
number
Indicates if deposits are allowed on this network (1: Yes, 0: No).
networks[].canWithdraw
number
Indicates if withdrawals are allowed on this network (1: Yes, 0: No).
networks[].networkFees
number
The network fees for transactions on this network.
networks[].networkName
string
The name of the network (e.g., Binance Smart Chain, Ethereum).
networks[].networkSymbol
string
The symbol representing the network (e.g., BSC, ETH). Use this as an input in other API requests.
networks[].maximumDeposit
number
The maximum deposit amount allowed on this network.
networks[].minimumDeposit
number
The minimum deposit amount allowed on this network.
networks[].contractAddress
string
The contract address for the token on this network.
networks[].maximumWithdrawal
number
The maximum withdrawal amount allowed on this network.
networks[].minimumWithdrawal
number
The minimum withdrawal amount allowed on this network.