# Solving the Double-Spending Problem

<figure><img src="/files/BkoMpeH6hk7cGZXiuoJi" alt=""><figcaption></figcaption></figure>

*We propose a solution to the double-spending problem using a peer-to-peer network.*

\- Satoshi Nakamoto, Bitcoin Whitepaper

The **double-spending problem** refers to the risk that a digital coin can be spent more than once. This issue arises when a coin is signed to create a transaction and submitted to the network before being used again to create a different transaction that pays a different recipient. Bitcoin addresses this problem through the establishment of a **peer-to-peer network** of nodes responsible for gathering, validating, and timestamping all transactions.

In this network, **only the first-seen version of a transaction is accepted**, effectively preventing double spending. The Bitcoin network operates as a global infrastructure built by enterprises competing for the right to extend the ledger by adding new transactions. Each transaction can only be processed once, and the inputs used in a transaction are consumed, ensuring that **once a transaction is submitted to the network, it is broadcast to all nodes within seconds**, making it nearly impossible to perform double spends without the assistance of a fraudulent node.


---

# 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-whitepaper-series/bitcoin-whitepaper-abstract/solving-the-double-spending-problem.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.
