* Upgrade guide (to current) * ClassOf * JSON example * s/srml/interfaces/ * Typos * Update UPGRADING.md Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com> * Add copy-to-apps script * Properly extend exstended derive types * Round out UPGRADING * Version in CHANGELOG * Typos * Update UPGRADING.md * Update CHANGELOG * Bump common * 0.90.0-beta.0 * Cleanups * Split 0.82 & 0.90 * Update UPGRADING.md Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Update UPGRADING.md Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Update UPGRADING.md Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Update UPGRADING.md Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Update UPGRADING.md Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Update UPGRADING.md Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Update UPGRADING.md Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Update UPGRADING.md Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Update UPGRADING.md Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Update CHANGELOG.md Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Update CHANGELOG.md Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Typo * findFunction -> api.findCall
@polkadot/jsonrpc
A definition of all the methods exposed in a general Polkadot client application. These are used not only to provide a comprehensive code-generated document of the available methods, but are also used in the API to auto-generate endpoints with the required type-checking.
For a list of currently exposed methods, see the method documentation.
Usage
Installation -
yarn add @polkadot/jsonrpc
Adding methods
As methods are added, simply adding the name, inputs & output will prepare it for use.
- Add the method to the correct file in src/rpc/ (Input/Output types as cross-referenced from the canonical implementation and match one-to-one)
- Should a new type be required, add it to the type list, src/types.js (Required for TSLint type checking)