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

# Get Network Fee

This method allows you to retrieve an estimated network fee before withdrawing funds.

<mark style="color:green;">`POST`</mark> `https://api.passimpay.io/v2/fees`

The method returns up-to-date information about the network fee that will be charged for a transaction when withdrawing funds. This helps users estimate the cost of a transfer in advance.

**Rate Limit**: 1 requests per second

\
If you need information about **network fees for coins other than BTC**, you can alternatively use also public endpoint `https://api.passimpay.io/v2/currencies`.

#### **Headers**

<table><thead><tr><th width="221">Name</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>x-signature</code></td><td>string</td><td>SHA-256 encrypted signature</td></tr><tr><td><code>Content-Type</code></td><td>string</td><td>application/json</td></tr></tbody></table>

#### **Request Body**

<table><thead><tr><th width="190">Name</th><th width="124">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>platformId</code></td><td>integer</td><td>Platform Id</td></tr><tr><td><code>paymentId</code></td><td>integer</td><td>Currency ID. You can get the list of currency IDs <a href="/pages/cCYjpNNmRMVGOnH1c3fk">here</a>.</td></tr><tr><td><code>addressTo</code></td><td>string</td><td>Specify the recipient's wallet address. For <strong>Ripple (XRP)</strong> and <strong>TON</strong>, if it's necessary to add a tag or comment, use the following format:<br><strong><code>address:destinationTag</code></strong></td></tr><tr><td><code>amount</code></td><td>string</td><td>The transaction amount. </td></tr></tbody></table>

#### **Successful response (200)**

<table><thead><tr><th width="200">Name</th><th width="131">Type</th><th>Description</th></tr></thead><tbody><tr><td>result</td><td>integer</td><td>Request result: <br><code>1</code>: success </td></tr><tr><td>paymentId</td><td>integer</td><td>Payment ID</td></tr><tr><td>amountFull</td><td>string</td><td>The total amount that will be deducted from the user's balance, including all fees.</td></tr><tr><td>amount</td><td>string</td><td>The amount that will be sent to the recipient.</td></tr><tr><td>feeNetwork</td><td>string</td><td>The network fee.</td></tr><tr><td>feeService</td><td></td><td>The service fee.</td></tr></tbody></table>

#### **Error Response (400)**

<table><thead><tr><th width="154">Name</th><th width="176">Type</th><th>Description</th></tr></thead><tbody><tr><td>result</td><td>integer</td><td>Request result: <br><code>0</code>: error</td></tr><tr><td>message</td><td>string</td><td>Error description</td></tr></tbody></table>
