module Elrond::Api::Node::Endpoints::Nodes

Public Instance Methods

address(options: {}) click to toggle source
# File lib/elrond/api/node/endpoints/nodes.rb, line 7
def address(options: {})
  response    =   get("/node/address", options: options)&.body
  response    =   response.fetch("address", nil) if response && response.is_a?(Hash)
end
heartbeat(options: {}) click to toggle source
# File lib/elrond/api/node/endpoints/nodes.rb, line 12
def heartbeat(options: {})
  response    =   get("/node/heartbeatstatus", options: options)&.body
  response    =   response.fetch("message", []) if response && response.is_a?(Hash)
end
start(options: {}) click to toggle source
# File lib/elrond/api/node/endpoints/nodes.rb, line 17
def start(options: {})
  response    =   get("/node/start", options: options)&.body
  response    =   response.fetch("message", nil) if response && response.is_a?(Hash)
end
statistics(options: {}) click to toggle source
# File lib/elrond/api/node/endpoints/nodes.rb, line 22
def statistics(options: {})
  response    =   get("/node/statistics", options: options)&.body
  response    =   response.fetch("statistics", {}) if response && response.is_a?(Hash)
end
status(options: {}) click to toggle source
# File lib/elrond/api/node/endpoints/nodes.rb, line 27
def status(options: {})
  response    =   get("/node/status", options: options)&.body
  response    =   response.fetch("details", {}) if response && response.is_a?(Hash)
end
stop(options: {}) click to toggle source
# File lib/elrond/api/node/endpoints/nodes.rb, line 32
def stop(options: {})
  response    =   get("/node/stop", options: options)&.body
  response    =   response.fetch("message", nil) if response && response.is_a?(Hash)
end