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

Add ability to query seed node for information without the UI #91

Open
decanus opened this issue Apr 20, 2021 · 2 comments
Open

Add ability to query seed node for information without the UI #91

decanus opened this issue Apr 20, 2021 · 2 comments

Comments

@decanus
Copy link

decanus commented Apr 20, 2021

Right now to get my seed address I need to start the UI, I personally do not want to start any UIs so it would be nice to have a CLI tool for this.

@xla
Copy link
Contributor

xla commented Apr 29, 2021

Hej @decanus, thanks for bringing this up. If you want to achieve this without a CLI or similar utility to land you can call the /info endpoint on your seed http API, which will return you a JSON blob similar to this:

{
  "name": "Sprout 🌱",
  "peerId": "hynkyndc6w3p8urucakobzna7sxwgcqny7xxtw88dtx3pkf7m3nrzc",
  "publicAddr": "sprout.radicle.xyz:12345",
  "description": "<p class='typo-text-small' style='margin-bottom: 1rem;'>This is the dashboard for Radicle's seed node. It maintains a real-time view of activity on the Radicle network. You can use it to discover new projects a\n\tnd people to add to your social graph. To find a project or peer, copy it's Radicle ID, and paste it into the search bar of your Upstream app.</p>\n\t<p class='typo-text-small' style='margin-bottom: 1rem'>To add this seed node to your Upstream app, follow the steps in the <a class=typo-link href=https://docs.radicle.xyz/docs/getting-started>Getting Started</a> guide. To start your own seed node, follow the instructions <a class=typo-link href=https://docs.radicle.xyz/docs/using-radicle/running-a-seed-node>here</a>.</p>",
  "peers": 0,
  "projects": 12
}

@decanus
Copy link
Author

decanus commented Apr 29, 2021

could be nice to have it wrapped and maybe mean that the frontend server never needs be started.

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

2 participants