Login
Learn Bitcoin is live in Beta - spot an issue or have a suggestion? We'd love to hear it!
Home Glossary B BIP 22 (getblocktemplate)

BIP 22 (getblocktemplate)

A proposal for an RPC method giving miners raw block data to assemble their own candidate blocks instead of relying on getwork.
Share

BIP 22, found in BIP-22, introduced the getblocktemplate (GBT) call. Rather than receiving just a partially assembled block header (as in the older getwork protocol), miners get the entire block template, including transactions they can freely reorder or select.

This advancement gave miners more autonomy and transparency in choosing which transactions to include, aligning with the decentralized ethos of Bitcoin. It also improved efficiency by reducing back-and-forth communication. While GBT is more complex than getwork, it became the foundation for modern mining software and is often paired with BIP 23, which refined JSON-based block template submission.

Key takeaways
Offers full control over block construction
Supersedes the simpler but less flexible getwork
Enhances decentralization in transaction selection
Learn Bitcoin visual
Learn how to

Be Your Own Bank

Be Your Own Bank teaches you how to securely store and manage your Bitcoin, giving you full control over your finances. Unlock the power of self-custody and financial sovereignty, so you can confidently operate without intermediaries.

Take the Survey
30 sec
Free
Suggest a Term

Have a term to suggest? Enter it below and help us expand our vocabulary!