Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/archergu/simple-blockchain-rpc

A simple blockchain wallet rpc package
https://github.com/archergu/simple-blockchain-rpc

blockchain rpc wallet

Last synced: 21 days ago
JSON representation

A simple blockchain wallet rpc package

Awesome Lists containing this project

README

        

# Simple Blockchain RPC

There are actually a lot of similar packages, but I always think they are too complicated. Maybe a small and simple core package will be more suitable for those original projects.

## Install
```
npm i simple-blockchain-rpc
```

## Quick Start

```js
const { Client } = require("simple-blockchain-rpc");

const rpcClient = new Client({
rpchost: 'Your rpc host',
rpcport: Your rpc port,
rpcuser: 'Your rpc username',
rpcpassword: 'Your rpc password',
})

rpcClient.call('getblockhash', [100]).then(result => {
console.log(result)
})
```

## License

The code in this project is licensed under MIT license.