Blocks

Upload a Nakamoto block

Changed on

Upload a Nakamoto block to the node for processing.

  • Body - must be the binary (SIP-003) serialization of a NakamotoBlock.
  • Authentication - only required when the query parameter broadcast=1 is supplied. In that case the caller must include an Authorization header.
post/v3/blocks/upload

Request

  • Base URL
    http://localhost:20443
  • URL
    http://localhost:20443/v3/blocks/upload
  • Auth
    • API key in header authorization
    • or none

Query parameters

broadcast'1'

If set to "1" the node will broadcast the uploaded block to peers. When present the request must include a valid Authorization header.

Request body application/octet-stream

string binary required

Binary SIP-003 encoding of a NakamotoBlock

Response

Block upload result.

BlockUploadResponse required(unresolved $ref)

Changes