Blocks
Upload a Nakamoto block
Changed onUpload 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 URLhttp://localhost:20443
- URLhttp://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.
Block Upload Response required(unresolved $ref)
Changes
- breaking
the request's body minLength was increased from
0to1
- breaking
- info
the request's body minLength was decreased from
1to0
- info