npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

npm-komodorpc-library

v1.0.7

Published

An API for KOMODO RPC

Readme

Komodo_Logo

Node JS Library

RPC API-Library for Komodo-based asset chains, for Node JS Developers

Description:

  • Komodo RPC library helps you integrate your Node JS Apps with Komodo asset-chains without having to setup/implement required RPC functions. Install this NPM Module and call Komodo API RPCs as easily as calling a local function. Komodo RPC library acts as a wrapper between your Node JS app and the Komodo-daemon running on a server.

Installation:

Install 'npm-komodorpc-library' npm Module:

  • npm install npm-komodorpc-library

Usage:

  • Create object for Connect class using rpc_user, rpc_password, rpc_ipaddress, rpc_port parameters from YOUR_SMARTCHAIN_name.conf file
  • Use the above object to call any method
  • Response is a pending Promise return
  • Use Async/Await or Promise to capture the response
Example
  • Using Async function and await keyword :
const komodo = require('npm-komodorpc-library');

const conn = new komodo.Connect(rpc_user='user568251219',
rpc_password='pass766db41922bac0bbe3c1909a41e3dfe0291e2c1b6c76f7172c3e9bdf46f64d16f9',
rpc_ipaddress='http://127.0.0.1',
rpc_port='12450');

async function mainfunc(){
    let walletinfo = await conn.getwalletinfo() // await works in a async function
    console.log(walletinfo)
}

mainfunc()
  • Using promise :
const komodo = require('npm-komodorpc-library');

const conn = new komodo.Connect(rpc_user='user568251219',
rpc_password='pass766db41922bac0bbe3c1909a41e3dfe0291e2c1b6c76f7172c3e9bdf46f64d16f9',
rpc_ipaddress='http://127.0.0.1',
rpc_port='12450');

let walletinfo = conn.getwalletinfo()
walletinfo.then((res)=>console.log(res)) //Promise.prototype.then
  • Create an object of Komodo Connect class with following parameters to populate RPC options and authentication parameters.

| Argument | Description | |:--------------:|:------------------------------------------------------------------------------------:| | rpc_username | Username for RPC authentication | | rpc_password | Password for RPC authentication | | node_ipaddress | IP address of the node where the Komodo-daemon is running; Default: '127.0.0.1' | | rpc_port | Port number where the Komodo-daemon is listening for RPCs |

Documentation:

NPM package listing: