curriculum-content/6-how-to-use-bitcoin/4-receiving-and-sending-transactions.md
6.4 Receiving and Sending Transactions
A Bitcoin transaction is a transfer of ownership of bitcoin to a new owner. Note that it is not the actual coins that are transferred, but ownership of them: in other words, the right to spend them. Every time a transaction is accepted into a block, all the nodes in the network update their local copy of the public ledger to reflect the change ownership. In this respect, a Bitcoin transaction is more akin to a real estate (or other property) transaction than to a cash transaction.
To "send" bitcoin, the sender signs a message with their private key, signaling to the network that the rightful owner of the bitcoin has transferred its ownership to the recipient.
The bitcoin will now be tied to the recipient's address, giving them ownership of the bitcoin, so that only the new owner can spend them by using their private key.
New Bitcoin transactions are initiated from wallets around the world, but there is no central payment processor. Instead, miners compete to record transactions in the ledger.
Let’s say Jim owes Eliana 0.5 BTC and is ready to pay her back. Both have digital wallets.
- Eliana shares her address with Jim.
- Jim uses his wallet software to create the transaction, which includes Eliana’s address, the amount to be transferred (0.5 BTC), and a fee for the miner. Higher fees make it more likely that a miner will include the transaction in the next block.
- After signing the transaction, it is broadcast to the network, where it is verified by nodes. They check whether Jim has enough funds and is the rightful owner of the coins he means to spend. If he does not, they reject the transaction immediately.
- Once the transaction is verified, miners choose whether to add the transaction to the next block, usually based on the selected fee. Once the transaction makes it into a block, it is added to the blockchain and the funds are transferred to Eliana's address.
- Ownership has been transferred to Eliana. She can now use her private key to spend the received funds.
_It’s important to note that once the transaction is complete, it cannot be reversed._
Note – How a Bitcoin Transaction Works
1. Someone requests a transaction
1. Transaction broadcast to P2P computers (nodes)
1. Miners verify the transaction
1. Transactions combined to form a data block
1. New block added to the existing blockchain
1. The transaction is complete
Note – Receiving Bitcoin Transactions
To receive bitcoin, you will need to provide the sender with a Bitcoin public address. This is a unique string of letters and numbers that represent your wallet and is used to identify it on the Bitcoin network.
You can find your public address by opening your Bitcoin wallet and looking for an option to “Receive” or “Deposit” bitcoin.
You can then share your Bitcoin address in one of several ways:
1. Copy and paste the address: You can copy the address by highlighting it and pressing "Copy", then paste it into an email or message.
1. Share a link to your Bitcoin wallet: Some Bitcoin wallets allow you to create a link to your wallet that you can share with the sender. They can then click on the link to access your wallet and send bitcoin.
1. Share a QR code: If the sender has a smartphone with a Bitcoin wallet app installed, they can scan the QR code to get your Bitcoin address.
Once the sender has your address, they can send you bitcoin by entering your address and the amount they want to send. The bitcoin is then sent from their wallet to your wallet.
The transaction is confirmed by the Bitcoin Network and usually takes about 10 minutes. For greater security, it is recommended to wait for two confirmations, which takes about 20 minutes.
Note – Sending Bitcoin Transactions
To send bitcoin, you will need a few things: a Bitcoin wallet, the recipient’s public address, and the amount of bitcoin you want to send.
1. Open your Bitcoin wallet.
1. Navigate to the “Send” button and paste the recipient's address in the "To" field. Alternatively, you can also scan the QR code if the recipient provides one.
1. Enter the amount of bitcoin you want to send in the “Amount” field.
1. Double-check the recipient’s address and the amount to be sent. Remember transactions are irreversible!
1. Before clicking “Confirm and Send”, we recommend you double-check the transaction details one more time to ensure that you are sending the correct amount of bitcoin to the correct address.
1. Broadcast the transaction and wait for the network to confirm the transaction.
Now you know how to evaluate, select, and set up a self-custodial Bitcoin wallet. Sending and receiving bitcoin on the Bitcoin network are referred to as “on-chain” transactions. This is because the transactions occur on the main Bitcoin network and are recorder in the blockchain.
On-chain transactions are the safest way to transact with bitcoin because of the decentralized verification provided by the network.
However, on-chain transactions are slower and can be significantly more expensive than other options (which we will discuss in Module 7) due to the miner fee.
Activity: Transactions In Action
https://qr.myfirstbitcoin.org/transactions.pdf
This is a cooperative exercise simplifying the basic roles of people involved in a Bitcoin transaction.
Key Points
- There are four types of participants in every bitcoin transaction: the sender, the recipient, miners, and node operators.
- The sender must approve (cryptographically sign) the amount of bitcoin to send AND the specific address to send to.
- The recipient must provide a valid address to the sender AND verify the transaction was successfully confirmed on the blockchain.
- Miners ensure all criteria are valid before adding transactions to future blocks.
- Node operators verify mined blocks are valid before updating their version of the blockchain (the ledger).
Student Tip
Rotate through all four roles to experience what each participant does.
curriculum-content/7-using-bitcoin-in-daily-life/4-sending-and-receiving-lightning-transactions.md
7.4 Sending and Receiving Lightning Transactions
With a Lightning wallet, using Bitcoin is fast, cheap, and private, making transactions between two people easy. You can quickly send and receive bitcoin for everyday things like buying coffee or shopping.
Let’s look at a few examples of the Lightning Network in action.
Example 1
Both Marcia and Eve have 5 units of currency. Marcia wants to send 2 units to Eve. The payment travels through Jeff, who helps pass the payment along the Lightning Network. After the payment is completed, Eve has 7 units and Marcia has 3.
Jeff helps route the payment, but he cannot steal the funds. The Lightning Network uses cryptography to ensure that only the intended recipient can receive the payment. Jeff simply helps the payment move through the network.
This shows a key advantage of the Lightning Network: people can send payments quickly without trusting intermediaries like banks.
Node operators like Jeff can also earn small fees for helping route payments. By doing this, they help the network remain decentralized and efficient.
Compared to regular Bitcoin transactions:
- On-chain transactions happen directly on the Bitcoin blockchain. They are very secure but can be slower and more expensive.
- Lightning transactions happen off-chain and allow payments to move much faster and at a much lower cost.
Because of this, Lightning is useful for small, everyday payments, while on-chain transactions are often used for larger transfers or long-term storage.
Example 2
Mina loves eating out and often stops by her favorite local café. With so many different payment options available, she isn’t sure which one is the best choice. Luckily, she has learned a little about Bitcoin and the Lightning Network. After reviewing her options, Mina realizes that using a Lightning payment method is the best option.
Mina wants to buy a coffee, but paying with a regular Bitcoin transaction can sometimes take time and require higher fees. Instead, she decides to use the Lightning Network.
The Lightning Network allows people to send bitcoin instantly and with very low fees. This makes it ideal for small, everyday purchases like coffee.
To start using Lightning, Mina downloads a Lightning wallet on her phone. She then sends some bitcoin from her regular Bitcoin wallet to her Lightning wallet. This step uses a normal Bitcoin transaction on the blockchain. Once the funds are in her Lightning wallet, they can be used on the Lightning Network.
Now Mina can pay the café instantly using Lightning. The payment happens off the main Bitcoin blockchain, which is why it is much faster and cheaper than a regular on-chain transaction.
| Benefits | Lightning Network | Traditional Banking System |
|---|
| Speed | Fast | Slow |
| Transparency | Transparent | Opaque |
| Security | Secure | Vulnerable |
| Transaction fees | Low | High |
| Financial inclusion | High | Limited |
| Scability | High | Low |
| Privacy | High | Moderate |
| Interoperability | High | Low |
| Legal compliance | Moderate | High |
| Cost-effectiveness | High | Moderate |
In simple terms, on-chain transactions happen directly on the Bitcoin blockchain and can take more time and fees. Lightning transactions happen off-chain, allowing fast and low-cost payments while still using bitcoin.
| Visa, Inc. | Bitcoin On-chain | Lightning Network |
|---|
| Capacity of 65000 transactions per second. | Capacity of 7 transaction per second. | Capacity of millions transactions per second. |

