Buy New
-60%
$32.07$32.07
FREE delivery Thursday, September 3 on orders shipped by Amazon over $35
Ships from: Amazon.com Sold by: Amazon.com
Used - Like New
$17.99$17.99
FREE delivery Tuesday, September 8
Ships from: Academic Book Solutions Sold by: Academic Book Solutions
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the authors
OK
Mastering the Lightning Network: A Second Layer Blockchain Protocol for Instant Bitcoin Payments
Purchase options and add-ons
The Lightning Network (LN) is a rapidly growing second-layer payment protocol that works on top of Bitcoin to provide near-instantaneous transactions between two parties. With this practical guide, authors Andreas M. Antonopoulos, Olaoluwa Osuntokun, and Rene Pickhardt explain how this advancement will enable the next level of scale for Bitcoin, increasing speed and privacy while reducing fees.
Ideal for developers, systems architects, investors, and entrepreneurs looking to gain a better understanding of LN, this book demonstrates why experts consider LN a critical solution to Bitcoin's scalability problem. You'll learn how LN has the potential to support far more transactions than today's financial networks.
This book examines:
- How the Lightning Network addresses the challenge of blockchain scaling
- The Basis of Lightning Technology (BOLT) standards documents
- The five layers of the Lightning Network Protocol Suite
- LN basics, including wallets, nodes, and how to operate one
- Lightning payment channels, onion routing, and gossip protocol
- Finding paths across payment channels to transport Bitcoin off-chain from sender to recipient
- ISBN-101492054860
- ISBN-13978-1492054863
- Edition1st
- PublisherO'Reilly Media
- Publication dateJanuary 4, 2022
- LanguageEnglish
- Dimensions7 x 1 x 9.25 inches
- Print length464 pages
![]() |
Frequently bought together

