# Peer-to-Peer Network

> We propose a solution to the double-spending problem using a peer-to-peer network.
>
> \- Satoshi Nakamoto, Bitcoin Whitepaper

![](/files/ZkKHtovK1yaqJ8UU5fjE)

Double spending refers to the act of signing a coin to create a transaction and submitting that transaction to the network before using the same coin to create a different transaction which pays to a different recipient, effectively spending the same coin twice.

This problem is solved in Bitcoin through the creation of a peer-to-peer network of nodes whose role it is to gather, validate and timestamp all of the transactions that take place. It is through this network that the double spending problem is addressed by accepting only the first-seen of such a pair of transactions.

The Bitcoin network is a global piece of infrastructure that is built by enterprises who compete for the right to extend the ledger by adding new transactions. Each transaction can only be processed once and inputs used in a transaction are consumed. Once a transaction has been submitted to the network, it is broadcast to all nodes within a few seconds making it almost 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/bsv-theory/abstract/peer-to-peer-network.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.
