Skip to main content

Bitcoin Practice

  • Chapter
  • First Online:
Book cover Bitcoin and Lightning Network on Raspberry Pi
  • 1206 Accesses

Abstract

In this chapter we will learn how to automate Bitcoin’s daemon with systemd, a software suite that provides service management facilities. It will help us create Raspberry Nodes that are more resilient to failures. We will also learn to communicate with Bitcoin nodes by utilizing packages and libraries written in Python and JavaScript. Although Bitcoin offers an easy-to-use graphical wallet, the real power lies in services that run behind it. The knowledge about its interfaces and commands should be part of every proper crypto-toolbelt. We will also learn to build our own Bitcoin Explorer by using an inexpensive, database-independent tool called btc-rpc-explorer. Following one of the golden rules in blockchains “Don’t trust. Verify.”, we should always strive to utilize the information that our own nodes provide. There is no need to rely on 3rd-party services, no matter how convenient they might be, because validating Full Nodes, like those we’re building here, offers everything we need to be independent actors in decentralized networks.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://en.wikipedia.org/wiki/Systemd

  2. 2.

    https://en.wikipedia.org/wiki/Endianness

  3. 3.

    NodeJS Package Manager, a tool for managing packages in the NodeJS environment

  4. 4.

    https://fredkschott.com/post/2014/06/require-and-the-module-system/

  5. 5.

    https://en.bitcoin.it/wiki/Multisignature

  6. 6.

    https://bitcoincore.org/en/2016/01/26/segwit-benefits/

  7. 7.

    https://en.bitcoin.it/wiki/Transaction_Malleability

  8. 8.

    https://en.bitcoin.it/wiki/Segregated_Witness

  9. 9.

    https://en.bitcoin.it/wiki/Wallet_import_format

  10. 10.

    https://en.bitcoin.it/wiki/Elliptic_Curve_Digital_Signature_Algorithm

  11. 11.

    https://libbitcoin.org

  12. 12.

    https://en.bitcoin.it/wiki/List_of_address_prefixes

  13. 13.

    https://github.com/janoside/btc-rpc-explorer/blob/master/.env-sample

  14. 14.

    https://linux.die.net/man/8/iptables

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Harris Brakmić

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Brakmić, H. (2019). Bitcoin Practice. In: Bitcoin and Lightning Network on Raspberry Pi. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5522-3_8

Download citation

Publish with us

Policies and ethics