https://mempool.space/graphs/lightning/nodes-channels-map
This is a map of the entire Lightning Network. Thanks to thousands of Lightning node runners, you can send sats to any user with a Bitcoin Lightning wallet, wherever they are in the world. The payment will arrive in a few seconds and will only cost a few cents.
Check it out for yourself!
Activity: Lightning Relay Race
https://qr.myfirstbitcoin.org/lightning.pdf
This is a hands-on exercise where students send and receive real sats using the Lightning Network.
Key Points
- Using a Lightning wallet will build your confidence to receive and send real sats.
- Pay attention to units. Some wallets allow users to send bitcoin OR sats (1/100,000,000 of a bitcoin).
- Lightning payments can sometimes get hung up in routing, especially for larger payments. Although possible, this kind of user experience is becoming less common as the network matures.
Student Tip
Verify with your instructor if/how current on-chain Bitcoin transaction fees will impact the specific Lightning wallet you use.
curriculum-content/9-how-does-bitcoin-mining-work/3-how-transactions-work.md
9.3 How Transactions Work
Now that you understand public and private keys, as well as the roles of nodes and miners, here’s how a Bitcoin transaction works from start to finish.
- Adam wants to send bitcoin to Gerardo. He creates a transaction with Gerardo’s address, the amount to send, and a fee.
- Adam signs the transaction with his private key to prove ownership.
- He broadcasts the transaction to the Bitcoin network.
- Nodes receive it and check that it follows the rules, including verifying the signature and that Adam has enough bitcoin.
- If valid, the transaction is shared across the network and added to the mempool, where pending transactions wait.
- Miners pick transactions from the mempool and include them in a block they try to mine.
- When a miner successfully mines a block, it is shared with the network and checked by other nodes.
- If valid, the block is added to the blockchain. Gerardo receives the bitcoin.
- As more blocks are added, the transaction gains confirmations, making it more secure.
Once included in a block, the transaction is confirmed. Adam cannot spend that bitcoin again, and Gerardo can spend what he received in a new transaction.
Note
Transaction & fee selected → Signed by wallet and sent → Distributed by nodes → Miner adds transaction to block template → Miner wins Proof-of-Work contest → New block is validated → New block is distributed by nodes
Resources
▶ YouTube