json-rpc-client-fetch-withcredentials
v1.0.0
Published
A simple fetch based JSON RPC client written in TypeScript.
Downloads
33
Readme
JSON-RPC-CLIENT-FETCH-WITHCREDENTIALS
INSTALL
$ yarn add json-rpc-client-fetch-withcredentials
Open you main.js
file and add the following:
import JsonRpcClient from 'json-rpc-client-fetch-withcredentials';
const client = new JsonRpcClient(<url>, <credencials>, newHeaders, debug)
client.request('method_name', {params})
.then((response) => {
console.log(response);
})