submitheader

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

apiKeystringRequiredDefaults to docs-demo

Request

This endpoint expects an object.
hexdatastringRequiredformat: "^[a-fA-F0-9]{160}$"

The hex-encoded block header to submit.

Response

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