simple-blockchain-rpc
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

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.

Package Sidebar

Install

npm i simple-blockchain-rpc

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

10.3 kB

Total Files

21

Last publish

Collaborators

  • darkfly