3

In the Custom RPC types docs it explains how to create the types within the API promise, but it doesn't explain where to add it within the polkadot-js/apps repo, which is understandable because the docs are not specifically for adding to the apps repo. However, it would be useful and helpful to get guidance on it, because the repo is spectacular but also occasionally overwhelming.

Up to this point, I have decorated rpc methods and added it to typeBundle.ts, but it still not available as an api.rpc.<firstModule>.<secondModule> call, like the screenshot below.

Apart from typesBundle.ts, where do I also need to add it as a property so that it satisfies the DecoratedRpc...?

enter image description here

1

0

Your Answer

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

Browse other questions tagged or ask your own question.