Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hyperbit-dev/rpc

Rpc Client for making requests to blockchain nodes
https://github.com/hyperbit-dev/rpc

remote-procedure-call rpc

Last synced: about 1 month ago
JSON representation

Rpc Client for making requests to blockchain nodes

Awesome Lists containing this project

README

        

![Hyperbit Chains Banner](https://github.com/hyperbit-dev/rpc/raw/master/media/repo-banner.png)

# Hyperbit - RPC

Simple Rpc Client for making requests to blockchain nodes.

## Getting Started

```sh
# Using npm
npm install @hyperbitjs/rpc

# Using yarn
yarn add @hyperbitjs/rpc
```

### Usage

```javascript
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);
});
```