2.1.0 • Published 1 year ago

@ravenite/ravencoin-rpc v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Ravencoin RPC Banner

Ravenite - Ravencoin RPC

Documentation Website

A client library to connect to Ravencoin Core RPC in JavaScript.

NPM Package

A Ravenite module for ravencoin.

Getting Started

# Using npm
npm install @ravenite/ravencoin-rpc

# Using yarn
yarn add @ravenite/ravencoin-rpc

Usage

You can either write manually requests to your RPC connection via the request method, or you can use the built-in methods provided by the client class.

Manually

import { Client } from '@ravenite/ravencoin-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);
});

Built-in Methods

import { Client } from '@ravenite/ravencoin-rpc';

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

client.methods.listAssets().then(assets => {
  console.log('assets', assets);
});

Examples and Documentation

See documentation for developer guides.

License

Code released under the MIT license.

Development

Some RPC commands within Ravencore have known bugs. You may experience them as a result. If you find that the issue comes from this library, please create an Issue so that it can be resolved quickly.

2.1.0

1 year ago

2.0.1

1 year ago

1.8.2

1 year ago

1.5.5

1 year ago

1.9.0

1 year ago

1.8.1

1 year ago

1.5.4

1 year ago

1.4.5

1 year ago

1.8.0

1 year ago

1.5.3

1 year ago

1.4.4

2 years ago

1.7.0

1 year ago

1.5.2

1 year ago

1.4.3

2 years ago

1.6.0

1 year ago

1.5.1

1 year ago

2.0.0

1 year ago

1.8.3

1 year ago

1.10.0

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.3.2

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.2.1

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago