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

node-red-zetrix

v1.0.1

Published

A Node-RED node to execute transaction and query from Zetrix Blockchain

Readme

node-red-zetrix

platform NPM

A collection of Node-RED nodes for interacting with the Zetrix blockchain. This package enables you to perform transactions, query smart contracts, and invoke smart contract methods on the Zetrix network.

Features

  • Zetrix Client Configuration: Configure connection to Zetrix mainnet or testnet
  • Transaction Node: Send ZETRIX tokens between addresses
  • Contract Query Node: Query data from smart contracts
  • Contract Invoke Node: Execute smart contract methods with transactions

Installation

Run the following command in your Node-RED user directory (typically ~/.node-red):

npm install node-red-zetrix

Usage

Zetrix Client Configuration

Before using any of the nodes, you need to configure a Zetrix client:

  1. Add Zetrix node (Testnet or Mainnet) to your flow
  2. Double-click to configure
  3. Click the edit icon next to the "Zetrix Client" field
  4. Select network (Testnet or Mainnet)
  5. Give your configuration a name (optional)
  6. Click Add

Transaction Node

Send ZETRIX tokens between addresses:

  • Sender Address: The source address
  • Private Key: Private key of the sender
  • Recipient Address: The destination address
  • Amount: Amount of ZETRIX to send

Parameters can be set in the node configuration or injected via msg.payload:

msg.payload = { 
    senderAddress: "your-address", 
    privateKey: "your-private-key", 
    recipientAddress: "recipient-address", 
    amount: "10" // Without decimal 
}

Contract Query Node

Query data from smart contracts:

  • Contract Address: Address of the smart contract
  • Method: Name of the method to query
  • Input Params: JSON object of parameters

Example payload:

msg.payload = { 
    contractAddress: "contract-address", 
    method: "getBalance", 
    inputParams: {
        "address": "user-address"
    } 
}

Contract Invoke Node

Execute smart contract methods:

  • Contract Address: Address of the smart contract
  • Method: Name of the method to invoke
  • Input Params: JSON object of method parameters
  • Sender Address & Private Key: Required for transaction signing

Response Format

All nodes return responses in the following format:

msg.payload = { 
    success: true, 
    result: { 
        // Response data specific to the operation
    } 
}

Error Handling

Errors are emitted as Node-RED errors and will set the node status to red. The error message can be caught using Node-RED's catch node.

Dependencies

  • Node-RED >= 2.0.0
  • zetrix-sdk-nodejs: 1.0.2

License

This project is licensed under the Apache-2.0 License - see the LICENSE file for details.

Author

Ammar Abdullah ([email protected])

Links