<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Bitcoin",
  "identifier" : "/documentation/Bitcoin/BlockTemplate",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Bitcoin"
    ],
    "preciseIdentifier" : "s:7Bitcoin13BlockTemplateV"
  },
  "title" : "BlockTemplate"
}
-->

# BlockTemplate

Block template data from `getblocktemplate` (BIP 22/23/9/145).

```
struct BlockTemplate
```

## Overview

Contains everything needed to construct a candidate block for mining.
Fee and coinbase value fields are in **satoshis** (not `BTCAmount`).

> Note: Targets Bitcoin Core v31.x.