Lightning protocol basics are the foundational specifications and units behind the Lightning Network, a layer built on top of Bitcoin for fast, low-cost payments. The network lets two parties open a payment channel and then exchange many small payments without recording each one on the main blockchain. Payments can also be forwarded across a chain of channels, which is the job of routing nodes.
Three pieces of the foundation are described here: the BOLT specifications that define how independent software implementations talk to each other, the millisatoshi unit in which amounts are expressed, and the routing fees that nodes charge for forwarding payments. They matter to wallet developers, to businesses accepting payments, and to node operators, and they explain why Lightning suits micropayments that would be uneconomic on-chain. This entry describes how the system works and gives no investment advice.
BOLT Specifications
The BOLT specifications, short for Basis of Lightning Technology, are the open documents that define how Lightning nodes interoperate. They are numbered, and they cover topics such as the way channels are opened and closed, how payments are forwarded, how nodes announce themselves and find routes, how payment requests (invoices) are encoded and how messages are exchanged between peers. The invoice format, for example, is set out in a numbered BOLT and is what a wallet decodes when it scans a payment request.
The documents are kept in an open repository and developed by contributors from several competing software teams, rather than by a company or a standards body such as ISO. Their purpose is interoperability: a node built by one team must be able to open a channel with, and route a payment through, a node built by another. Extensions are proposed and adopted through the same process, in a way similar to the Bitcoin Improvement Proposal process. The routing of payments relies on hashed timelock contracts defined in the specifications.
Millisatoshi (msat)
A millisatoshi is one thousandth of a satoshi, the smallest unit of bitcoin that is recorded on the main chain. One satoshi is one hundred-millionth of a bitcoin, so one millisatoshi is a hundred-billionth of a bitcoin. Lightning uses millisatoshis internally for payment amounts and fees, even though the final settlement on the Bitcoin blockchain cannot go below a satoshi.
The finer unit matters because routing fees on small payments are tiny. A node forwarding a payment of a few thousand satoshis may charge a fee of a fraction of a satoshi, which a satoshi-based system would have to round to zero or to a whole satoshi, overcharging or giving away the service. Counting in millisatoshis lets nodes price very small transfers accurately and supports uses such as pay-per-use content, tipping and machine-to-machine payments. Wallets usually show users satoshis or a local currency and keep the millisatoshi detail hidden. Amounts are rounded at settlement of a channel.
Lightning Routing Fees
Lightning routing fees are the charges a node takes for forwarding a payment from one channel to the next. Each node sets its own forwarding policy, which has two parts: a fixed base fee, charged on every forwarded payment, and a fee rate, charged in proportion to the amount and quoted in parts per million (ppm). The fee on a forwarded amount is:
For example, a node with a base fee of 1 satoshi and a rate of 100 ppm, forwarding 100,000 satoshis, charges satoshis. The sender adds up the fees of every node on the path and includes them in the payment, as described in routing a payment.
Fees are normally a small fraction of a percent. Operators adjust them to manage channel liquidity, charging more on a channel that is running out of funds in one direction and less on one that needs balancing. Senders choose among routes using cost, reliability and speed.
Ref 1070001416