Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

rpc_methods did not include rpc_methods #11728

Open
xlc opened this issue Jun 22, 2022 · 2 comments
Open

rpc_methods did not include rpc_methods #11728

xlc opened this issue Jun 22, 2022 · 2 comments

Comments

@xlc
Copy link
Contributor

xlc commented Jun 22, 2022

rpc_methods should include itself in the response

@niklasad1
Copy link
Member

Hey, it's been like that for a very long time IIRC.

The format is:
{"jsonrpc":"2.0","result":{"methods":[<methods here>]}

Are you saying that you want it in the list methods such as [<methods>, "rpc_methods"]?

@xlc
Copy link
Contributor Author

xlc commented Jun 22, 2022

Yes.

We implemented a nodejs server that can forwards RPC calls to Substrate RPC node. It uses rpc_methods to determine the available rpc methods. And it failed to forward rpc_methods because that's not included from the response from rpc_methods.

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

No branches or pull requests

2 participants