Intermediate ยท 04 The spending account, off the chain
Lightning explained.
Lightning is a way to pay in bitcoin without putting each payment on the blockchain. Two parties lock one coin between them and keep re-signing how it splits, and a payment reaches someone further away by chaining those splits from one pair to the next, all held to one secret.
01 The problem
A small payment costs too much and takes too long on-chain
If Alice pays Bob 4,000 sats on-chain, the fee can be a third of the amount and Bob waits about an hour for a block.
An on-chain payment from savings is one coin in, Bob's 4,000 and the change out, about 154 vbytes. At a normal fee rate of 8 sat/vB that is 1,232 sats in fees. On a busy day the fee alone can be more than the payment.
From the spending account the same payment costs 20 sats in fees and arrives in a couple of seconds. The rest of this page is how.
What you see: two accounts. Savings is on-chain bitcoin, Spending is Lightning. Scanning a Lightning request in Savings says "This is a Lightning request. Pay it from your spending account."
What it hides: that "spending" is Lightning at all. The word appears in the setup screens and in Settings, and almost nowhere else.
Look underneath
The on-chain figures are a Taproot payment with one input and two outputs: 10.5 + 57.5 + 2 x 43 = 154 vB. See Fees and coins explained for where those numbers come from.
The Lightning fee here is ACINQ's trampoline fee for 4,000 sats: 4 sat + 0.4% x 4,000 = 20 sat. Section 08 covers it.
What "a couple of seconds" depends on
A Lightning payment needs a few message round trips per hop plus a path search. On a phone that is usually one to a few seconds, and longer if a route fails and is retried. There is no confirmation to wait for: once the secret comes back, the payment is final.
02 The channel
A channel is one coin locked by two people, plus a split that both of them re-sign
A channel is a single coin on the blockchain that only two parties together can spend, plus a signed agreement about how much of it belongs to each.
Alice's channel is one coin of 100,000 sats. Right now the agreement says 60,000 are Alice's and 40,000 belong to the other side. When she pays 4,020 sats through it, they write a new agreement, 55,980 and 44,020, both sign it, and tear up the old one. Nothing touches the blockchain.
Either side can take its agreement to the blockchain at any time and get its share out. That is what makes the numbers real: each signed split is a transaction ready to publish, not a promise.
The channel starts as one coin on the blockchain, 100,000 sats, that needs both Alice's and the provider's signatures to spend.
On top of it sits a split both have signed: 60,000 for Alice, 40,000 for the provider.
Alice pays 4,020. They sign a new split, 55,980 and 44,020. Only the line between the shares moves; the total stays 100,000.
The old split is torn up. Nothing touched the blockchain.
The current split is a transaction ready to publish. Either side can take it to the blockchain at any time and get its share out.
What you see: a Spending balance of 55,980 sats, and later the words "your channel" in a few messages.
What it hides: the other side's share, the signed agreements, and the coin on the blockchain behind them.
Look underneath
The coin is the funding output, a 2-of-2 multisig between the two node keys. Each side holds a commitment transaction spending it, signed by the other side, with outputs to_local (its own share, delayed) and to_remote (the other side's share).
Updating the split
update_add_htlc # propose a change commitment_signed # sign the other side's new commitment revoke_and_ack # hand over the secret that revokes the old one
These are BOLT 2 messages. "Tear up the old one" is the revocation: each side gives the other a secret that turns its old commitment into a trap, covered in section 10.
Amounts inside a channel are tracked in millisatoshis, so splits can move by less than one sat; anything below one sat is rounded away when a commitment goes on-chain.
03 The provider
Alice's channel is with a provider, a large node that connects her to everyone else
Alice does not open a channel with Bob, or with anyone she pays. Her one channel is with a provider: a company running a well-connected Lightning node that stays online all day.
On mainnet the default provider is ACINQ, the company behind the Phoenix wallet. Here Bob's phone uses Megalith, chosen under Advanced, a provider that sells channels through a standard called LSPS2. Between ACINQ and Megalith sit other Lightning nodes run by unrelated operators.
Each provider owns its side of the channel, so it can carry Alice's payments out and bring payments in. The rest of the network is a web of channels like hers, and a payment travels by hopping across them.
What you see on setup: "Basic" says "the spending account uses ACINQ, the provider behind Phoenix." Under Advanced, the provider screen offers "ACINQ (the Phoenix provider)" or "Another provider (LSPS2)".
What it hides: two different Lightning engines. ACINQ runs on ACINQ's own library; any other provider runs on LDK, a separate Lightning implementation built into the app.
Look underneath
ACINQ engine (mainnet only)
lightning-kmp 1.13.2, the library inside Phoenix. One channel per phone that grows and shrinks with splices. Outgoing payments go through ACINQ's trampoline node, which finds the route on the phone's behalf. It watches the chain through ACINQ's own Electrum server, because lightning-kmp needs Electrum; this is the one place the app does not use Esplora.
LDK engine (other providers)
ldk-node 0.7 running on the phone, with LSPS2 just-in-time channels from the provider. The mainnet default is Megalith's public LSPS2 node. Signet and regtest have no default ("Set a provider under Advanced in Settings to receive your first payment."), and Lightning is refused on Testnet4. Mainnet routing uses Rapid Gossip Sync snapshots instead of learning the graph from peers.
The provider is trusted not to need an anchor reserve on the phone's side, so the app does not hold back on-chain coins for fee-bumping a force close.
The two engines sit behind one SpendingNode interface in the Android app. ACINQ is not available off mainnet.
04 The first channel
The first channel is opened by the provider and paid for out of the first payments
A new spending account has no channel. The provider opens one when money first arrives, and keeps a fee for the blockchain transaction and the capital it locks up.
With ACINQ, that setup fee is 1% plus the mining fee. Incoming payments too small to cover that are held as credit towards the fee instead of being refused. Credit can build up to 50,000 sats; once it covers the setup fee, the channel opens and the rest becomes the balance.
An LSPS2 provider such as Megalith uses a different rule. It opens a channel just in time, when a payment arrives that the existing channels cannot take, and keeps its fee out of that payment. Because the fee depends on the amount, a request that opens a channel has to name one.
What you see with ACINQ: "Your spending account isn't open yet. This payment counts toward the setup fee of about 2,800 sats; the account opens with the payment that covers the rest." With an LSPS2 provider, a request with no amount is refused: "Your spending account opens with the first payment, so ask for an amount."
What it hides: the channel open, the liquidity purchase and the credit ledger. Afterwards a receipt says "The provider kept this to make room for the payment in your channel."
Look underneath
ACINQ: liquidity policy and fee credit
LiquidityPolicy.Auto(
inboundLiquidityTarget = null,
maxAbsoluteFee = 5_000 sat + credit,
maxRelativeFeeBasisPoints = 100_00, # fee may be up to the whole payment
skipAbsoluteFeeCheck = true,
maxAllowedFeeCredit = 50_000 sat,
)
An incoming payment that does not fit the channel pays ACINQ's liquidity fee (1% of the added amount plus the mining fee) out of itself, as long as that is less than the payment. Phoenix itself stops at 5,000 sats and at half the payment; OnlyBits relaxes those so large payments and payments just too big for credit are not refused. Fee credit is not spendable, so the app shows it apart from the balance.
LDK: LSPS2 just-in-time channels
If an invoice's amount does not fit current inbound capacity, the app calls receive_via_jit_channel. The invoice then carries a route hint through an intercept short channel id at the provider. When the payment arrives, the provider opens a channel to the phone and forwards the payment minus its opening_fee, computed from its fee menu (a minimum plus a proportional part).
ldk-node refuses every payment to an open-amount JIT invoice because its fee check ignores the provider's minimum fee, which is why the app asks for an amount.
05 The request
Bob's request carries the price and a fingerprint of a secret that only his phone knows
To get paid, Bob's phone makes a payment request, called an invoice. It says who to pay, how much, and for what, and it is good for one hour.
Before it does, the phone picks a random secret and keeps it. The invoice carries only a fingerprint of that secret, called a hash. Anyone can check whether a given secret matches the hash, but nobody can work the secret out from the hash.
That pairing is the whole trick of the next two sections. Bob will only get the money by revealing the secret, and revealing the secret is proof that he was paid.
Bob's phone picks a random secret and keeps it.
It hashes the secret. Anyone can check a secret against the hash, but nobody can work the secret out from it.
The phone writes the invoice: 4,000 sats, "Order 42", valid for one hour, paid to Bob's node, and the hash goes in with them.
The invoice can be shown to anyone, as a QR code or a phone tap. The secret never leaves Bob's phone.
What Bob sees: a QR code with "Valid for one hour." and "Or hold their phone to this one" for a phone tap. What Alice sees: "Ask the person you pay for a Lightning request. It starts with lnbc, or comes as a QR code to scan."
What it hides: the hash, the secret, the node id, the expiry field and the route hints. Only BOLT11 requests work; LNURL, Lightning Addresses and BOLT12 offers do not.
Look underneath
A BOLT11 invoice is bech32: human-readable part lnbc (mainnet) plus an amount with a multiplier. 40u is 40 micro-bitcoin, 4,000 sats. The data part holds a timestamp and tagged fields, signed by the payee's node key.
p payment_hash SHA256(preimage), 32 bytes s payment_secret stops probing by intermediate hops d description "Order 42" # capped at 100 chars by the app x expiry 3600 # INVOICE_EXPIRY_SECS c min_final_cltv_expiry_delta r route hints # Bob's channel is private, so the invoice says how to reach it via Megalith
The secret is the preimage, 32 random bytes. SHA-256 is preimage-resistant, so the hash reveals nothing usable about it.
Parsing
The app accepts lightning: and ln... strings and bitcoin: links with a lightning= parameter. An lnurl... string is recognised as a Lightning request but fails to parse as BOLT11. A request can be passed by NFC: the receiving phone acts as an NFC card, so long invoices fit.
06 The offers
Each hop offers the next one money that can only be claimed with Bob's secret
Alice cannot hand Bob 4,000 sats directly, because they share no channel. Instead each pair along the route makes a conditional promise, called a hash-locked offer.
Alice offers ACINQ 4,020 sats on these terms: ACINQ can have them if it shows the secret that matches Bob's hash before a deadline; if not, they come back to Alice. ACINQ makes the same kind of offer to the router for a little less, the router to Megalith, and Megalith offers Bob exactly 4,000.
Each hop keeps the small difference as its fee. Nobody is out of pocket yet, because every offer is locked to a secret none of them has.
Alice and Bob share no channel. The route runs through ACINQ, a router run by a stranger, and Megalith.
Alice offers ACINQ 4,020 sats, locked to Bob's hash. ACINQ can have them by showing the matching secret before a deadline; if not, they come back to Alice.
ACINQ makes the same kind of offer to the router for a little less, 4,006, and the router offers Megalith 4,002.
Megalith offers Bob exactly 4,000. Every channel on the route now holds a locked offer, and none of the hops has the secret.
The deadlines shrink towards Bob, so each hop gets its refund later than the hop after it.
What Alice sees before paying: "Pay 4,000 sats plus at most 20 sats in routing fees".
What it hides: the route, the hops, the deadlines and the locks. With ACINQ, the phone does not even choose the route: it hands the payment to ACINQ's node and says where it has to end up.
Look underneath
Each offer is an HTLC (hash time-locked contract), added to both commitment transactions of a channel as an extra output:
# offered HTLC, simplified OP_IF OP_SHA256 <payment_hash> OP_EQUALVERIFY <remote_htlc_key> # claim with the preimage OP_ELSE <cltv_expiry> OP_CHECKLOCKTIMEVERIFY OP_DROP <local_htlc_key> # refund after the deadline OP_ENDIF OP_CHECKSIG
The real BOLT 3 scripts add revocation paths and use OP_SIZE checks. Each hop's cltv_expiry is the next hop's plus that hop's cltv_expiry_delta.
Onion routing and trampoline
The route is wrapped in a Sphinx onion (BOLT 4): each hop learns only the previous and next hop and the amount to forward. With the ACINQ engine, Alice builds a trampoline onion instead: ACINQ's node receives the final destination and amount and computes the rest of the route itself, with a CLTV budget of 576 blocks. So ACINQ learns that Alice paid Bob's node. With the LDK engine, the phone computes the route from Rapid Gossip Sync data and the invoice's route hints.
The hop amounts in the figure (4,006 and 4,002) are illustrative. Only the 20 sat total for Alice is exact.
07 Settlement
The secret travels back along the route and turns every offer into a payment
Bob's phone sees an offer of 4,000 sats locked to its own hash. It reveals the secret to Megalith and takes the 4,000.
Megalith now knows the secret, so it shows it to the router and claims 4,002. The router claims 4,006 from ACINQ, and ACINQ claims 4,020 from Alice. Each pair re-signs its channel split, and every hop ends up ahead by its fee.
The secret reaching Alice's phone is her receipt. Bob could only have released it by being paid, so the payment is final, about two seconds after it started.
All four offers are locked. Bob's phone holds the secret, the small square, and sees 4,000 sats locked to its own hash.
Bob reveals the secret to Megalith and takes the 4,000. Megalith now knows the secret too.
Megalith shows it to the router and claims 4,002. The router shows it to ACINQ and claims 4,006.
ACINQ claims 4,020 from Alice. The secret reaching her phone is her receipt: Bob could only have released it by being paid.
Each pair re-signs its channel split, and every hop ends up ahead by the difference it kept.
What Alice sees: the payment marked as sent, and her Spending balance down to 55,980. Bob's phone shows "You received 4,000 sats" if it was waiting in the background.
What it hides: the secret, which is the proof of payment, and the channel updates on each hop.
Look underneath
Bob -> Megalith update_fulfill_htlc(id, payment_preimage)
Megalith -> Bob commitment_signed / revoke_and_ack # HTLC removed, 4,000 to Bob's side
Megalith -> router update_fulfill_htlc(id, payment_preimage)
...
ACINQ -> Alice update_fulfill_htlc(id, payment_preimage)
A hop that has learned the preimage and cannot reach its upstream peer in time can claim the HTLC on-chain with it before cltv_expiry. That is what makes forwarding safe without trusting the next hop.
If something fails
A hop that cannot forward sends update_fail_htlc back with an encrypted error, the offers unwind, and Alice's sender (or ACINQ's trampoline) tries another route. Nothing is paid until the preimage moves.
08 Routing fees
Routing fees are small and capped, and the cap depends on which provider runs the account
Each hop charges a small fixed fee plus a share of the amount. Alice's phone sets a maximum before it sends, and refuses routes that would cost more.
With ACINQ, every payment goes through ACINQ's node at one fixed price: 4 sats plus 0.4% of the amount, which covers the rest of the route. For 4,000 sats that is exactly 20 sats. With the LDK engine, the phone finds its own route and accepts at most 1% plus 50 sats, so a 4,000 sat payment may cost up to 90 sats, though most routes cost far less.
The percentage matters more as amounts grow. A 1,000,000 sat payment would cost 4,004 sats through ACINQ, and up to 10,050 under the LDK cap.
What you see: "Pay 4,000 sats plus at most 20 sats in routing fees" in the confirm prompt.
What it hides: how the figure was computed and which engine produced it.
Look underneath
# LDK engine, the same as LDK's own default fn max_routing_fee_msat(amount_msat) -> u64 { amount_msat / 100 + 50_000 } # ACINQ engine trampolineFees = TrampolineFees(4.sat, 4_000 ppm, CltvExpiryDelta(576)) # "this is what it costs, not only the limit"
Channel fees in Lightning are set per channel as fee_base_msat plus fee_proportional_millionths, advertised in channel_update gossip. A route's fee is the sum over its hops, computed backwards from the destination.
ACINQ's trampoline fee is fixed per payment; ACINQ absorbs the actual route cost behind it. The figure is rounded up to the next whole sat.
09 Being online
Bob's phone has to be running to receive, because Lightning payments arrive live
On-chain, Bob's address can receive while his phone is off. A Lightning payment is a conversation: his phone has to answer the offer and reveal the secret while Alice is paying.
If the app is closed, it can keep waiting in the background for ten minutes, with a notification showing. After that, payments to Bob fail, and Alice sees the failure and has to try again later.
Sending only needs the sender's app open for the two seconds it takes.
What Bob sees under his request: "Valid for one hour. Payments arrive live, so keep the app open until it is paid, or let it wait in the background for 10 minutes." and a "Wait in the background" button.
What it does not do: receive while the app is closed beyond that ten-minute wait.
Look underneath
The background wait is an Android foreground service (LightningWait) with a low-importance notification "Waiting for a Lightning payment" and a "Stop waiting" action. It is limited to 10 minutes and posts "You received ..." when a payment lands.
Why there is no push for Lightning
To receive, the node must be connected to its provider and able to sign new commitments. Waking it needs the provider to hold the payment and send a push, which ACINQ does for Phoenix through its own notification service. The app's own push relay wakes phones for shared-wallet signing only.
What a sender sees
If the payee is offline, the last hop cannot forward and returns a failure; Alice's offers unwind and nothing is spent.
10 Cheating
Publishing an old split forfeits the whole channel, but nothing stops a payee from keeping the money
Every old split Alice and ACINQ ever signed is still a valid transaction. The protocol stops either side using one by making it a trap.
Suppose Alice tried to cheat by publishing the split from before the payment, where she had 60,000. Or suppose ACINQ published an older split in which its side was 60,000. In both cases the cheat's own share is held back for a waiting period, and the other side holds a revocation key it was given when that split was replaced. With it, the honest side takes the entire 100,000 sats.
That only works if the honest side notices within the waiting period. Alice's phone has to come online and check the chain before the delay runs out; a phone left off for weeks gives a cheating provider a chance.
Bob takes the 4,000 sats and never delivers what they were for. The secret proves Bob was paid. It says nothing about what he owed in return. Lightning settles payments and has no refunds, disputes or chargebacks; that part still runs on trusting the payee.
Alice and ACINQ have signed three splits. The two older ones are revoked; only the newest is current. In the oldest, ACINQ's side was 60,000.
Suppose ACINQ publishes that oldest split. It is still a valid transaction, so it goes on the blockchain.
The publisher's own share is held back for a waiting period, counted in blocks.
When that split was replaced, Alice was given a revocation key for it. With it, her phone takes the entire 100,000 sats.
That only works if her phone comes online and checks the chain before the wait runs out.
What you see: nothing, unless it happens. Both engines watch the chain whenever the app runs and publish the penalty themselves.
What it hides: the revocation secrets, the waiting periods, and the fact that protection depends on opening the app now and then. There is no separate watchtower.
Look underneath
A commitment's to_local output is spendable by its owner only after to_self_delay blocks (OP_CHECKSEQUENCEVERIFY), or immediately by the other side with the revocation key. Each revoke_and_ack hands over the per-commitment secret that lets the other side derive that key for the old state.
OP_IF <revocationpubkey> # other side, any time, if revoked OP_ELSE <to_self_delay> OP_CHECKSEQUENCEVERIFY OP_DROP <local_delayedpubkey> # owner, after the delay OP_ENDIF OP_CHECKSIG
The waiting period protecting Alice is the to_self_delay her side asked for when the channel opened; this page did not check the exact value each engine uses. Pending HTLCs on a revoked commitment are claimable with the revocation key too.
Not a protocol problem
Proof of payment is the preimage, plus the signed invoice that names Bob's node and the description. That can help in a dispute between people. It cannot move money back.
11 Restore
A restore gets the spending money back through the provider, not from the app's backup
The current split of a channel lives on the phone. The app's Google backup never holds it, because a backup that might be out of date is dangerous: publishing an old split is exactly the cheat from the last section.
With ACINQ, the restored phone reconnects with the same recovery phrase, and ACINQ's library brings the channel back. With an LDK provider, the restored phone has no channel at all. The provider notices a channel it cannot resume and closes it on the blockchain, which pays Alice's share to an address derived from her recovery phrase, and the app sweeps it into her spending account's on-chain wallet.
Either way Alice depends on the provider at this moment. A provider that never closes, or closes with an old split once her phone has forgotten the revocation keys, is the case the recovery phrase alone cannot answer.
Alice restores on a new phone from her recovery phrase. The channel's current split was never in the backup.
With ACINQ, the phone reconnects with the same phrase, and ACINQ's library brings the channel back.
With an LDK provider, the new phone has no channel. The provider notices a channel it cannot resume and closes it on the blockchain.
The close pays Alice's share to an address derived from her recovery phrase.
The app finds it and sweeps it into the spending account's on-chain wallet. Either way, the money came back through the provider.
What you see on restore: "Money in the spending account comes back through its provider, not from this backup." Switching provider later says "Money in the spending account stays with the old provider. Switch back to reach it."
What it hides: the force close, the sweep, and the separate keys for each engine, both derived from the same phrase.
Look underneath
Keys
Both Lightning seeds are derived from the wallet seed with BIP85-style HMAC derivation under m/83696968'/128169'/...: the ldk-node seed at .../64'/{coin}' (64 bytes) and the lightning-kmp seed at .../48'/{coin}' (48 bytes). A restore rebuilds the same node ids. Details are in The key tree explained.
LDK recovery
ldk-node keeps channel state only in its on-device store. After a restore the node starts empty; when it connects, the provider finds a channel the phone cannot reestablish and force-closes it. The phone's side of that close pays a to_remote output to one of LDK's static payment keys, which come from the seed (in anchor channels, a P2WSH with a one-block CSV). src/lightning/recovery.rs scans for outputs to those scripts and sweeps them into the node's on-chain wallet.
The restored phone holds no revocation secrets for the old channel, so it cannot punish a provider that closes with an older state. Here the provider is trusted.
ACINQ recovery
The app has no restore code of its own for this engine and relies on lightning-kmp and ACINQ doing what they do for Phoenix, where ACINQ's node keeps an encrypted copy of the channel data that the phone reads back on reconnecting. This page has not tested that path end to end.
12 The cost
Lightning trades on-chain fees for limited room to receive, a phone that must be online, and a provider in the middle
A 4,000 sat payment costs 20 sats and two seconds. The spending account pays for that in four ways.
Room. Alice can send only what is on her side of the channel, and receive only what is on ACINQ's side without paying the provider again to make more room. Being online. Receiving needs the app running, and the penalty in section 10 needs it opened now and then. The provider. ACINQ or Megalith carries every payment, can refuse service, learns where payments go (ACINQ sees each payee through its trampoline), and is the path back after a restore. Formats. Only BOLT11 requests work, so there is no paying an LNURL code, a Lightning Address like a name at a domain, or a BOLT12 offer.
That is why the app keeps savings and spending apart: savings for amounts that should sit still on the blockchain, spending for small everyday payments.
What you see: one balance, a fee on the receipt when the provider makes room, and warnings when the app needs to stay open.
What it does not do: LNURL, Lightning Address, BOLT12, Lightning on Testnet4, ACINQ off mainnet, receiving while closed, or keeping channel state in the cloud backup. The app is unaudited and in early development; keep in the spending account only what you would carry in a wallet.
Look underneath
Liquidity in each engine
ACINQ: an incoming payment that does not fit grows the channel by splice, paid from the payment (1% plus mining fee). LDK: an invoice that does not fit inbound capacity becomes a JIT invoice and the provider opens another channel. Moving coins in from savings is the subject of Moving money explained.
What the provider can and cannot do
- Cannot take Alice's side of the channel without the penalty risk in section 10.
- Can refuse to forward, or go offline, leaving her to close the channel on-chain and wait out her own delay.
- With ACINQ, sees the destination and amount of every payment through the trampoline. With LDK, the provider sees the next hop only, but Megalith knows each JIT channel it opens.
What did not get traded away
Neither provider can spend Alice's share alone. Every split she holds is a transaction she can publish without asking anyone, so the worst case short of losing the phone is an on-chain close and a wait, not a loss. That is the difference between a spending account on Lightning and a balance at a company.
One payment, end to end
Four hops, one secret, twenty sats
- The channel
- One coin locked by two parties, plus a split both re-sign for every payment.
- The provider
- ACINQ by default on mainnet, or an LSPS2 provider such as Megalith on LDK, carrying every payment.
- The request
- A BOLT11 invoice with an amount, a one-hour expiry and the hash of the payee's secret.
- The lock
- Offers along the route that pay out only for the secret, before shrinking deadlines.
- The fee
- 4 sats plus 0.4% through ACINQ, at most 1% plus 50 sats on LDK.
- The punishment
- Publishing a replaced split hands the whole channel to the other side.
- The cost
- Limited room, a phone that must be online, and a provider in the middle of every payment and every restore.
The channel size, the balances on each side, the 2,800 sat setup fee, Bob's 30,000 sat first payment and the hop amounts 4,006 and 4,002 are illustrative. The 20 sat ACINQ fee, the 1% plus 50 sat LDK cap, the 50,000 sat credit limit, the one-hour invoice expiry and the 10-minute background wait were read from the OnlyBits source as of October 2026, and quoted screen text is copied from it. The ACINQ restore path relies on lightning-kmp and was not traced through the app's own code; the penalty delay was not checked for either engine. The parts that will age first are the library versions (lightning-kmp 1.13.2, ldk-node 0.7), the default providers, and the missing formats, any of which may be added. Alice and Bob are labels for payer and payee, the router is any Lightning node, and Bob uses a different provider from Alice so the route has more than one hop. Read Fees and coins explained first for coins and on-chain fees, and Moving money explained next for how coins get between savings and spending.