gridcoin-rpc – Promise based Gridcoin RPC client
TS library for the interactions with gridcoin RPC api
This library is intended to be the simple proxy for those who want to use JS/TS to tinker with Gridcoin RPC library.
Library won't do validation by itself, it relies on the RPC validation. It will just help you with a typings.
Installation
npm install gridcoin-rpc
Usage
const { GridcoinRPC } = require('gridcoin-rpc');
const rpc = new GridcoinRPC({
port: 6553,
host: '127.0.0.1',
username: 'username',
password: 'very-strong-password',
});
async main = () => {
try {
const walletInfo = await rpc.getWalletInfo();
console.log(JSON.stringify(res, null, 2))
} catch (e) {
console.log(err.message)
}
}
main();
Documentation
API documentation
Donate
GRC: SJVaQcJriv7N8Py8eWjNUtWPTPBtDZashD
Follow me
keybase
steemit