Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gridcoin-rpc

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gridcoin-rpc

TS library for the interactions with gridcoin RPC api

  • 4.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
128
increased by12.28%
Maintainers
1
Weekly downloads
 
Created
Source

gridcoin-rpc – Promise based Gridcoin RPC client

TS library for the interactions with gridcoin RPC api

NPM Version CI build SNYK report semantic-release Commitzen Friendly

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

API documentation

Donate

GRC: SJVaQcJriv7N8Py8eWjNUtWPTPBtDZashD

Follow me

keybase

steemit

Keywords

FAQs

Package last updated on 28 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc