Skip to main content
POST
/
wallet
/
fee
Get Transaction Fee
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"
  }
}
Calculate the fee for a given transaction type, currency, and amount before executing the transaction.

Example Request

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
  }'

Example Response

{
  "success": true,
  "message": "Fee calculated successfully",
  "data": {
    "fee": 50,
    "currency": "NGN"
  }
}
Call this endpoint before initiating a withdrawal or swap to show your users the exact fee they’ll be charged. Fees vary by currency and transaction type.

Authorizations

X-API-Key
string
header
required

Your Rolla API key

Body

application/json
currency
string
required

3-letter currency code

Required string length: 3
Example:

"NGN"

transactionType
enum<string>
required

Type of transaction

Available options:
deposit,
withdrawal,
swap
amount
number
required

Transaction amount (positive number)

Example:

5000

Response

Fee calculated successfully

success
boolean
Example:

true

message
string
Example:

"Fee calculated successfully"

data
object