This endpoint calculates the estimated gas fees for withdrawing funds from a credit wallet to an external wallet address. Network fees vary based on blockchain congestion and are deducted from the withdrawal amount. Always call this endpoint before initiating a withdrawal to inform users of the net amount they will receive.Use Cases:
Display estimated fees to users before withdrawal confirmation
Calculate net amount user will receive after fees
Compare fee estimates across different times to optimize for lower costs
Provide transparency in withdrawal costs
Network Support:
Currently supports Linea network only
Returns fees in multiple denominations (wei, ETH, USDC)
Fee Calculation: Fees are estimates based on current network conditions. Actual fees may vary slightly when the transaction is executed. Always add a small buffer for production implementations.
User Experience: Display both the fee amount and the net amount the user will receive. This transparency helps users make informed decisions about timing their withdrawals.
Fee Volatility: Gas fees on blockchains fluctuate based on network congestion. During high-traffic periods, fees can increase significantly. Consider implementing fee alerts or maximum fee thresholds.