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 chain type parameter into get_status rpc #3777

Open
aglkm opened this issue Jan 6, 2024 · 0 comments
Open

Add chain type parameter into get_status rpc #3777

aglkm opened this issue Jan 6, 2024 · 0 comments

Comments

@aglkm
Copy link

aglkm commented Jan 6, 2024

I didn't find a way to get the information from the RPC what is the chain type the node currently running: mainnet or testnent.
It would be good to have this information in get_status RPC request.

E.g.:

{
"jsonrpc": "2.0",
"method": "get_status",
"params": [],
"id": 1
}
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"Ok": {
"chain": "main"
"protocol_version": "2",
"user_agent": "MW/Grin 2.x.x",
"connections": "8",
...

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