Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jimstir opened this issue Jun 13, 2024 · 0 comments
Open

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

jimstir opened this issue Jun 13, 2024 · 0 comments

Comments

@jimstir
Copy link
Collaborator

jimstir commented Jun 13, 2024

Reference Issue: vacp2p/rfc#299
Author: D4nte

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant