Skip to content
A browser-compatible JSON-RPC client with multiple transports.
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
.github/ISSUE_TEMPLATE
src
.editorconfig
.gitignore
.releaserc
BUILDING.md
CHANGELOG.md
CONTRIBUTING.md
CONVENTIONAL_COMMITS.md
LICENSE.md
README.md
RELEASING.md
VERSIONING.md
jest.config.js
package-lock.json
package.json
tsconfig.json
tsfmt.json
tslint.json

README.md

OpenRPC Client JS

CircleCI branch Dependabot status Chat on Discord npm GitHub release GitHub commits since latest release

A browser-compatible JSON-RPC client with multiple transports:

  • HTTP/HTTPS
  • WebSocket
  • Event Emitter
import { RequestManager, HTTPTransport, Client } from '@open-rpc/client-js';
const transport = new HTTPTransport('http://localhost:8545');
const client = new Client(new RequestManager([transport]));
const result = await client.request(‘addition’, [2, 2]);
// => { jsonrpc: '2.0', id: 1, result: 4 }

Contributing

How to contribute, build and release are outlined in CONTRIBUTING.md, BUILDING.md and RELEASING.md respectively. Commits in this repository follow the CONVENTIONAL_COMMITS.md specification.

You can’t perform that action at this time.