Customers who viewed this item also viewed
- Mastering Bitcoin: Programming the Open BlockchainPaperbackFREE Shipping by AmazonGet it as soon as Thursday, Sep 3
- Programming Bitcoin: Learn How to Program Bitcoin from ScratchPaperbackGet it as soon as Saturday, Sep 12
- Mastering Blockchain: Unlocking the Power of Cryptocurrencies, Smart Contracts, and Decentralized ApplicationsPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Thursday, Sep 3Only 3 left in stock (more on the way).
- The Bitcoin Standard: The Decentralized Alternative to Central BankingHardcoverGet it as soon as Friday, Sep 4
- Mastering Bitcoin: Programming the Open BlockchainPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Thursday, Sep 3Only 1 left in stock - order soon.
- Mastering Ethereum: Implementing Smart ContractsPaperbackFREE Shipping by AmazonGet it as soon as Thursday, Sep 3
Customers also bought or read
- Programming Bitcoin: Learn How to Program Bitcoin from Scratch
Paperback$33.26$33.26Delivery Sep 12 - 14 - Mastering Blockchain: Unlocking the Power of Cryptocurrencies, Smart Contracts, and Decentralized Applications
Paperback$29.77$29.77Delivery Thu, Sep 3 - The Bitcoin Standard: The Decentralized Alternative to Central Banking#1 Best SellerBanking
Hardcover$23.39$23.39Delivery Sep 4 - 6 - Inventing Bitcoin: The Technology Behind the First Truly Scarce and Decentralized Money Explained
Paperback$14.95$14.95Delivery Thu, Sep 3 - The Genesis Book: The Story of the People and Projects That Inspired Bitcoin
Paperback$17.99$17.99Delivery Thu, Sep 3 - The Orange Flash of Freedom: Understanding and using the Bitcoin Lightning network
Paperback$14.99$14.99Delivery Thu, Sep 3 - The Blocksize War: The battle over who controls Bitcoin’s protocol rules
Paperback$21.99$21.99Delivery Thu, Sep 3 - Bitcoin is for Everyone: Why our financial system is broken and Bitcoin is the solution
Paperback$13.76$13.76Delivery Sep 8 - 10 - The Internet of Money: A collection of talks by Andreas M. Antonopoulos
Paperback$11.44$11.44Delivery Sep 8 - 9 - Understanding DeFi: The Roles, Tools, Risks, and Rewards of Decentralized Finance
Paperback$41.20$41.20FREE delivery Thu, Sep 3 - The Treasury of Michael Saylor: How Bitcoin Powers Cultures, Corporations, and Countries in the 21st Century
Paperback$13.99$13.99Delivery Thu, Sep 3 - The Satoshi Papers: Reflections on Political Economy After Bitcoin
Paperback$17.84$17.84Delivery Thu, Sep 3 - The Fiat Standard: Debt Slavery Alternative to Human Civilization
Hardcover$22.84$22.84Delivery Thu, Sep 3 - Serious Cryptography, 2nd Edition: A Practical Introduction to Modern Encryption
Paperback$43.40$43.40FREE delivery Thu, Sep 3 - The Book Of Satoshi: The Collected Writings of Bitcoin Creator Satoshi Nakamoto
Paperback$25.40$25.40Delivery Thu, Sep 3 - Hands-On Smart Contract Development with Solidity and Ethereum: From Fundamentals to Deployment
Paperback$33.99$33.99Delivery Thu, Sep 3 - Proof of Stake: The Making of Ethereum and the Philosophy of Blockchains
Paperback$14.30$14.30Delivery Thu, Sep 3 - Cryptoassets: The Innovative Investor's Guide to Bitcoin and Beyond
Hardcover$14.40$14.40Delivery Thu, Sep 3 - The Big Print: What Happened To America And How Sound Money Will Fix It
Paperback$16.52$16.52Delivery Thu, Sep 3 - The Infinite Machine: How an Army of Crypto-hackers Is Building the Next Internet with Ethereum – A True Story of Blockchain Technology, Financial Innovation, and Transformation
Hardcover$11.00$11.00$3.99 delivery Sep 4 - 21 - Digital Gold: Bitcoin and the Inside Story of the Misfits and Millionaires Trying to Reinvent Money
Paperback$14.24$14.24Delivery Fri, Sep 4
From the brand
-
Cryptocurrency & Blockchain
-
Explore finance resources
-
More from O'Reilly
-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
From the Publisher
The Lightning Network (LN) is a second layer peer-to-peer network that allows us to make Bitcoin payments “off-chain,” meaning without committing them as transactions to the Bitcoin blockchain.
The Lightning Network gives us Bitcoin payments that are secure, cheap, fast, and much more private, even for very small payments.
Building on the idea of payment channels, first proposed by Bitcoin’s inventor Satoshi Nakamoto, the Lightning Network is a routed network of payment channels where payments “hop” across a path of payment channels from the sender to the recipient.
The initial idea of the Lightning Network was proposed in 2015 in the groundbreaking paper “The Bitcoin Lightning Network: Scalable Off-Chain Instant Payments,” by Joseph Poon and Thaddeus Dryja. By 2017, there was a “test” Lightning Network running on the internet, as different groups built compatible implementations and coordinated to set some interoperability standards. In 2018, the Lightning Network went “live” and payments started flowing.
In 2019, Andreas M. Antonopoulos, Olaoluwa Osuntokun, and René Pickhardt agreed to collaborate to write this book. It appears we have been successful!
Intended Audience
This book is mostly intended for technical readers with an understanding of the fundamentals of Bitcoin and other open blockchains.
Editorial Reviews
About the Author
Andreas has written two more best-selling technical books for programmers with O'Reilly Media, Mastering Bitcoin and Mastering Ethereum. He has also published The Internet of Money series of books, which focus on the social, political, and economic importance and implications of these technologies. Andreas produces free educational content on his YouTube channel weekly, and teaches virtual workshops on his website. Learn more at aantonop.com
Olaoluwa Osuntokun is the co-founder and CTO of Lightning Labs, and also the lead developer of lnd, one of the main implementations of Lightning. He received his B.S and M.S in Computer Science from UCSB and was a member of the Forbes 30 Under 30 class of 2019. During his graduate studies he focused on the field of applied cryptography, specifically encrypted search. He has been an active Bitcoin developer for over 5 years, and is an author of several Bitcoin Improvement Proposals (BIP 157+158). These days, his primary focus lies in building, designing, and evolving private, scalable off-chain blockchain protocols, such as Lightning.
René Pickhardt is a trained mathematician and data science consultant who uses his statistical knowledge to do research with NTNU about pathfinding, privacy, reliability of payments and service level agreements of the Lightning Network. René maintains a technical and developer-oriented Youtube channel about the Lightning Network and has answered roughly half of the questions about the Lightning Network on Bitcoin Stackexchange making him the go-to point for almost all new developers who want to join the space. René has held numerous workshops about the Lightning network in public and private, including teaching students of the 2019 Chaincode Labs residency together with other core Lightning Developers.
Product details
- Publisher : O'Reilly Media
- Publication date : January 4, 2022
- Edition : 1st
- Language : English
- Print length : 464 pages
- ISBN-10 : 1492054860
- ISBN-13 : 978-1492054863
- Item Weight : 2.31 pounds
- Dimensions : 7 x 1 x 9.25 inches
- Best Sellers Rank: #806,126 in Books (See Top 100 in Books)
- #202 in Bitcoin & Cryptocurrencies
- #203 in Computer Cryptography
- #326 in Business Entrepreneurship
- Customer Reviews:
About the authors

