---
name: getblocktemplate
btcversion: 0.16.0
btcgroup: mining
permalink: en/doc/0.16.0/rpc/mining/getblocktemplate/
---

getblocktemplate ( TemplateRequest )

If the request parameters include a 'mode' key, that is used to explicitly select between the default 'template' request or a 'proposal'.
It returns data needed to construct a block to work on.
For full specification, see BIPs 22, 23, 9, and 145:
    https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki
    https://github.com/bitcoin/bips/bl