HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Moduleweb3-ethereum-1.1.0.1Haskell2010

Network.Ethereum.Api.Eth

Ethereum node JSON-RPC API methods with eth_ prefix.

  • 44 values
valuemining :: JsonRpc m => m Bool
#

Returns true if client is actively mining new blocks.

valuesign :: JsonRpc m => Address -> HexString -> m HexString
#

Returns an Ethereum specific signature with: sign(keccak256("x19Ethereum Signed Message:n" + len(message) + message))).

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.

Creates a filter in the node, to notify when new pending transactions arrive. To check if the state has changed, call getFilterChanges. Returns a FilterId.

valuegetWork :: JsonRpc m => m [HexString]
#

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

valuesubmitWork :: JsonRpc m => HexString -> HexString -> HexString -> m Bool
#

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)

valuesubmitHashrate :: JsonRpc m => HexString -> HexString -> m Bool
#

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