cmditch/elm-ethereum/4.0.1

NOTE: the latest version is 5.0.0

Eth.Net

NetworkId and RPC Methods

= Mainnet
| Expanse
| Ropsten
| Rinkeby
| RskMain
| RskTest
| Kovan
| ETCMain
| ETCTest
| Private Int
version : HttpProvider -> Task Error NetworkId

Get the current network id.

Ok Mainnet
clientVersion : HttpProvider -> Task Error String

Get the current client version.

Ok "Mist/v0.9.3/darwin/go1.4.1"
listening : HttpProvider -> Task Error Bool

Returns true if the node is actively listening for network connections.

peerCount : HttpProvider -> Task Error Int

Get the number of peers currently connected to the client.

Convert an int into it's NetworkId

Convert an int into it's NetworkId

Get a NetworkId's name

Decode a JSON stringy int or JSON int to a NetworkId

decodeString networkIdDecoder "1"          == Ok Mainnet
decodeString networkIdDecoder 3            == Ok Ropsten
decodeString networkIdDecoder "five"       == Err ...