cURL
curl --request POST \ --url https://api.rolla.xyz/api/v1/external/wallet/fee \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "currency": "NGN", "transactionType": "deposit", "amount": 5000 } '
{ "success": true, "message": "Fee calculated successfully", "data": { "fee": 50, "currency": "NGN" } }
Calculates the fee for a given transaction type, currency, and amount.
curl -X POST "https://api.rolla.xyz/api/v1/external/wallet/fee" \ -H "X-API-Key: your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "currency": "NGN", "transactionType": "withdrawal", "amount": 5000 }'
Your Rolla API key
3-letter currency code
3
"NGN"
Type of transaction
deposit
withdrawal
swap
Transaction amount (positive number)
5000
Fee calculated successfully
true
"Fee calculated successfully"
Show child attributes