> 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-theory/incentive/the-coinbase-transaction.md).

# The Coinbase Transaction

> By convention, the first transaction in a block is a special transaction that starts a new coin owned by the creator of the block.
>
> \- Satoshi Nakamoto, Bitcoin Whitepaper

![](/files/8pozUQYVpmgCUE3m03Gq)

The first transaction in any block is called a ‘Coinbase transaction’. This transaction has by definition a single input which contains an arbitrary string of text up to 100 bytes long which nodes use to mark the number of the block in the chain and in some cases to identify themselves.

The transaction can have multiple outputs, the value of which when combined must be equal to or less than the block reward, which includes a distribution of coins and the fees collected from all of the transactions that have been added to that block.

If the node fails to include coins that are part of the new coin distribution or were given as transaction fees to the value of the coinbase transaction’s outputs, those coins are lost and cannot be recovered.

Learn more about the Coinbase here: <https://wiki.bitcoinsv.io/index.php/Coinbase>


---

# 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 dynamically by asking a question.

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

```
GET https://hub.bsvblockchain.org/higher-learning/bsv-academy/bsv-theory/incentive/the-coinbase-transaction.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
