node

Returns the list of known nodes that are compatible with the current catapult version.

get/nodes

Query parameters

filter'suggested' | 'preferred'

suggested: all available api nodes that have a rest endpoint and are online. preferred: all preferred api nodes that have a rest endpoint and are online. Prefered are nodes that match some specific domains.

Example:preferred

Filter the nodes by the optional filter.

limitinteger
Example:30

The maximum number of nodes to be returned.

sslboolean
Example:true

Filter the nodes by the HTTPS ready.

Response

The list of known nodes

publicKeystring required
rolesinteger required

A number that defines the different roles the node provides. Possible roles are:

  • 1 - Peer node.
  • 2 - Api node.
  • 4 - Voting node.
  • 64 - IPv4 compatible node
  • 128 - IPv6 compatible node.

The values are bitwise added together, Examples: 1 = Just Peer. 2 = Just Api. 3 = Peer and Api node. 7 = Peer, Api and Voting node. 65 = IPv4 and Peer node.

versioninteger required

The client version. Each pair of digits represent a digit number. E.g. 16777728 is 1.0.2.0

friendlyNamestring required

Node friendly name.

networkGenerationHashSeedstring required
portinteger required

Port used for the communication.

networkIdentifier104 | 152

Network type:

  • 0x68 (104 decimal) - Public main network.
  • 0x98 (152 decimal) - Public test network.
hoststring required

Server IP or Hostname

Example response

[
  {
    "publicKey": "E3FC28889BDE31406465167F1D9D6A16DCA1FF67A3BABFA5E5A8596478848FCC",
    "roles": 3,
    "version": 16777728,
    "friendlyName": "My Node",
    "networkGenerationHashSeed": "3B5E1FA6445653C971A50687E75E6D09FB30481055E3990C84B25E9222DC1155",
    "port": 7900,
    "networkIdentifier": 144,
    "host": "somehost.symbol.io",
    "peerStatus": {
      "lastStatusCheck": 1635515531373,
      "isAvailable": true
    },
    "apiStatus": {
      "restGatewayUrl": "https://symbol.node.dev:3001",
      "isAvailable": true,
      "lastStatusCheck": 1635531195763,
      "nodeStatus": {
        "apiNode": "up",
        "db": "down"
      },
      "nodePublicKey": "A2160AB911943082C88109DD8B65A0082EF547CA7C28F001F857112F7ADD9B3D",
      "chainHeight": 512127,
      "finalization": {
        "height": 512112,
        "epoch": 713,
        "point": 13,
        "hash": "7C9BDF478CB18562A078F191867CB9B3FB12601AE0C69606A34C602A0F7D47EB"
      },
      "restVersion": "2.3.7"
    },
    "hostDetail": {
      "host": "somehost.symbol.io",
      "location": "Ashburn, VA, United States",
      "ip": "3.86.20.100",
      "organization": "My VPC provider",
      "as": "Some Company, Inc.",
      "continent": "North America",
      "country": "United States",
      "region": "VA",
      "city": "Ashburn",
      "district": "Springfield",
      "zip": "20149"
    }
  }
]

Changes