Is it possible to update the storage of pallets through runtime api? Is yes. Do we have any resources for this same?

1 Answer 1


No it is not possible. Conceptually a Runtime API runs outside of consensus. They can be called by anyone on a RPC node and are permissionless.
It would therefore not make any sense to change the on-chain state since that is guarded by the consensus. If someone still wants to do that, then the node would just not be able to import blocks anymore since the state root hash differs.

Imagine I just change the balance of an account through a Runtime API on my node, why would anyone trust that change?

  • Yeah got it!.Thank you so much. I'm working on substrate pow chain and if i want to change some logic of miners selection, what all files I need to look into(any rough idea)? Jan 29 at 17:04

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.