Tylt: API Documentation
  • Introduction
    • Introduction
    • Getting Started
    • Generating API Keys
    • Signing API Payloads
    • Important Concepts
    • Merchant Verification
    • Tylt Prime (UPI to Crypto Solution)
      • API Reference
        • Create a Pay-in Instance
        • Create a Pay-out Instance
        • Webhook for Tylt Prime
        • Get Instance Information
        • Get Pay-In Transaction Information
        • Get Pay-Out Transaction Information
    • Tylt Prime (UPI to Crypto Solution - H2H)
      • API Reference ( Pay-In)
        • Create a Pay-in Instance
        • Buyer Confirms Payment
        • Webhook for Tylt Prime
        • Get Instance Details
        • Get Pay-In Transaction Information
        • Get List of Fiat Currency and Supported Payment Methods
        • Get List of Supported Crypto Currency for Settlement
        • Get Conversion Rates
  • Tylt CPG (Crypto Payment Gateway)
    • API Reference
      • Accept Crypto Payments
        • Creating a Pay-in Request
        • Get Pay-In Transaction History
        • Get Pay-In Transaction Information
      • Make Crypto Payouts
        • Creating a Payout Request
        • Get Pay-Out Transaction History
        • Get Pay-Out Transaction Information
      • Supporting API's
        • Get Supported Crypto Currencies List
        • Get Supported Fiat Currencies
        • Get Account Balance / Holdings
        • Get Supported Crypto Networks
        • Supported Base Currency List
      • Webhook
    • Use Cases
      • E-commerce Flow
      • Withdrawal Flow
Powered by GitBook
On this page
  1. Tylt CPG (Crypto Payment Gateway)
  2. API Reference
  3. Supporting API's

Supported Base Currency List

This endpoint allows you to retrieve a list of supported Base Currencies

Endpoint

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

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 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/getSupportedBaseCurrenciesList", { headers: headers })
    .then(response => {
        console.log("Response:", response.data);
    })
    .catch(error => {
        console.error("Error:", error.response ? error.response.data : error.message);
    });
import requests
import json
import hmac
import hashlib

# Replace with your API Key and Secret
api_key = 'your-api-key'
api_secret = 'your-api-secret'

# Function to generate the signature for GET requests
def generate_signature(params):
    param_string = '&'.join([f"{key}={value}" for key, value in params.items()])
    return hmac.new(api_secret.encode(), param_string.encode(), hashlib.sha256).hexdigest()

# Parameters (if any)
params = {}

# Create signature
signature = generate_signature(params)

# Define headers
headers = {
    "X-TLP-APIKEY": api_key,
    "X-TLP-SIGNATURE": signature
}

# Send GET request
response = requests.get("https://api.tylt.money/transactions/merchant/getSupportedBaseCurrenciesList", 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';

// 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
fetch(`https://api.tylt.money/transactions/merchant/getSupportedBaseCurrenciesList`, { method: 'GET', headers: headers })
    .then(response => response.json())
    .then(data => console.log(data))
    .catch(error => console.error(error));

Response

{
    "data": [
        {
            "currencyName": "1inch",
            "currencySymbol": "1INCH",
            "currencyType": "CRYPTO"
        },
        {
            "currencyName": "Aave",
            "currencySymbol": "AAVE",
            "currencyType": "CRYPTO"
        },
        {
            "currencyName": "Arcblock",
            "currencySymbol": "ABT",
            "currencyType": "CRYPTO"
        },
        {
            "currencyName": "Alchemy Pay",
            "currencySymbol": "ACH",
            "currencyType": "CRYPTO"
        },
        {
            "currencyName": "Cardano",
            "currencySymbol": "ADA",
            "currencyType": "CRYPTO"
        },
        {
            "currencyName": "United Arab Emirates dirham",
            "currencySymbol": "AED",
            "currencyType": "FIAT"
        },
        {
            "currencyName": "Aergo",
            "currencySymbol": "AERGO",
            "currencyType": "CRYPTO"
        },
        {
            "currencyName": "Afghan afghani",
            "currencySymbol": "AFN",
            "currencyType": "FIAT"
        },
        {
            "currencyName": "AIOZ Network",
            "currencySymbol": "AIOZ",
            "currencyType": "CRYPTO"
        },
        {
            "currencyName": "Akash Network",
            "currencySymbol": "AKT",
            "currencyType": "CRYPTO"
        },
        ...
    ]
}

  

Field Name

Type

Description

string

The name of the base currency (e.g., US Tether, US Dollar, Euro, Singapore Dollar).

string

The symbol representing the currency (e.g., USDT, BTC). Used as an input in other API's

string

The type of the Base Currency either FIAT or CRYPTO

PreviousGet Supported Crypto NetworksNextWebhook

Last updated 5 months ago

currencyName
currencySymbol
currencyType