Skip to content

Instantly share code, notes, and snippets.

@bludnic
Created December 8, 2023 04:31
Show Gist options
  • Save bludnic/7814c46728dabd13342d28ea006851dc to your computer and use it in GitHub Desktop.
Save bludnic/7814c46728dabd13342d28ea006851dc to your computer and use it in GitHub Desktop.
Nodes version endpoints

Nodes versions

ADM

Docs: https://github.com/Adamant-im/adamant/wiki/API-Specification#get-node-version

Request

GET https://endless.adamant.im/api/node/status

Response

{
    "success": true,
    "nodeTimestamp": 197637976,
    "network": {
        "broadhash": "efd7add86d2e4a445f8b28ba889c5cbd4dcb378b553050fd231a1a19b6c91440",
        "epoch": "2017-09-02T17:00:00.000Z",
        "height": 37653115,
        "fee": 50000000,
        "milestone": 5,
        "nethash": "bd330166898377fb28743ceef5e43a5d9d0a3efd9b3451fb7bc53530bb0a6d64",
        "reward": 25000000,
        "supply": 11163827900000000
    },
    "version": {
        "build": "",
        "commit": "95df4fc5d50f6ef3b7eeee0993ac64405777d7b9",
        "version": "0.8.1"
    },
    "wsClient": {
        "enabled": true,
        "port": 36668
    }
}

Prop: version.version = 0.8.1

Lisk

Docs: https://lisk.com/documentation/beta/api/lisk-node-rpc.html#system_getnodeinfo

Request

POST http://38.242.243.29:44099/rpc

{
    "jsonrpc": "2.0",
    "id": "1",
    "method": "system_getNodeInfo",
    "params": {}
}

Response

{
    "id": "1",
    "jsonrpc": "2.0",
    "result": {
        "version": "4.0.1",
        "networkVersion": "5.0",
        "chainID": "00000000",
        "lastBlockID": "fe701c6be99da3dc9c7240a4ed91620d6df14e660c16bbe93ef1485825e648ed",
        "height": 23408941,
        "finalizedHeight": 23408806,
        "syncing": false,
        "unconfirmedTransactions": 0,
        "genesisHeight": 23390992,
        "genesis": {
          // ...
        },
        "network": {
            "version": "5.0",
            "port": 7667,
            "seedPeers": [
              // ...
            ]
        }
    }
}

Prop: result.version = 4.0.1

ETH

There is no specific property that contains the node version. The best we can do is to extract the version from result.name.

Docs: https://getblock.io/docs/eth/json-rpc/eth_admin_nodeinfo/

ethnode1

Request

POST https://ethnode1.adamant.im

{
    "jsonrpc": "2.0",
    "id": "a7ff32fd-3f02-48cc-850c-4dbc35e2d6ac",
    "method": "admin_nodeInfo",
    "params": []
}

Response

{
    "jsonrpc": "2.0",
    "id": "a7ff32fd-3f02-48cc-850c-4dbc35e2d6ac",
    "result": {
      "id": "f741dc0aeab8ba00958303d6191fba2419ea2b2ef77fbfd8164e4579ceee20eb",
      "name": "Geth/v1.13.5-stable-916d6a44/linux-amd64/go1.21.4",
      "enode": "enode://bbb41c0ab8f7a7cd61f2a98b06d4e6bb4ec5058253f92e906628263a521867bf9785746faf8866458c0aa023af52a9d22b77e527178c7eab47a30a7b3784db29@95.216.41.106:30303",
      "enr": "enr:-KO4QBwFST-AkNHx2okjQjz_YJAKzaru9R_bUe8jAoys9SFXXDbhnaq1H0k7o5iepDc6eF1ezWxiByUAOMil6oNnpTaGAYd20VI9g2V0aMfGhNzpbC2AgmlkgnY0gmlwhF_YKWqJc2VjcDI1NmsxoQO7tBwKuPenzWHyqYsG1Oa7TsUFglP5LpBmKCY6Uhhnv4RzbmFwwIN0Y3CCdl-DdWRwgnZf",
      "ip": "95.216.41.106",
      // ...
    }
}
  • Prop: result.name = Geth/v1.13.5-stable-916d6a44/linux-amd64/go1.21.4
  • Client: Geth
  • Version: v1.13.5

ethnode2

Request

POST https://ethnode2.adamant.im

{
    "jsonrpc": "2.0",
    "id": "a7ff32fd-3f02-48cc-850c-4dbc35e2d6ac",
    "method": "admin_nodeInfo",
    "params": []
}

Response

{
  "jsonrpc": "2.0",
  "result": {
    "enode": "enode://df6a61703cde40e21ec8f1b623c35e47546d0e7ecebe86a9450642c065173b911138ce61bf935f35cfc6508789c1c8c4db4993e5f20550cee00afa154c34e0c4@95.216.114.252:30303",
    "id": "2567d12e7c4e2327dbd6cd076cd8fa0a6c68f6f44a79eb0fa96f067ecb8cbe00",
    "ip": "95.216.114.252",
    "listenAddr": "95.216.114.252:30303",
    "name": "Nethermind/v1.22.0+ae444a4b/linux-x64/dotnet7.0.13",
    // ...
  },
  "id": "a7ff32fd-3f02-48cc-850c-4dbc35e2d6ac"
}
  • Prop: result.name = Nethermind/v1.22.0+ae444a4b/linux-x64/dotnet7.0.13
  • Client: Nethermind
  • Version: v1.22

DOGE

Docs: https://classic.yarnpkg.com/en/package/doge-insight-api

Request

GET https://dogenode1.adamant.im/api/status

Response

{
    "info": {
        "version": 1140200,
        "protocolversion": 70015,
        "blocks": 4997173,
        "timeoffset": -1,
        "connections": 10,
        "proxy": "",
        "difficulty": 10934915.8177605,
        "testnet": false,
        "paytxfee": 0,
        "relayfee": 1,
        "errors": ""
    }
}

Prop: info.version = 1140200

DASH

Docs: https://getblock.io/docs/dash/json-rpc/getblockchaininfo/

Request

POST https://dashnode1.adamant.im

{
    "method": "getblockchaininfo"
}

Response

{
    "result": {
        "chain": "main",
        "blocks": 1984160,
        "headers": 1984160,
        "bestblockhash": "000000000000003b247e7cd693f391ee6565bf9d1cf5a176a396c5f1e50be7c7",
        "difficulty": 57394328.22644472,
        "mediantime": 1702007403,
        "verificationprogress": 0.9999991553699898,
        "initialblockdownload": false,
        "chainwork": "000000000000000000000000000000000000000000008e882b2d0a00ab1275fd",
        "size_on_disk": 36294306556,
        "pruned": false,
        // ...
}

No version in the response

BTC

Docs: https://github.com/Blockstream/esplora/blob/master/API.md

No endpoint for retrieving the version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment