Mining

Upload a Stacks block

Changed on

Upload a Stacks block to the node for processing. The block must be in binary format and associated with the given consensus hash.

post/v2/blocks/upload/{consensus_hash}

Request

  • Base URL
    http://localhost:20443
  • URL
    http://localhost:20443/v2/blocks/upload/{consensus_hash}
  • Auth
    none required

Path parameters

consensus_hashstring required

Consensus hash (40 hex characters)

Request body application/octet-stream

string binary required

Binary-encoded Stacks block

Response

Block upload result

BlockUploadResponse required(unresolved $ref)

Changes