ethash
The ethash namespace provides endpoints for accessing and interacting with the Ethash PoW process. It includes methods to retrieve the current mining work package, check the current hashrate, and submit computed proofs-of-work. These endpoints are essential for miners and for monitoring mining performance.
ethash_getHashrate
Description: Returns the current mining hashrate as computed by the node, typically represented as a hexadecimal value (in hashes per second).
Sample Request:
Expected Response:
Parameters: None.
ethash_getWork
Description: Provides the current work package for miners. The returned array includes:
The block header hash (used in the PoW computation)
The seed hash for the current epoch (used for dataset generation)
The target difficulty (the value that the computed hash must be below)
Sample Request:
Expected Response:
Parameters: None.
ethash_submitHashrate
Description: Submits the miner’s computed hashrate to the node. This endpoint is used to report the miner's performance and may be used for monitoring or reward distribution purposes.
Sample Request:
Expected Response:
Parameters:
hashrate (string): The miner’s computed hashrate as a hexadecimal string. &#xNAN;Example:
"0x1a"
(which is 26 in decimal).id (string): The worker identifier (typically a hexadecimal string). &#xNAN;Example:
"0xworkerID"
.
Last updated