coinNetwork - get all supported networks
Get a list of all coins and supported networks
GET
https://api.onramp.money/onramp/api/v3/buy/public/coinNetworks
Path Parameters
Name | Type | Description |
---|---|---|
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');
import requests
def coin_networks(coinCode, fiatType):
url = f'https://api.onramp.money/onramp/api/v3/buy/public/coinNetworks?coinCode={coinCode}&fiatType={fiatType}'
response = requests.get(url)
if response.status_code == 200:
print(response.json())
else:
print(f"Request failed with status code {response.status_code}")
coin_networks('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
}
}
}
status -> 0 is for unsuccessful request, 1 is for a successful one
coinId -> Id associated for the coin
coinName -> Name of the coin
balanceFloatPlaces -> denotes how many float places for the coin would be supported for reflecting the balance of the coin.
tradeFloatPlaces -> denotes how many float places are supported for the coin while swapping/trading.
minimumTradeAmount -> Minimum required amount to swap a coin.
decimals -> the number of float places the underlying currency, e.g. INR -> 2 i.e ₹99.99.
networks -> supported networks for onchain transactions
address -> returns the starting letters of the onchain address
startingWith -> denotes the starting characters of the onchain address.
chainName -> Name of the chain which can be used for onchain transactions.
confirmations -> The number of confirmations required for successful transaction.
hashLink -> upon concatenating with the transaction hash, a link to view the transaction details onchain would be possible via our preferred onchain scanners.
node -> used internally.
coinData -> current prices of the coins (currently denoted in INR)
addressRegex -> Regular express of the wallet address for matching.
Last updated