Get all coin details - V2

To get current token/coin status, code, supported networks and current prices.

V2 endpoint now supports over 300+ pairs, this API endpoint provides comprehensive information on the tokens/coins and their prices, enabling developers to build effective and efficient integrations with Onramp.

GET https://api.onramp.money/onramp/api/v2/sell/public/allConfig

{
   "status":1,
   "code":200,
   "data":{
      "allCoinConfig":{
         "eth":{
            "coinId":6,
            "coinName":"Ethereum",
            "coinIcon":"https://s2.coinmarketcap.com/static/img/coins/64x64/1027.png",
            "balanceFloatPlaces":8,
            "tradeFloatPlaces":8,
            "markets":{
               "decimals":{
                  "usdt":2,
                  "inr":2
               }
            },
            "networks":[
               1,
               0,
               13,
               5,
               10013,
               3
            ]
         }
      },
      "networkConfig":{
         "0":{
            "chainSymbol":"erc20",
            "addressRegex":"^(0x)[0-9A-Fa-f]{40}$",
            "memoRegex":"",
            "chainName":"Ethereum Network",
            "startingWith":[
               "0x"
            ],
            "hashLink":"https://etherscan.io/tx/",
            "node":6,
            "networkId":1,
            "nativeToken":6
         }
      },
      "coinData":{
         "0":2521023.02,
         "1":38.8832,
         "2":1168.99,
         "3":310.424,
         "4":8.1437,
         "5":3.564,
         "6":{
            "0":161528.499,
            "1":161528.499,
            "3":174152.35,
            "5":161528.499,
            "13":174152.35,
            "10013":161528.499
         }
      },
      "minimumBuyAmount":{
         "0":{
            "0":1000,
            "1":1000,
            "5":1000,
            "10002":2773.13,
            "10004":2773.13
         }
      },
      "allGasFee":{
         "0":{
            "0":{
               "withdrawalFee":"0.00017",
               "minimumWithdrawal":"0.00037400",
               "nodeInSync":1
            },
            "1":{
               "withdrawalFee":"0.0000039",
               "minimumWithdrawal":"0.00000858",
               "nodeInSync":1
            }
         }
      }
   }
}
const axios = require('axios');
let url = 'https://api.onramp.money/onramp/api/v2/sell/public/allConfig'

const allConfig = async () => {
    try {
        const response = await axios.get(url);
        console.log(JSON.stringify(response.data, null, 2)); // The "2" here adds indentation to the output
    } catch (error) {
        console.error(`Error: ${error}`);
    }
};

allConfig();
{
   "status":1,
   "code":200,
   "data":{
      "allCoinConfig":{
         "btc":{
            "coinId":0,
            "coinName":"Bitcoin",
            "coinIcon":"https://s2.coinmarketcap.com/static/img/coins/64x64/1.png",
            "balanceFloatPlaces":8,
            "tradeFloatPlaces":8,
            "networks":[
               0,
               1,
               5,
               10002,
               10004,
               10164
            ],
            "markets":{
               "decimals":{
                  "usdt":2,
                  "inr":2
               }
            }
         },
      },
      "networkConfig":{
         "0":{
            "chainSymbol":"erc20",
            "addressRegex":"^(0x)[0-9A-Fa-f]{40}$",
            "memoRegex":"",
            "chainName":"Ethereum Network",
            "networkId":1,
            "nativeToken":6,
            "startingWith":[
               "0x"
            ],
            "hashLink":"https://etherscan.io/tx/",
            "node":6
         },
      },
      "coinData":{
         "0":2568231.16,
         "1":60.5139,
         "2":762.15,
         "3":231.113,
         "4":12.5645,
         "5":2.52876,
         "6":163146.24,
         "10":7857.65,
      },
      "allGasFee":{
         "0":{
            "0":{
               "depositFee":0,
               "minimumDeposit":0,
               "nodeInSync":1
            },
            "1":{
               "depositFee":0,
               "minimumDeposit":0,
               "nodeInSync":1
            },
            "10002":{
               "depositFee":0,
               "minimumDeposit":0,
               "nodeInSync":1
            },
            "10004":{
               "depositFee":0,
               "minimumDeposit":0,
               "nodeInSync":1
            },

         },
      },
      "gatewayFee":{
         "1":{
            "1000":2.36,
            "25000":3.54,
            "500000":8.26
         }
      },
      "minimumSellAmount":{
         "1":100
      }
   }
}

Last updated