Rene Pickhardt is researching the reliability of the payment process on the Lightning Network. Together with his co-authors he created an imbalance measure for Lightning nodes, proposed Just in Time Routing (JIT Routing), introduced Probabilistic payment delivery and found the optimal split of multi part payments that led to the currently best known payment routing algorithm ( aka Pickhardt Payments ). He also disclosed several vulnerabilities.
As an educator Rene added the first article about the Lightning Network to the German Wikipedia, created an openly licensed 300 slides presentation diving into the protocol, answered more than 50% of all questions about the Lightning Network on Stack exchange and maintained the first youtube channel explaining the Lightning Network to developers.
Rene studied Mathematics, Physics, Chinese and Computer Science and was a fellow of the German National Academic Foundation.

Olaoluwa Osuntokun is the co-founder and CTO of Lightning Labs, and also the lead developer of lnd, one of the main implementations of Lightning. He received his B.S and M.S in Computer Science from UCSB and was a member of the Forbes 30 Under 30 class of 2019. During his graduate studies he focused on the field of applied cryptography, specifically encrypted search. He has been an active Bitcoin developer for over 7 years, and is an author of several Bitcoin Improvement Proposals (BIP 157+158). These days, his primary focus lies in building, designing, and evolving private, scalable off-chain blockchain protocols, such as Lightning.

