AllGasfees (external withdrawal fees)
GET
https://api.onramp.money/onramp/api/v1/public/allGasFee
{
"status": 1,
"code": 200,
"data": {
"allGasFee": {
"0": {
"native": {
"withdrawalFee": 0.0005,
"minimumWithdrawal": 0.001,
"nodeInSync": 1
}
},
"6": {
"0": {
"withdrawalFee": 0.007416,
"minimumWithdrawal": 0.008157600000000001,
"nodeInSync": 1
},
"3": {
"withdrawalFee": 0.00017319,
"minimumWithdrawal": 0.0008659500000000001,
"nodeInSync": 1
}
},
"54": {
"0": {
"withdrawalFee": 8.96,
"minimumWithdrawal": 9.856,
"nodeInSync": 1
},
"1": {
"withdrawalFee": 1.78,
"minimumWithdrawal": 8.9,
"nodeInSync": 1
},
"2": {
"withdrawalFee": 4,
"minimumWithdrawal": 12,
"nodeInSync": 1
},
"3": {
"withdrawalFee": 0.21,
"minimumWithdrawal": 1.05,
"nodeInSync": 1
}
},
"72": {
"1": {
"withdrawalFee": 0.0075,
"minimumWithdrawal": 0.0375,
"nodeInSync": 1
},
"5": {
"withdrawalFee": 0.01,
"minimumWithdrawal": 0.05,
"nodeInSync": 1
}
},
"83": {
"0": {
"withdrawalFee": 12.71,
"minimumWithdrawal": 13.981,
"nodeInSync": 1
},
"3": {
"withdrawalFee": 0.3,
"minimumWithdrawal": 1.5,
"nodeInSync": 1
}
},
"116": {
"1": {
"withdrawalFee": 1.77,
"minimumWithdrawal": 8.85,
"nodeInSync": 1
},
"3": {
"withdrawalFee": 0.21,
"minimumWithdrawal": 1.05,
"nodeInSync": 1
}
},
"144": {
"1": {
"withdrawalFee": 1.77,
"minimumWithdrawal": 8.85,
"nodeInSync": 1
}
}
}
}
}
const axios = require('axios');
let url = 'https://api.onramp.money/onramp/api/v1/public/allGasFee'
const getGasFee = 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}`);
}
};
getGasFee();
import requests
def all_gas_fee():
url = f'https://api.onramp.money/onramp/api/v1/public/allGasFee'
response = requests.get(url)
if response.status_code == 200:
print(response.json())
else:
print(f"Request failed with status code {response.status_code}")
all_gas_fee()
{
"status": 1,
"code": 200,
"data": {
"allGasFee": {
"0": {
"native": {
"withdrawalFee": 0.0005,
"minimumWithdrawal": 0.001,
"nodeInSync": 1
}
},
"6": {
"0": {
"withdrawalFee": 0.007416,
"minimumWithdrawal": 0.008157600000000001,
"nodeInSync": 1
},
"3": {
"withdrawalFee": 0.00017319,
"minimumWithdrawal": 0.0008659500000000001,
"nodeInSync": 1
}
},
"54": {
"0": {
"withdrawalFee": 8.96,
"minimumWithdrawal": 9.856,
"nodeInSync": 1
},
"1": {
"withdrawalFee": 1.78,
"minimumWithdrawal": 8.9,
"nodeInSync": 1
},
"2": {
"withdrawalFee": 4,
"minimumWithdrawal": 12,
"nodeInSync": 1
},
"3": {
"withdrawalFee": 0.21,
"minimumWithdrawal": 1.05,
"nodeInSync": 1
}
},
"72": {
"1": {
"withdrawalFee": 0.0075,
"minimumWithdrawal": 0.0375,
"nodeInSync": 1
},
"5": {
"withdrawalFee": 0.01,
"minimumWithdrawal": 0.05,
"nodeInSync": 1
}
},
"83": {
"0": {
"withdrawalFee": 12.71,
"minimumWithdrawal": 13.981,
"nodeInSync": 1
},
"3": {
"withdrawalFee": 0.3,
"minimumWithdrawal": 1.5,
"nodeInSync": 1
}
},
"116": {
"1": {
"withdrawalFee": 1.77,
"minimumWithdrawal": 8.85,
"nodeInSync": 1
},
"3": {
"withdrawalFee": 0.21,
"minimumWithdrawal": 1.05,
"nodeInSync": 1
}
},
"144": {
"1": {
"withdrawalFee": 1.77,
"minimumWithdrawal": 8.85,
"nodeInSync": 1
}
}
}
}
}
status -> 0 is for unsuccessful request, 1 is for a successful one
withdrawalFee -> fee required for onchain transaction.
minimumWithdrawal -> minimum amount required to initiate a withdrawal.
nodeInSync -> status of the nodes
1 denotes -> In sync
0 denotes -> out of sync
allGasFee -> returns a detailed response for withdrawal details,
the response starts with is the coinId, e.g. 54 denotes USDT
the response in the coinId is networks, e.g. 0 denotes erc20
Note:
The fees are updated based on onchain fees, congestion and activity.
Last updated