4.0.2 • Published 1 year ago
gridcoin-rpc v4.0.2
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 = () => {
// Get wallet info
try {
const walletInfo = await rpc.getWalletInfo();
console.log(JSON.stringify(res, null, 2))
} catch (e) {
console.log(err.message)
}
}
main();
// {
// "walletversion": 60000,
// "balance": 121.12304127,
// "newmint": 0,
// "stake": 0,
// "keypoololdest": 1508531912,
// "keypoolsize": 101,
// "unlocked_until": 0
// }
Documentation
Donate
GRC: SJVaQcJriv7N8Py8eWjNUtWPTPBtDZashD
Follow me
4.0.2
1 year ago
4.0.1
2 years ago
4.0.0
3 years ago
3.0.2
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
3.0.0-beta.9
4 years ago
3.0.0-beta.10
4 years ago
3.0.0-beta.7
4 years ago
3.0.0-beta.8
4 years ago
3.0.0-beta.5
4 years ago
3.0.0-beta.6
4 years ago
3.0.0-beta.3
4 years ago
3.0.0-beta.2
4 years ago
3.0.0-beta.4
4 years ago
3.0.0-beta.1
4 years ago
2.1.0-beta.1
4 years ago
2.0.0
6 years ago
1.0.0
7 years ago