Skip to content

Network Class v1.0 Spec

Gabriel Cardona edited this page Jun 18, 2018 · 1 revision

Network

addNode

Arguments

  1. node: String
  2. command: String

Return Value

  • None

clearBanned() {

Arguments

  • None

Return Value

  1. null on success

disconnectNode(configuration) {

Arguments

  1. configuration: Object

Return Value

  1. address: String optional
  2. nodeid: Number optional

getAddedNodeInfo

Arguments

  1. address: String

Return Value

  1. nodeInfo: Object

getConnectionCount

Arguments

  • None

Return Value

  1. connectionCount: Number

getNetTotals

Arguments

  • None

Return Value

  • netTotals: Object

getNetworkInfo

Arguments

  • None

Return Value

  • networkInfo: Object

getPeerInfo

Arguments

  • None

Return Value

  • peerInfo: Object

listBanned

Arguments

  • None

Return Value

  1. banned: Array

ping

Arguments

  • None

Return Value

  1. null on success