> For the complete documentation index, see [llms.txt](https://hub.bsvblockchain.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hub.bsvblockchain.org/higher-learning/bsv-academy/bsv-basics-protocol-and-design/introduction-to-bitcoin-protocol-and-design/the-bitcoin-ledger.md).

# The Bitcoin Ledger

<figure><img src="https://3421145409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRTEKu4E7Fvtss3GI9CYU%2Fuploads%2F5JcZu71EuMl5qI9cbxRW%2Fledger%201.png?alt=media&amp;token=aaaefe83-7eb5-43e7-8fbe-04f09ab6cc25" alt=""><figcaption></figcaption></figure>

In conventional accounting practices, **ledgers** are utilized to track the flow of money as it is spent and received. Bitcoin builds upon this foundational concept by employing a **global ledger** that records and maintains the state of all Bitcoin transactions. This ledger is continuously updated and shared among all participants in the network, **ensuring that every peer agrees on a single, unified state of transactions**.

<figure><img src="https://3421145409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRTEKu4E7Fvtss3GI9CYU%2Fuploads%2Fj0W7Vo0gVz7B7G5kYxBS%2FTrad.png?alt=media&amp;token=75c55935-e6e5-40a5-b80a-cfa7efcd2fab" alt=""><figcaption></figcaption></figure>

When we refer to the **Bitcoin ledger**, we are discussing this **global record** that encompasses all transactions ever made using Bitcoin. This distributed ledger is a critical component of the Bitcoin ecosystem, as it **enhances transparency and security**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hub.bsvblockchain.org/higher-learning/bsv-academy/bsv-basics-protocol-and-design/introduction-to-bitcoin-protocol-and-design/the-bitcoin-ledger.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
