Learn / Run your own Lightning

Lesson

Run your own Lightning

Any company can run its own payments rail for sign-in deposits. No wallet app, no custodian, no bank. The company is the wallet. This lesson shows the five steps and what they cost.

Your company's own serversBitcoin full nodeChecks every blockLightning nodeHolds the channelsSign-in serviceHolds depositsEmployee cardsAccounts on your nodePartner companyDirect channelPublic LightningOptional, one channelSolid = your own links, no routing fees · dashed = optional outside link
The whole picture. The steps below build it one piece at a time.
Step 1

Your own Bitcoin node

Start with Bitcoin Core, the open-source Bitcoin software. It runs on a company server and checks every block itself.

That means you trust no one else's view of the chain. If the node says a payment is final, it is, because your own machine checked.

A node is a program that keeps its own copy of the ledger and verifies it.

Bitcoinpublic blocksYour Bitcoin nodeBitcoin Corechecks every blockblocksno one else's view of the chain
Step 2

Your own Lightning node

Next, run an open-source Lightning node, such as LND or Core Lightning, on company servers. It talks to your Bitcoin node and holds the channels.

A channel is a private balance shared between two parties that can be moved instantly, without touching the Bitcoin chain each time.

Company serversBitcoin nodeLightning nodeholds the channels
Step 3

Fund it once

Move some bitcoin from the company treasury into the node. That is the whole funding step.

The only normal Bitcoin fees are one on-chain fee to open a channel and one to close it. Everything between those two moments is free.

Treasurycompany bitcoinLightningnode balancefund onceon-chain fee: openand again to close
Step 4

Give everyone access, two ways

Accounts on your node. Each employee's smart card is an account. A move between accounts is an internal ledger update: instant, zero fee, nothing to install. This is the RPOW model. The card signs, and the company node places the deposit hold and refunds it.

Direct channels to partner companies. Open a channel straight to a partner. No middleman and no routing fees. You pay only to open and close it.

Company nodeinternal ledgerCard: AnaCard: RajCard: Leeaccounts: free, instantPartnercompanydirect channel
Step 5

Optional: one door to the public network

If you also need to pay outsiders, open a single channel to the public Lightning network. Payments to outsiders then pay a small routing fee to the nodes in between.

For a closed company rail, leave this off. Nothing else depends on it.

Company nodeclosed railPublic Lightningoptionalone channelsmall routing fee
Why it is free

Why deposits cost nothing

A sign-in deposit is a held payment, called a hold invoice. The sats are locked, not spent.

A clean sign-out cancels the hold and the sats return to the user. Nothing was settled, so there is no fee. Only a blockade surcharge settles, and it stays inside your node, so it is free too. See Bitcoin & Lightning deposits and The blockade.

Heldlocked, not spentReturnedfee 0Surchargeinternal, fee 0clean sign-outblockade
Try it

Run the company rail

Illustrative numbers only. Real fees change with the Bitcoin network. Here an on-chain fee is 2,000 sats, a routing fee is 3 sats, and a deposit is 100 sats.

Node balance (sats)0
Held (sats)0
On-chain fees paid0
Routing fees paid0

Partner channel: closedPublic channel: closedEmployees in: 0

Start by funding the node.

  • Rail created. Nothing funded yet.
Deposits are held, not spent, so on your own rail they cost nothing. You pay only to open and close channels.

Terms: sats = satoshis; hold invoice = a payment that is locked, then either settled or cancelled; watchtower = a service that watches channels while you are offline.