HORIZON HASKELLDocslts/ghc-9.14.x99ffbb82026-10-19Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 99ffbb8 · 2026-10-19

valueestimateGas :: JsonRpc m => Call -> m Quantity

Makes a call or transaction, which won't be added to the blockchain and returns the used gas, which can be used for estimating the used gas.

valuegetWork :: JsonRpc m => m [HexString]

Returns the hash of the current block, the seedHash, and the boundary condition to be met ("target").

Used for submitting a proof-of-work solution. Parameters: 1. DATA, 8 Bytes - The nonce found (64 bits) 2. DATA, 32 Bytes - The header's pow-hash (256 bits) 3. DATA, 32 Bytes - The mix digest (256 bits)

Used for submitting mining hashrate. Parameters: 1. Hashrate, a hexadecimal string representation (32 bytes) of the hash rate 2. ID, String - A random hexadecimal(32 bytes) ID identifying the client