Topic outline
-
In this unit, we'll have a close look at the structure of transactions, unspent transaction outputs or UTXOs, the transaction timeline, and more. Then we'll really dig into the process of locking, and unlocking (or validating) transactions via Bitcoin scripting. Finally, we'll test our knowledge out with a scripting exercise!
Completing this unit should take you approximately 3 hours.
-
-
One topic we have yet to cover in detail is transaction fees. They are an important part of any transaction as without them a transaction may get stuck in limbo, known as the mempool, for a long time. Read this section to get familiar with how fees are added to a transaction.
-
-
-
We know a good bit about what data goes into a transaction, so let's be sure that we also understand the transaction process. This video walks through the transaction timeline from signature to inclusion in a block.
-
-
-
Now we begin our deep dive into Bitcoin scripting! Let's start by reading these sections on scripting.
-
This chapter covers advanced transactions and scripting. Here, we will learn about different transaction types and the scripts that create them. You'll use concepts like pay-to-script-hash and multi-sig in almost any Bitcoin development project.
-
Let's finish by learning about conditional clauses and flow control, and taking a look at some examples of complex scripts.
-
Bitcoin scripting can be hard to read and visualize, and it's very different from what most programmers are used to. This video walks through scripting examples step by step. Watch from the start to 17:50 to get a bit more comfortable with scripting before we try it out in the next exercise.
-
-
-
Now that we're more familiar with scripting, let's try this exercise to simulate writing real scripts.
-
-
-
Take this assessment to see how well you understood this unit.
- This assessment does not count towards your grade. It is just for practice!
- You will see the correct answers when you submit your answers. Use this to help you study for the final exam!
- You can take this assessment as many times as you want, whenever you want.
-