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

getblocktemplate {"mode":"str","capabilities":["str",...],"rules":["segwit","str",...],"longpollid":"str","data":"hex"}

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