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();
{
    "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
                }
            }
        }
    }
}

Last updated