Get Supported Crypto Networks
This endpoint allows you to retrieve a list of supported cryptocurrency networks.
Endpoint
GET
https://api.tylt.money/transactions/merchant/getSupportedCryptoNetworksList
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.
Code Snippet
const crypto = require('crypto');
const axios = require('axios');
// Replace with your API Key and Secret
const apiKey = 'your-api-key';
const apiSecret = 'your-api-secret';
// Function to generate the signature for GET requests
function generateSignature(params) {
const paramString = new URLSearchParams(params).toString();
return crypto.createHmac('sha256', apiSecret).update(paramString).digest('hex');
}
// Parameters (if any)
const params = {};
// Create signature
const signature = generateSignature(params);
// Set up headers
const headers = {
"X-TLP-APIKEY": apiKey,
"X-TLP-SIGNATURE": signature
};
// Send GET request using Axios
axios.get("https://api.tylt.money/transactions/merchant/getSupportedCryptoNetworksList", { headers: headers })
.then(response => {
console.log("Response:", response.data);
})
.catch(error => {
console.error("Error:", error.response ? error.response.data : error.message);
});
Response
{
"msg": "",
"data": [
{
"networkName": "Binance Smart Chain",
"networkSymbol": "BSC"
},
{
"networkName": "Ethereum",
"networkSymbol": "ETH"
}
]
}
Last updated