<p>I have observed the same behavior and I think a &quot;send all&quot; function should be possible to build but is just not  implemented. It is a little bit tricky as the actual routing fees depend on the path / route and might change a bit with every attempt and are not known before the payment settles. But of course a custodial service could work with a fee budget that slightly overpays the fees in order to introduce a better user experience.</p>

CC BY-SA 4.0
2022-09-22T01:59:23.433Z
Cross-posting your own relevant proposal from the lightning-dev mailing list: https://lists.linuxfoundation.org/pipermail/lightning-dev/2022-August/003674.html
Vojtěch Strnad
CC BY-SA 4.0
2021-09-23T06:56:47.140Z
2021-09-23T08:10:37.720Z
2021-09-23T08:10:37.720Z
Rene Pickhardt
<p>This is the third time (meaning three different services) something like this has happened to me: A custodial service holds a small amount of my bitcoin. When I want to withdraw all funds to my own Lightning node, the transaction fails with an error message that looks a little like this:</p>
<blockquote>
<p>You don't have enough balance to pay the route fees, try a lower amount.</p>
</blockquote>
<p>Usually what follows is that I manually lower the amount to send and a dust amount is left in my account which I never withdraw.</p>
<p>What's the problem here? Is it not possible to implement a &quot;send all&quot; function that would deduct the fees from the total amount?</p>

<lightning-network><lightning-nodes><lightning-fees>
Transferring all funds from a custodial service over Lightning Network
Vojtěch Strnad
# Transferring all funds from a custodial service over Lightning Network

(Asked by: username_0 on 2021-09-23)

This is the third time (meaning three different services) something like this has happened to me: A custodial service holds a small amount of my bitcoin. When I want to withdraw all funds to my own Lightning node, the transaction fails with an error message that looks a little like this:

> You don't have enough balance to pay the route fees, try a lower amount.

Usually what follows is that I manually lower the amount to send and a dust amount is left in my account which I never withdraw.

What's the problem here? Is it not possible to implement a "send all" function that would deduct the fees from the total amount?

**Tags:** lightning-network, lightning-nodes, lightning-fees


---

## 1 answers

### Answer by username_1 on 2021-09-23. Score: 2 | Accepted answer

I have observed the same behavior and I think a "send all" function should be possible to build but is just not implemented. It is a little bit tricky as the actual routing fees depend on the path / route and might change a bit with every attempt and are not known before the payment settles. But of course a custodial service could work with a fee budget that slightly overpays the fees in order to introduce a better user experience.

> **Comments:**
> **username_0**: Cross-posting your own relevant proposal from the lightning-dev mailing list: https://lists.linuxfoundation.org/pipermail/lightning-dev/2022-August/003674.html  

---

