# getblocktemplate

### Input

| Argument        | Mandatory | Description                                 | Format |
| --------------- | --------- | ------------------------------------------- | ------ |
| reserve\_size   | yes       | Maximum of 255 bytes reserved for user data | uint64 |
| wallet\_address | yes       | Wallet address for block reward             | string |

### Output

| Argument            | Description                                       | Format |
| ------------------- | ------------------------------------------------- | ------ |
| difficulty          | Target difficulty                                 | uint64 |
| height              | Current block height                              | uint32 |
| num\_transactions   | Number of transactions included in block template | uint32 |
| reserved\_offset    | Offset of reserved space for user data            | uint64 |
| blocktemplate\_blob | Binary large object containing block template     | string |
| status              | Status of the request, "OK" if successful         | string |

### Notes

* num\_transactions can be used to discard block template if minimum number of transactions is not satisfied


---

# 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://docs.bbscoin.org/development-integration/daemon-node-api/json-rpc-request/getblocktemplate.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.
