Skip to content
Alchemy Logo

submitheader

POST
/{apiKey}

Decodes the given hex-encoded block header and submits it as a candidate chain tip if valid. Throws an error if the header is invalid. This can be used to mine on top of a particular block without having the full block data.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

stringformat: "^[a-fA-F0-9]{160}$"required

The hex-encoded block header to submit.

Responses

200

Returns null if the header was accepted, or a string describing the rejection reason.

Was this page helpful?