5

According to substrate rpc docs we shouldn't be exposing some RPCs as they are deemed dangerous. How does one go about turning them off?

Currently if I query my node, I have all those RPCs running which substrate warns against. dangerous rpcs

1 Answer 1

7

While these RPCs are available, they are not callable if you "disable" them. If you run with --rpc-methods Safe all the rpc methods that are seen as "unsafe" will return an error when being called. For validators it is advised to disable external RPCs anyway, which is the default if you are not running with --rpc-external.

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.