Andreas M. Antonopoulos is an acclaimed author, speaker, educator, and one of the world’s foremost bitcoin and open blockchain experts. Andreas makes complex subjects accessible and easy to understand. He is known for delivering electric talks that combine economics, psychology, technology, and game theory with current events, personal anecdote, and historical precedent—effortlessly transliterating the complex issues of blockchain technology out of the abstract and into the real world.
In 2014, Antonopoulos authored the groundbreaking book, Mastering Bitcoin, widely considered to be the best technical guide ever written about the technology. His second book, The Internet of Money, unveiled the “why” of bitcoin—and became a bestseller on Amazon as did the follow up books The Internet of Money Volume Two, and The Internet of Money Volume Three. Mastering Ethereum, a technical guide to the Ethereum network, was published in late 2018. His most recent book Mastering the Lightning Network explains Bitcoin's second layer payment network. His books have been translated and published in 14 languages so far.
He is a teaching fellow with the University of Nicosia, serves on the Oversight Committee for the Bitcoin Reference Rate at the Chicago Mercantile Exchange, and has appeared as an expert witness in hearings around the world, including the Australian Senate Banking Committee and the Canadian Senate Commerce, Banking and Finance Committee.
As an entrepreneur, Andreas has founded a number of bitcoin businesses and launched several community open-source projects. He serves as an advisor to several bitcoin and crypto-currency companies. He is a widely published author of articles and blog posts on bitcoin, is a permanent host on the popular Speaking of Bitcoin Podcast, and a frequent speaker at technology and security conferences and meetups worldwide.
Andreas can be contacted via twitter (@aantonop) or via the contact forms on his website aantonop.com
Customer reviews
- 5 star4 star3 star2 star1 star3 star91%5%0%4%0%0%
- 5 star4 star3 star2 star1 star1 star91%5%0%4%0%0%
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonTop reviews from the United States
- 5 out of 5 stars
Starts as an overview then dives in
Reviewed in the United States on August 3, 2025This book pairs well with “Mastering Bitcoin”. It is comprehensive and useful both from an overview and technical (surprisingly) deep dive. The further one reads the more technically the material is covered. I bought to understand Lightning on a over level but found it covered many technical areas very well
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Another great book by Andreas!!
Reviewed in the United States on March 2, 2022I am Patreon and fan of Andreas !! Book is really informative and similar to earlier books of Mastering Bitcoin and Ethereum.
You can consider these books as reference books where you can always refer to understand basics of this complicated technology.
Great book Andreas and team !! Thanks for all your contribution to the community. Keep up the great work !!
One person found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
The internet—started over
Reviewed in the United States on June 21, 2023Portraying a clever evolution of our communication systems, this book is incredibly well-written and didactic. You'll fall in love with this technology. The future starts here.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Good as usual
Reviewed in the United States on December 29, 2021Antonopoulos has clear and thorough explanations throughout all of his books. I would recommend reading this one, Mastering Bitcoin and Mastering Ethereum to build a strong foundation in blockchain.
2 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Understandable by non-technical.
Reviewed in the United States on May 9, 2022Good balance between technical and practical
One person found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Serious about Bitcoin or not?
Reviewed in the United States on January 15, 2022Fantastic book. Anyone who is serious about Bitcoin needs to own it…simple as that.
6 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Masterpiece
Reviewed in the United States on December 21, 2021Work of art on the lightning network
2 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 2 out of 5 stars
Rushed to publication and inaccurate
Reviewed in the United States on December 14, 2025I love “mastering bitcoin “. I read both books, thoroughly. “Mastering Bitcoin” is a treasure.
Unfortunately, “Mastering Lightning” is not. In particular, I eventually figured out that its description of what happens when a node fails to pass on a transaction, is incorrect.
I believe it’s just that the book was written to hurriedly.
I appreciate the authors and will certainly purchase the second edition when it comes out
One person found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Top reviews from other countries
Jonas5 out of 5 starsHerausragendes Buch für breite Zielgruppe (Bitcoin Buch #1)
Reviewed in Germany on July 17, 2022Mit großer Vorfreude habe ich das Lesen des Buches begonnen und das Buch innerhalb weniger Wochen quasi verschlungen. Das Buch hat mich wie ein Roman gefesselt. Inzwischen habe ich das Buch ein paar Mal gelesen.
Besonders begeistert hat mich, dass das Buch sowohl Grundlagen und Intuitionen beinhaltet - und somit ein breites Verständnis vermittelt -, aber eben auch technologische Deep Dive. Somit kann man sich je nach Präferenz ein breiteres Verständnis des Lightning Netzwerks oder aber auch ein sehr fundiertes Technologie-Wissen aneignen.
Aus meiner Sicht ein absolutes "Must-Read" für jeden Krypto-Fan und -kenner und das beste Buch, was es heute zu Krypto gibt.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Wesley hope5 out of 5 starsLightning network textboook
Reviewed in the United Kingdom on August 9, 2024A very informative read I was very happy with this book it was an excellent buy
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Josh4 out of 5 starsA very comprehensive look at Lightning
Reviewed in Canada on February 13, 2023This is a very comprehensive look at the Lightning Network.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
R. Weissmann5 out of 5 starsAuuuuussssfffüüüühhhrrlich
Reviewed in Germany on December 16, 2021Ausführlich und gut verständlich geschrieben. Wird wohl die LN Bibel. Gut aufgebaut, mit einem Zoom-In Ansatz, d.h. von einfach zu schwer, so dass für jeden was dabei ist. Topp.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Amazon Kunde1 out of 5 starsFehlende Seiten
Reviewed in Germany on February 25, 2022Inhalt ausgezeichnet für Entwickler. Allerdings Druck miserabel: Mängelexemplar mit Fehlenden Seiten.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again






















