1

My chain currently has a couple of custom RPC interfaces that I'd like to interact with using substrates front-end-template. I'm aware that the src/config/common.json file requires modification, which currently looks like this:

{
  "APP_NAME": "substrate-front-end-template",
  "CUSTOM_RPC_METHODS": {}
}

What is the correct syntax for defining my custom RPC here?

1 Answer 1

5

I believe the template will use the same format as the polkadot-js API since it will pass those through to the API itself, you can find examples here

And indeed, if I look at the front-end-template itself, it uses that config to pass it through to the API on init.

Your Answer

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

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