1

I can't find the net::* RPC APIs under https://github.com/paritytech/substrate/tree/be259234bfee056bef970ac372e04a74411c5224/client/rpc-api.

There are three net APIs, netListening, netPeerCount and netVersion.

I'm curious about where they were defined.

I can find all the other RPC APIs under that folder.

2
  • I'm confused, why do you think that these apis exist?
    – bkchr
    Nov 9, 2022 at 12:58
  • I could curl this. Also, I could use polkadotapps - rpc calls - net send this. polkadot.js.org/apps/… Maybe my chain's Substrate is too old? it's at polkadot-v0.9.16.
    – AurevoirXavier
    Nov 9, 2022 at 13:23

1 Answer 1

1

Thanks, @bkchr. His comment inspires me.

I found this is a frontier RPC component.

https://github.com/paritytech/frontier/blob/eef5723675850166da904b295b7dfa90894b1270/client/rpc-core/src/net.rs#L25-L40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.