Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

16/WAKU2-RPC: JSON RPC Debug API - Return PeerId #299

Closed
D4nte opened this issue Mar 11, 2021 · 1 comment
Closed

16/WAKU2-RPC: JSON RPC Debug API - Return PeerId #299

D4nte opened this issue Mar 11, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@D4nte
Copy link
Contributor

D4nte commented Mar 11, 2021

The get_waku_v2_debug_v1_info json RPC method returns an object with a unique field:

  • listenStr: Address that the node is listening for (e.g. /ip4/127.0.0.1/tcp/60000/p2p/16Uiu2HAkyzsXzENw5XBDYEQQAeQTCYjBJpMLgBmEXuwbtcrgxBJ4)

It would be great if it could also return the peerId in a standalone field.
While the information is already present, one has to do string manipulation to extract it.

My current use case is for test purposes, where I want to ensure that nim-waku and js-waku nodes are connected: https://github.com/D4nte/waku-js-chat/blob/f0c9c3ef50f7dd9ee6ddab146f0252aa4b86e7c9/src/lib/node.spec.ts#L79

@D4nte D4nte added enhancement New feature or request waku-v2 labels Mar 16, 2021
@oskarth oskarth changed the title JSON RPC Debug API: Return PeerId 16/WAKU2-RPC: JSON RPC Debug API - Return PeerId Mar 31, 2021
@github-actions github-actions bot removed the waku-v2 label Jul 27, 2022
@jimstir
Copy link
Contributor

jimstir commented Jun 13, 2024

Issue moved here

@jimstir jimstir closed this as completed Jun 13, 2024
@jimstir jimstir closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

3 participants