simplejsonrpc

Simple JSON RPC client in JavaScript/NodeJS

Usage no npm install needed!

<script type="module">
  import simplejsonrpc from 'https://cdn.skypack.dev/simplejsonrpc';
</script>

README

SimpleJsonRpc

Simple JSON RPC client in JavaScript/NodeJS

Installation

Via npm on Node:

npm install simplejsonrpc

Usage

TBD

References

TBD

Samples

TBD

Versions

  • 0.0.1: Initial version
  • 0.0.2: Using string address to create http provider
  • 0.0.3: Sending application/json as content type
  • 0.0.4: Support https as transport protocol
  • 0.0.5: Send raw transaction
  • 0.0.6: Support await/async
  • 0.0.7: Log outgoing and incoming message

References

About test using https

The files test/private.key and test/private.crt were generated with

openssl req -newkey rsa:2048 -nodes -keyout private.key -x509 -days 3650 -out private.crt

Contribution

Feel free to file issues and submit pull requests � contributions are welcome.

If you submit a pull request, please be sure to add or update corresponding test cases, and ensure that npm test continues to pass.