* Use a generic abstract OnCall * Add OnCall for Promise * First run at fixing extrinsics * Fix types * Make submittable extrinsic work * Move file * Make derive work * Fix types * Only call metadata once * Make tests pass * Put event emitter in apirx * Fix small bugs * Fix tests * Fix bug decorateStorage * Make tests pass for tx * Move rpc base to apirx * Fix lint * Fix small bugs * Fix bug with isSubscription * Fix codeclimate * Revert * Add tslint disable line * Fix lint * Skip e2e * Typo * Lint * Re-add combinator back * Add ._rx in Base * Make extrinsics work * Update derivex * Fix bug lint * Fix circular dep * Fix bug e2e * Remove useless check * Add description comment * Clean stuff * Move assert to Base * Bump version, update CHANGELOG * Make _rx private * Private emit
@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)