# blockchaincommons/learning-bitcoin-from-the-command-line

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/blockchaincommons-learning-bitcoin-from-the-command-line).**

3,415 stars · 816 forks · Jupyter Notebook

## Links

- GitHub: https://github.com/BlockchainCommons/Learning-Bitcoin-from-the-Command-Line
- awesome-repositories: https://awesome-repositories.com/repository/blockchaincommons-learning-bitcoin-from-the-command-line.md

## Topics

`bitcoin` `bitcoin-scripts` `bitcoin-setup` `blockchain` `cli` `controlling-bitcoin-transactions` `multisig` `p2sh` `raw-transactions` `sending-bitcoin-transactions` `sending-coins` `transaction`

## Description

Learning Bitcoin from the Command Line is an interactive tutorial that teaches Bitcoin Core node operation, JSON-RPC programming, and Lightning Network payments entirely from the terminal. The guide covers running a full Bitcoin Core node on a remote server with automated setup scripts, controlling the node through shell commands and JSON-RPC calls, and communicating with Bitcoin Core by sending JSON-formatted requests over HTTP.

The tutorial provides hands-on instruction for writing and executing custom Bitcoin locking and unlocking scripts using Bitcoin's stack-based scripting language, building and spending multisignature transactions through automated command-line workflows, and constructing, signing, and exchanging Partially Signed Bitcoin Transactions for collaborative offline signing with hardware wallets. It also covers routing Bitcoin Core and SSH traffic through Tor or I2P anonymity networks to hide node identity and transaction origins, and subscribing to real-time blockchain events using ZeroMQ sockets.

Additional capability areas include opening, using, and closing Lightning Network payment channels with Core Lightning, monitoring stuck transactions and re-broadcasting them using Replace-by-Fee and Child-Pays-for-Parent techniques, and sending Bitcoin transactions in raw, SegWit, and automated formats. The guide also demonstrates how to call a running Bitcoin Core node programmatically from languages including C, Go, Java, Node.js, Python, Rust, and Swift.

## Tags

### Education & Learning Resources

- [Bitcoin Core Tutorials](https://awesome-repositories.com/f/education-learning-resources/command-line-tutorials/bitcoin-core-tutorials.md) — An interactive tutorial that teaches Bitcoin Core node operation, JSON-RPC programming, and Lightning Network payments.
- [Bitcoin Multisignature Tutorials](https://awesome-repositories.com/f/education-learning-resources/command-line-tutorials/bitcoin-multisignature-tutorials.md) — A command-line guide for building and spending from multisignature addresses with automated workflows.

### Data & Databases

- [Scripting Language Tutorials](https://awesome-repositories.com/f/data-databases/consensus-engines/bitcoin/scripting-language-tutorials.md) — Provides hands-on instruction for writing custom Bitcoin locking and unlocking scripts.
- [Scripting Languages](https://awesome-repositories.com/f/data-databases/consensus-engines/bitcoin/scripting-languages.md) — Writes custom locking and unlocking scripts using Bitcoin's scripting language for advanced transaction conditions. ([source](https://cdn.jsdelivr.net/gh/blockchaincommons/learning-bitcoin-from-the-command-line@master/README.md))
- [Transaction Broadcasting Tools](https://awesome-repositories.com/f/data-databases/consensus-engines/bitcoin/transaction-broadcasting-tools.md) — Provides command-line tools for creating and broadcasting Bitcoin transactions in multiple formats. ([source](https://cdn.jsdelivr.net/gh/blockchaincommons/learning-bitcoin-from-the-command-line@master/README.md))

### Development Tools & Productivity

- [Bitcoin Core Node Deployments](https://awesome-repositories.com/f/development-tools-productivity/shell-scripting-libraries/setup-automation-scripts/bitcoin-core-node-deployments.md) — Provides automated shell scripts to deploy and configure a full Bitcoin Core node on remote servers.

### DevOps & Infrastructure

- [Bitcoin Node Setup Scripts](https://awesome-repositories.com/f/devops-infrastructure/blockchain-node-operation/bitcoin-node-setup-scripts.md) — Provides automated setup scripts for running a full Bitcoin Core node on a remote server.
- [Multisignature Transaction Workflows](https://awesome-repositories.com/f/devops-infrastructure/transaction-management/multisignature-transaction-workflows.md) — Provides automated workflows for building and spending multisignature Bitcoin transactions.
- [Transaction Management](https://awesome-repositories.com/f/devops-infrastructure/transaction-management.md) — Monitors stuck transactions, resends with Replace-by-Fee, and funds with Child-Pays-for-Parent to speed up confirmations. ([source](https://cdn.jsdelivr.net/gh/blockchaincommons/learning-bitcoin-from-the-command-line@master/README.md))
- [Stuck Transaction Recovery](https://awesome-repositories.com/f/devops-infrastructure/transaction-managers/stuck-transaction-recovery.md) — Monitors stuck transactions and re-broadcasts or funds them using Replace-by-Fee and Child-Pays-for-Parent techniques. ([source](https://github.com/BlockchainCommons/Learning-Bitcoin-from-the-Command-Line/tree/master/es/))

### Networking & Communication

- [Bitcoin Core RPC APIs](https://awesome-repositories.com/f/networking-communication/distributed-systems-p2p/decentralized-blockchain-technologies/blockchain-node-apis/bitcoin-core-rpc-apis.md) — Teaches sending JSON-RPC commands to a Bitcoin Core node for remote control and automation.
- [Bitcoin Core Node Deployments](https://awesome-repositories.com/f/networking-communication/distributed-systems-p2p/decentralized-blockchain-technologies/blockchain-node-apis/bitcoin-core-rpc-apis/bitcoin-core-node-deployments.md) — Runs a full Bitcoin Core node on a remote server using automated setup tools for secure cryptocurrency operations. ([source](https://github.com/BlockchainCommons/Learning-Bitcoin-from-the-Command-Line/tree/master/es/))
- [JSON-RPC Interfaces](https://awesome-repositories.com/f/networking-communication/distributed-systems-p2p/distributed-computing/remote-procedure-call-frameworks/json-rpc-interfaces.md) — Communicates with Bitcoin Core by sending JSON-formatted requests over HTTP to execute node operations remotely.
- [Lightning Network Servers](https://awesome-repositories.com/f/networking-communication/payment-channel-networks/lightning-network-servers.md) — Opens, uses, and closes Lightning Network payment channels with Core Lightning to send and receive payments. ([source](https://cdn.jsdelivr.net/gh/blockchaincommons/learning-bitcoin-from-the-command-line@master/README.md))
- [Channel Management Tutorials](https://awesome-repositories.com/f/networking-communication/payment-channel-networks/lightning-network-servers/channel-management-tutorials.md) — Teaches opening, using, and closing Lightning Network payment channels from the command line.
- [Anonymity Network Routing](https://awesome-repositories.com/f/networking-communication/traffic-routing/anonymity-network-routing.md) — Teaches routing Bitcoin Core traffic through Tor or I2P to hide node identity and transaction origins.
- [Lightning Network Channel Tutorials](https://awesome-repositories.com/f/networking-communication/payment-channel-networks/lightning-network-servers/lightning-network-channel-tutorials.md) — A command-line tutorial for opening, using, and closing Lightning Network payment channels with Core Lightning.

### Programming Languages & Runtimes

- [Bitcoin](https://awesome-repositories.com/f/programming-languages-runtimes/programming-language-varieties/scripting-languages/bitcoin.md) — Teaches writing and executing custom Bitcoin locking and unlocking scripts using the stack-based scripting language.

### Security & Cryptography

- [Multisignature Transaction Workflows](https://awesome-repositories.com/f/security-cryptography/native-multisignature-implementations/multisignature-transaction-workflows.md) — Builds and spends transactions requiring multiple signatures using automated command-line workflows for shared fund control.
- [Multisignature Transaction Workflows](https://awesome-repositories.com/f/security-cryptography/transaction-authorization/multisignature-transaction-workflows.md) — Builds and spends transactions that require multiple signatures for authorization using automated workflows. ([source](https://cdn.jsdelivr.net/gh/blockchaincommons/learning-bitcoin-from-the-command-line@master/README.md))
- [Partially Signed Bitcoin Transaction Workflows](https://awesome-repositories.com/f/security-cryptography/transaction-signing/offline-signing/partially-signed-bitcoin-transaction-workflows.md) — Teaches construction, signing, and exchange of Partially Signed Bitcoin Transactions for offline signing. ([source](https://github.com/BlockchainCommons/Learning-Bitcoin-from-the-Command-Line/tree/master/es/))
- [Partially Signed Bitcoin Transactions](https://awesome-repositories.com/f/security-cryptography/transaction-signing/offline-signing/partially-signed-bitcoin-transactions.md) — Constructs, signs, and exchanges Partially Signed Bitcoin Transactions for collaborative offline signing with hardware wallets.
- [Partially Signed Bitcoin Transactions](https://awesome-repositories.com/f/security-cryptography/transaction-signing/partially-signed-bitcoin-transactions.md) — Generates and processes Partially Signed Bitcoin Transactions for collaborative signing with hardware wallets. ([source](https://cdn.jsdelivr.net/gh/blockchaincommons/learning-bitcoin-from-the-command-line@master/README.md))
- [Partially Signed Bitcoin Transaction Tutorials](https://awesome-repositories.com/f/security-cryptography/transaction-signing/offline-signing/partially-signed-bitcoin-transaction-tutorials.md) — A tutorial for constructing, signing, and exchanging Partially Signed Bitcoin Transactions for offline signing.

### Part of an Awesome List

- [Bitcoin Scripting Tutorials](https://awesome-repositories.com/f/awesome-lists/learning/tutorials-and-workshops/bitcoin-scripting-tutorials.md) — A hands-on tutorial for writing custom Bitcoin locking and unlocking scripts with advanced conditions.
- [Bitcoin Privacy Tutorials](https://awesome-repositories.com/f/awesome-lists/security/privacy-tools/bitcoin-privacy-tutorials.md) — A tutorial for routing Bitcoin Core traffic through Tor or I2P to hide node identity.
