0.3.0 • Published 2 years ago

@hyperbitjs/rpc v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Hyperbit Chains Banner

Hyperbit - RPC

Simple Rpc Client for making requests to blockchain nodes.

Getting Started

# Using npm
npm install @hyperbitjs/rpc

# Using yarn
yarn add @hyperbitjs/rpc

Usage

import { Client } from '@hyperbitjs/rpc';

const client = new Client({
  url: 'http://127.0.0.1:9050',
  username: 'username',
  password: 'password',
});

client.request('getchaintips').then(response => {
  console.log('response', response);
});