Skip to main content
GET
/
v1
/
wallet
/
reward
/
withdraw-estimation
{
  "wei": "6219123007416",
  "eth": "0.000006219123007416",
  "usdc": "0.01644666445335518319452825472"
}

Overview

Calculate estimated gas fees for withdrawing rewards to an external wallet. Network fees vary based on blockchain congestion and are deducted from the withdrawal amount. Use this endpoint before initiating a withdrawal to show users the net amount they will receive. Network Support: Currently supports Linea network only

Authentication

x-client-key
string
required
Your public API client key
Authorization
string
required
Bearer token for authentication

Query Parameters

x-us-env
boolean
default:false
Route to US backend environment

Response

wei
string
Gas fee estimate in wei
eth
string
Gas fee estimate in ETH
usdc
string
Gas fee estimate in USDC at current exchange rate
{
  "wei": "6219123007416",
  "eth": "0.000006219123007416",
  "usdc": "0.01644666445335518319452825472"
}

Code Examples

curl -X GET "https://dev.api.baanx.com/v1/wallet/reward/withdraw-estimation" \
  -H "x-client-key: YOUR_CLIENT_KEY" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"