You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Work Bytes - 322 bytes
ChainBytes(4) + TargetBytes(32) + HeaderBytes(286)
The minimum information required to perform Proof-of-Work. No knowledge of
Chainweb internals is necessary.
Piece
Description
ChainBytes
The chain selection made by the Node.
TargetBytes
Encoded form of the current Hash Target.
HeaderBytes
Encoded form of the Block Header.
This wiki page
provides further details about the encoding of work bytes.
Solution Submission
Intent: I solved a block - here it is.
POST /chainweb/0.0/mainnet01/mining/solved
Request Body (Octet Stream):
Header Bytes - 286 bytes
The original work received, updated internally with the Nonce that satisfies the
Proof-of-Work.
Update Subscription
Intent: I am currently mining. Is the work I’m doing still worth it?
GET /chainweb/0.0/mainnet01/mining/updates
Request Body (Octet Stream):
Chain Bytes - 4 bytes
The first 4 bytes received from a call to /mining/work. This tells the Node to
only inform the Miner of a new Cut when the specific chain in question has
updated.
Response (Server-Sent Event):
A stream of Server-Sent Events with a single line:
event:New Cut