All Config Mapping

Returns the allConfig Mapping .

Note: Rate limit for this API is 10req/min.

Returns the all Config mapping

POST https://api.onramp.money/onramp/api/v2/common/transaction/allConfigMapping

Headers

NameTypeDescription

X-ONRAMP-APIKEY*

String

Your api key

X-ONRAMP-PAYLOAD*

String

payload generated for the request

X-ONRAMP-SIGNATURE*

String

signature generated for the request

{
    "status": 1,
    "code": 200,
    "data": {
        "fiatSymbolMapping": {
            "INR": 1,
            "TRY": 2,
            "AED": 3,
            "MXN": 4,
            "VND": 5,
            "NGN": 6,
            "BRL": 7,
            "PEN": 8,
        },
        "coinSymbolMapping": {
            "eth": "6",
            "usdt": "54",
            "matic": "83",
            "rage": 396,
            "gari": "460",
            "tlc": 536,
            "btc": "0",
            "neo": "2",
        },
        "chainSymbolMapping": {
            "erc20": 0,
            "bep20": 1,
            "trc20": 2,
            "matic20": 3,
            "spl": 4,
            "bep2": 5,
            "nep5": 7,
            "eos": 8,
            "klay": 9,
            "matic20-test": 10,
            "okc": 11,
            "wemix 3.0": 12,
            "arbitrum": 13,
            "energi": 21,
            "eth": 0,
            "bsc": 1,
            "trx": 2,
            "matic": 3,
            "sol": 4,
            "bnb": 5,
        }
    }
}

Sample Request

var CryptoJS = require('crypto-js');
var axios = require('axios');
async function allConfigMapping() {
  try {
    let body = {}
    let payload = {
      timestamp: new Date().getTime(),
      body
    }
    let apiKey = 'API_KEY', apiSecret = 'API_SECRET';
    payload = Buffer.from(JSON.stringify(payload)).toString('base64');
    let signature = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA512(payload, apiSecret));
    let options = {
      url: 'https://api.onramp.money/onramp/api/v2/common/transaction/allConfigMapping',
      method: 'POST',
      headers: {
        'Accept': 'application/json',
        'Content-Type': 'application/json;charset=UTF-8',
        'X-ONRAMP-SIGNATURE': signature,
        'X-ONRAMP-APIKEY': apiKey,
        'X-ONRAMP-PAYLOAD': payload
      },
      data: body
    };
    let data = await axios(options)
    console.log(data?.data);
  } catch (error) {
    console.log(error?.response?.data)
  }
}
allConfigMapping();
{
    "status": 1,
    "code": 200,
    "data": {
        "fiatSymbolMapping": {
            "INR": 1,
            "TRY": 2,
            "AED": 3,
            "MXN": 4,
            "VND": 5,
            "NGN": 6,
            "BRL": 7,
            "PEN": 8,
        },
        "coinSymbolMapping": {
            "eth": "6",
            "usdt": "54",
            "matic": "83",
            "rage": 396,
            "gari": "460",
            "tlc": 536,
            "btc": "0",
            "neo": "2",
        },
        "chainSymbolMapping": {
            "erc20": 0,
            "bep20": 1,
            "trc20": 2,
            "matic20": 3,
            "spl": 4,
            "bep2": 5,
            "nep5": 7,
            "eos": 8,
            "klay": 9,
            "matic20-test": 10,
            "okc": 11,
            "wemix 3.0": 12,
            "arbitrum": 13,
            "energi": 21,
            "eth": 0,
            "bsc": 1,
            "trx": 2,
            "matic": 3,
            "sol": 4,
            "bnb": 5,
        }
    }
}

Last updated