BSV blockchainBSV blockchain

getHeaderForHeight

POST/getHeaderForHeight

Retrieves the block header for a specific height

Body application/json

heightinteger

Response

The block header

headerstring

Invalid input

Internal server error

Request
curl -X POST "http://localhost:3321/getHeaderForHeight" \
  -H "Content-Type: application/json" \
  -d '{
  "height": 0
}'
Response
{
  "header": "string"
}