> For the complete documentation index, see [llms.txt](https://docs.bitnbox.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bitnbox.com/bitnbox-pay-api-reference/get-fee.md).

# Get fee

{% hint style="warning" %}
To test the API, make sure to include `x-api-key` in the header with your API key.
{% endhint %}

## Estimate withdrawal fee.

> Estimates the withdrawal fee for a given currency and network. \`currency\`, \`network\`, and optional \`toAddress\` must be passed as query parameters in the request URL. The request body must be empty.

```json
{"openapi":"3.0.2","info":{"title":"Bitnbox API","version":"0.1.0"},"servers":[{"url":"https://api.bitnbox.com"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}}},"paths":{"/v1/payout/estimate-fee":{"get":{"description":"Estimates the withdrawal fee for a given currency and network. `currency`, `network`, and optional `toAddress` must be passed as query parameters in the request URL. The request body must be empty.","summary":"Estimate withdrawal fee.","tags":["v1"],"parameters":[{"name":"currency","in":"query","description":"Currency for which the withdrawal fee is to be estimated.","required":true,"schema":{"type":"string"}},{"name":"network","in":"query","description":"Blockchain network for which the withdrawal fee is to be estimated.","required":true,"schema":{"type":"string"}},{"name":"toAddress","in":"query","description":"To address for which the withdrawal fee is to be estimated.","schema":{"type":"string"}}],"operationId":"apiGetEstimateFee","responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string","description":"Currency of the withdrawal fee."},"network":{"type":"string","description":"Blockchain network of the withdrawal fee."},"amount":{"type":"number","description":"Estimated withdrawal fee amount."},"amountUsd":{"type":"number","description":"Estimated withdrawal fee amount in USD."}},"required":["currency","network","amount","amountUsd"],"description":"Successful response with estimated withdrawal fee details."}}}}}}}}}
```
