coinNetwork - get all supported networks

Get a list of all coins and supported networks

Note:

  • Supported Currencies: To view the list of all the fiat currencies supported by Onramp, click here.

  • Supported Payment Methods: To view the list of all the supported payment methods for various currencies supported by Onramp, click here.

GET https://api.onramp.money/onramp/api/v3/buy/public/coinNetworks

Path Parameters

NameTypeDescription

coinCode*

usdt

Name of the coin (also denoted as key in data.allCoinConfig in the response returned in the listAllCoins endpoint) current supported coins:

usdt| usdc | busd | eth | bnb | matic | sol

fiatType*

1

Fiat Type from config file, fiat supported for the localised region 1 -> India (Default) INR

2 -> Turkey (TRY)

3 -> Arab Emirates Dirham (AED)

4 -> Mexican Peso (MXN)

5 -> Vietnamese dong (VND)

6 -> Nigerian Naira (NGN)

{
    "status": 1,
    "code": 200,
    "data": {
        "coinConfig": {
            "coinId": "54",
            "coinName": "Tether",
            "coinIcon": "https://s2.coinmarketcap.com/static/img/coins/64x64/825.png",
            "balanceFloatPlaces": 2,
            "tradeFloatPlaces": 2,
            "networks": [
                10046,
                1,
                8,
                10042,
                10076,
                5,
                0,
                3,
                4,
                10039,
                2,
                10
            ],
            "markets": {
                "decimals": {
                    "usdt": 8,
                    "inr": 4
                }
            }
        },
        "networkConfig": {
            "0": {
                "chainSymbol": "erc20",
                "addressRegex": "^(0x)[0-9A-Fa-f]{40}$",
                "memoRegex": "",
                "chainName": "Ethereum Network",
                "hashLink": "https://etherscan.io/tx/",
                "node": 6,
                "startingWith": [
                    "0x"
                ],
                "networkId": 1,
                "nativeToken": 6
            },
            "1": {
                "chainSymbol": "bep20",
                "addressRegex": "^(0x)[0-9A-Fa-f]{40}$",
                "memoRegex": "",
                "chainName": "Binance Smart Chain",
                "hashLink": "https://bscscan.com/tx/",
                "node": 110,
                "startingWith": [
                    "0x"
                ],
                "networkId": 56,
                "nativeToken": 72
            },
            "10039": {
                "chainSymbol": "xtz",
                "addressRegex": "^(tz[1,2,3])[a-zA-Z0-9]{33}$",
                "memoRegex": "",
                "chainName": "Tezos"
            },
            "10042": {
                "chainSymbol": "near",
                "addressRegex": "^(?!bnb1)[a-z0-9_-]{1}[a-z0-9_.-]{0,62}[a-z0-9_-]{1}$",
                "memoRegex": "",
                "chainName": "NEAR Protocol"
            },
        },
        "gasFee": {
            "0": {
                "withdrawalFee": "10",
                "minimumWithdrawal": "55.00",
                "nodeInSync": 1
            },
            "1": {
                "withdrawalFee": "0.29",
                "minimumWithdrawal": "11.00",
                "nodeInSync": 1
            },
            "10039": {
                "withdrawalFee": "1",
                "minimumWithdrawal": "11.00",
                "nodeInSync": 1
            },
            "10042": {
                "withdrawalFee": "1",
                "minimumWithdrawal": "11.00",
                "nodeInSync": 1
            },
        },
        "minimumBuyAmount": {
            "0": 5032.5,
            "1": 1006.5,
            "2": 1006.5,
            "10039": 1006.5,
            "10042": 1006.5,
            "10046": 1006.5,
            "10076": 5032.5
        }
    }
}
const axios = require('axios');

const getCoinNetworks = async (coinCode, fiatType) => {
    try {
        const response = await axios.get(`https://api.onramp.money/onramp/api/v3/buy/public/coinNetworks?coinCode=${coinCode}&fiatType=${fiatType}`);
        console.log(JSON.stringify(response.data, null, 2));
    } catch (error) {
        console.error(`Error: ${error}`);
    }
};

getCoinNetworks('usdt', '1');
{
    "status": 1,
    "code": 200,
    "data": {
        "coinConfig": {
            "coinId": "54",
            "coinName": "Tether",
            "coinIcon": "https://s2.coinmarketcap.com/static/img/coins/64x64/825.png",
            "balanceFloatPlaces": 2,
            "tradeFloatPlaces": 2,
            "networks": [
                10046,
                1,
                8,
                10042,
                10076,
                5,
                0,
                3,
                4,
                10039,
                2,
                10
            ],
            "markets": {
                "decimals": {
                    "usdt": 8,
                    "inr": 4
                }
            }
        },
        "networkConfig": {
            "0": {
                "chainSymbol": "erc20",
                "addressRegex": "^(0x)[0-9A-Fa-f]{40}$",
                "memoRegex": "",
                "chainName": "Ethereum Network",
                "hashLink": "https://etherscan.io/tx/",
                "node": 6,
                "startingWith": [
                    "0x"
                ],
                "networkId": 1,
                "nativeToken": 6
            },
            "1": {
                "chainSymbol": "bep20",
                "addressRegex": "^(0x)[0-9A-Fa-f]{40}$",
                "memoRegex": "",
                "chainName": "Binance Smart Chain",
                "hashLink": "https://bscscan.com/tx/",
                "node": 110,
                "startingWith": [
                    "0x"
                ],
                "networkId": 56,
                "nativeToken": 72
            },
            "10039": {
                "chainSymbol": "xtz",
                "addressRegex": "^(tz[1,2,3])[a-zA-Z0-9]{33}$",
                "memoRegex": "",
                "chainName": "Tezos"
            },
            "10042": {
                "chainSymbol": "near",
                "addressRegex": "^(?!bnb1)[a-z0-9_-]{1}[a-z0-9_.-]{0,62}[a-z0-9_-]{1}$",
                "memoRegex": "",
                "chainName": "NEAR Protocol"
            },
        },
        "gasFee": {
            "0": {
                "withdrawalFee": "10",
                "minimumWithdrawal": "55.00",
                "nodeInSync": 1
            },
            "1": {
                "withdrawalFee": "0.29",
                "minimumWithdrawal": "11.00",
                "nodeInSync": 1
            },
            "10039": {
                "withdrawalFee": "1",
                "minimumWithdrawal": "11.00",
                "nodeInSync": 1
            },
            "10042": {
                "withdrawalFee": "1",
                "minimumWithdrawal": "11.00",
                "nodeInSync": 1
            },
        },
        "minimumBuyAmount": {
            "0": 5032.5,
            "1": 1006.5,
            "2": 1006.5,
            "10039": 1006.5,
            "10042": 1006.5,
            "10046": 1006.5,
            "10076": 5032.5
        }
    }
}

Last updated