# Quiz 22

#### What is the purpose of a locking script in a Bitcoin transaction?

* [x] To set conditions for spending funds
* [ ] To reference previous transactions
* [ ] To timestamp the transaction
* [ ] To generate a private key

**Note to Learners**

Transaction Outputs define the amount and a locking script that sets the conditions for spending.

&#x20;

To learn more about it, you can follow the course [BSV and Digital Signatures](https://bsvblockchain.360learning.com/course/play/68de2a96a0926cd44a3f378d)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hub.bsvblockchain.org/higher-learning/bsv-academy/bitcoin-primitives-digital-signatures/quiz/quiz-22.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
