Skip to main content

RPC

The following sections contain known RPC methods that may be available on Darwinia nodes and allow you to interact with the Darwinia node, query, and submit.


net
listening():bool
  • interface: api.rpc.net.listening
  • summary:Returns true if client is actively listening for network connections. Otherwise false.
peerCount():Text
  • interface: api.rpc.net.peerCount
  • summary:Returns number of peers connected to node.
version():Text
  • interface: api.rpc.net.version
  • summary:Returns protocol version.
web3
clientVersion():Text
  • interface: api.rpc.web3.clientVersion
  • summary:Returns current client version.
sha3(data:Bytes):H256
  • interface: api.rpc.web3.sha3
  • summary:Returns sha3 of the given data.