Files
api/packages/type-jsonrpc
Stefanie Doll e0994f3c5a Fix for RPC bugs caused by uk spelling (#904)
* Replaced UK with US spelling

* -ised to -ized

* UK -> US spelling in chain rpc methods

* Tests for RPC chain methods on Alex
2019-06-12 16:45:45 +12:00
..
2019-04-11 13:42:06 +12:00
2019-06-06 14:02:54 +12:00
2019-04-26 16:43:32 +12:00

@plugnet/jsonrpc

A definition of all the methods exposed in a general Plugnet 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 @plugnet/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)

Classes

Classes