> 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/bitcoin-protocol-documentation/peer-to-peer-networking/p2p.md).

# Overview

How BSV nodes exchange data over the network (non-consensus)

{% hint style="warning" %}
This section is **not** part of the protocol. Everything here describes how nodes **transport** transactions, blocks, and control data between each other — it does not affect whether a transaction or block is *valid*. Two nodes that speak completely different network protocols can still agree perfectly on the contents of the blockchain, because validity is defined by the [Specification](/bitcoin-protocol-documentation/specification/transactions.md), not by how bytes reach a peer.

This material is included here only to keep the networking documentation in one place alongside the rest of the reference. An independent implementation may use any transport it likes and remain fully interoperable, provided it enforces the same consensus rules.
{% endhint %}

Nodes discover each other and exchange transactions, blocks, and headers over a peer-to-peer network. There is no single mandated transport: different node implementations use different networking stacks, and none of them changes the validity of the data being carried.

The reference node software [`bitcoin-sv/bitcoin-sv`](https://github.com/bitcoin-sv/bitcoin-sv) speaks a message-based **wire protocol** derived from the original Bitcoin protocol, extended by the BSV Association to support unbounded block sizes and higher throughput. That protocol is documented here.

## Pages

* [**SV Node Wire Protocol**](/bitcoin-protocol-documentation/peer-to-peer-networking/sv-node-wire-protocol.md) — the message framing, connection handshake, message-type catalogue, and the BSV-specific extensions (extended/large messages, multi-streams, `protoconf`, and the extended `mempool` message) as implemented by the reference node.

Documentation for the Teranode `libp2p`-based networking layer will be added to this section.

## Relationship to the specification

Nothing in this section feeds into consensus. In particular:

* The **serialization** of a transaction or block on the wire is the same consensus serialization specified in [Transactions](/bitcoin-protocol-documentation/specification/transactions.md) and [Blocks](/bitcoin-protocol-documentation/specification/blocks.md); the wire protocol only wraps that serialization in a network envelope for transport.
* Message-size limits, stream policies, and protocol-version negotiation are **transport concerns**. A node may reject, ban, or disconnect a peer for violating them without that having any bearing on whether the underlying transactions or blocks are valid.


---

# 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/bitcoin-protocol-documentation/peer-to-peer-networking/p2p.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.
