-
Notifications
You must be signed in to change notification settings - Fork 83
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
RPCs not compliant with the JSON-RPC spec #1246
Comments
Thanks for opening the issue! I don't see upgrading these nodes in the foreseeable future. If anyone wants to pick up this issue, though, it'd be highly appreciated! I'll give a bit of background on why we won't focus on this right now:
I'm not really sure why the middleware created for PAPI does not support the Interlay RPC nodes. Maybe that is a change that can be done on the PAPI side? New js libraries should support the bigger parachains rather than the parachains adapting their code to meet the needs of a js library. In the end, if PAPI support for Interlay breaks, it's not a major issue. It is a major issue if Interlay breaks due to a Polkadot SDK upgrade. |
You're completely missing the point. The modern JSON-RPC APIs aren’t just some "PAPI thing"—they’re the only properly spec'd JSON-RPC APIs we have, designed to replace the outdated legacy ones. PolkadotJS is on its way out, in maintenance mode, and soon enough, it’ll either migrate entirely to the new JSON-RPC API or be sunsetted. If you care to understand more, you can read up on it here:
That’s flat-out wrong. You’re clearly confusing PAPI with something else.
I know exactly why—because you haven’t bothered upgrading the PolkadotSDK node in over a year.
Actually, there would be a benefit for modern DApps that want to interact with your chain. But if keeping your chain up to date isn’t important enough for you, then frankly, there’s no reason to waste time supporting it with the modern dev tools we’re building. |
Dear Interlay Team,
I hope this message finds you well. My name is Josep, and I'm the technical lead of the Polkadot-API (PAPI) team.
In case you're not familiar with Polkadot-API, it's a modern library designed to replace PolkadotJS, built on top of a properly specified and standardized JSON-RPC API for Polkadot-based networks. The modern JSON-RPC APIs offer many advantages over the legacy ones; you can read more about it here and here.
We've noticed that there are no available public Interlay RPCs that expose the modern JSON-RPC API. Thankfully, it's still possible to use PAPI with Interlay thanks to the light-client provider, using the following chainspec with smoldot:
However, not all consumers can utilize the light-client.
Our team has developed a middleware solution to ensure that Polkadot-API can function seamlessly with chains running older versions of the Polkadot-SDK node. Unfortunately, it appears that the RPC providers for Interlay are using an even older version, which the middleware does not support.
We kindly request that you consider working with your RPC providers to upgrade the PolkadotSDK node to a more modern version that supports the new JSON-RPC API. This upgrade would enable DApp developers to easily interact with your chain using PAPI, unlocking benefits such as improved performance, reduced resource usage, out-of-the-box strong type generation for your chain, and the ability for developers to handle runtime upgrades on the fly.
Thank you for your time and consideration.
Best regards,
Josep
The text was updated successfully, but these errors were encountered: