Skip to content

Non uniform json-rpc request for admin_peers #8936

@barnabasbusa

Description

@barnabasbusa

The current implementation of admin_peers json-rpc method returns a very different format than every other EL node.

Somewhat formalized standard return format:

{
      "enr": "enr:-Ke4QBGzMXZeGTe9XW_9PhE5z3oRzB83mow2nu9WCoYLvU_TSnfPiXYVVE_HHkXxckhvfycPDRbV9-OMvpmTrEtL26qGAZerqnftg2V0aMvKhIe8XVCEaGMaIIJpZIJ2NIJpcIRAF5cbiXNlY3AyNTZrMaEDHFFJqZEE-iOQPEh-lOoaHKq3Ww88C9vGLQdUUdfjSzSEc25hcMCDdGNwgnxJg3VkcIJ8SQ",
      "enode": "enode://1c5149a99104fa23903c487e94ea1a1caab75b0f3c0bdbc62d075451d7e34b3405672ef5dc1234a906386cc07b9da1d904ac962cedbb088fc27f4cda2c0fc777@64.23.151.27:31817",
      "id": "ee691f32878517b2aa27b594a5c9508f8ba6124daf562c095847eac21253f3f6",
      "name": "Geth/v1.15.12-unstable-df12e79e-20250623/linux-amd64/go1.24.4",
      "caps": [
        "eth/68",
        "eth/69",
        "snap/1"
      ],
      "network": {
        "localAddress": "172.18.0.7:57830",
        "remoteAddress": "64.23.151.27:31817",
        "inbound": false,
        "trusted": false,
        "static": false
      },
      "protocols": {
        "eth": {
          "version": 69,
          "earliestBlock": 0,
          "latestBlock": 30449,
          "latestBlockHash": "0xfa1bb18f424d950c16f0a5d241c6759ab3f19a921ff1063a256ea97f1158dd61"
        },
        "snap": {
          "version": 1
        }
      }
    },

Nethermind response:

{
      "id": "a6be3b7ad539e4968ee0588b1d2cb534565e0c912e0ec9133f14ff8808019f9e",
      "host": "172.16.0.11",
      "port": 30303,
      "address": "[::ffff:172.16.0.11]:30303",
      "isBootnode": false,
      "isTrusted": false,
      "isStatic": false,
      "enode": "enode://8e29fa5cc9351c5d6fe939f5a559ddd380e6fbe6c32d5987dd8f4dfb9c8ca1edff0555a74c927fc117d22000d7eab44237880eae0ad3476ce084ff491709d922@172.16.0.11:30303",
      "inbound": true
    },

Would be good to have a similar json rpc return.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions