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 environment and XDR information to the getNetwork endpoint #4

Open
wildework opened this issue Jan 18, 2024 · 0 comments
Open

Add environment and XDR information to the getNetwork endpoint #4

wildework opened this issue Jan 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@wildework
Copy link

Right now getNetwork returns the following for testnet

{
    "jsonrpc": "2.0",
    "id": 8675309,
    "result": {
        "friendbotUrl": "https://friendbot.stellar.org/",
        "passphrase": "Test SDF Network ; September 2015",
        "protocolVersion": 20
    }
}

It would be helpful to supplement this response with the interfaceVersion with a range of supported SDK versions (these are embedded in a WASM custom section). Also, the version/commit for the Soroban environment and XDR that the RPC/network supports.

What problem does your feature solve?

This would allow tool developers to gracefully fail when versions become out of sync between the tool and futurenet or testnet.

What alternatives are there?

I guess you can use the protocolVersion to track down these values by going through the related repositories, but I wouldn't know how to do it.

@johncanneto johncanneto added the enhancement New feature or request label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants