web3-0.9.0.0: Web3 API for Haskell.

CopyrightAlexander Krupenkin 2016
LicenseBSD3
Maintainermail@akru.me
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Network.Polkadot.Api.System

Description

Polkadot RPC methods with system prefix.

Synopsis

Documentation

addReservedPeer Source #

Arguments

:: JsonRpc m 
=> Text

Peer URI

-> m Text 

Adds a reserved peer.

chain :: JsonRpc m => m Text Source #

Retrieves the chain.

chainType :: JsonRpc m => m ChainType Source #

Retrieves the chain type.

health :: JsonRpc m => m Health Source #

Return health status of the node.

localListenAddresses :: JsonRpc m => m [Text] Source #

The addresses include a trailing p2p with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address.

localPeerId :: JsonRpc m => m Text Source #

Returns the base58-encoded PeerId of the node.

name :: JsonRpc m => m Text Source #

Retrieves the node name.

networkState :: JsonRpc m => m Object Source #

Returns current state of the network.

Warning: This API isn't stable.

nodeRoles :: JsonRpc m => m [NodeRole] Source #

Returns the roles the node is running as.

peers :: JsonRpc m => m [PeerInfo] Source #

Returns the currently connected peers.

properties :: JsonRpc m => m Object Source #

Get a custom set of properties as a JSON object, defined in the chain spec.

removeReservedPeer Source #

Arguments

:: JsonRpc m 
=> Text

Peer URI

-> m Text 

Remove a reserved peer.

version :: JsonRpc m => m Text Source #

Retrieves the version of the node.