Skip to content
Alchemy Logo

getblocktemplate

POST
/{apiKey}

Returns data needed to construct a block to mine. This method is used by miners to request a block template for mining new blocks. It can be customized with various parameters to specify the desired mining capabilities and rules.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

objectoptional

A JSON object containing the template request parameters.

Responses

200

A block template object containing all necessary data for mining.

Was this page helpful?