Copyright | Alexander Krupenkin 2016 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Polkadot RPC methods with system
prefix.
Synopsis
- addReservedPeer :: JsonRpc m => Text -> m Text
- chain :: JsonRpc m => m Text
- chainType :: JsonRpc m => m ChainType
- health :: JsonRpc m => m Health
- localListenAddresses :: JsonRpc m => m [Text]
- localPeerId :: JsonRpc m => m Text
- name :: JsonRpc m => m Text
- networkState :: JsonRpc m => m Object
- nodeRoles :: JsonRpc m => m [NodeRole]
- peers :: JsonRpc m => m [PeerInfo]
- properties :: JsonRpc m => m Object
- removeReservedPeer :: JsonRpc m => Text -> m Text
- version :: JsonRpc m => m Text
Documentation
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.
networkState :: JsonRpc m => m Object Source #
Returns current state of the network.
Warning: This API isn't stable.
properties :: JsonRpc m => m Object Source #
Get a custom set of properties as a JSON object, defined in the chain spec.