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

@selendrajs/cli

v1.0.1

Published

Command-line interface for Selendra blockchain development

Readme

Selendra CLI

Command-line interface for Selendra blockchain development.

Installation

From npm (Coming Soon)

npm install -g @selendrajs/cli

From Source

cd packages/cli
npm install
npm run build
npm link

As part of SDK workspace

# From selendra-sdk root
npm install
npm run build

Usage

Project Commands

Initialize Project

# Create new EVM project (Solidity + Hardhat)
selendra init my-dapp

# Create WASM project (ink! + cargo-contract)
selendra init my-contract --template wasm

Compile Contracts

# Auto-detect and compile
selendra compile

# Compile EVM contracts
selendra compile --target evm

# Compile WASM contracts
selendra compile --target wasm

Deploy Contracts

# Interactive deployment
selendra deploy MyToken

# Deploy to specific network
selendra deploy MyToken --network testnet

# Deploy with constructor args
selendra deploy MyToken --network testnet --args '["MyToken", "MTK"]'

Network Commands

Check Network Status

# Mainnet status
selendra status

# Testnet status
selendra status --network testnet

# JSON output
selendra status --json

Chain Information

# Get chain info
selendra chain

# Get specific block
selendra block 1000

# Latest block
selendra block

Account Commands

Create Account

# Create new EVM account
selendra account new

# Create Substrate account
selendra account new-substrate

# List accounts (coming soon)
selendra account list

Check Balance

# Check balance on mainnet
selendra balance 0x742d35Cc6634C0532925a3b844Bc9e7595f3f4A

# Check balance on testnet
selendra balance 0x742d35Cc6634C0532925a3b844Bc9e7595f3f4A --network testnet

# JSON output
selendra balance 0x742d35Cc6634C0532925a3b844Bc9e7595f3f4A --json

Transfer Tokens

# Interactive transfer
selendra transfer 0xRecipientAddress

# With amount specified
selendra transfer 0xRecipientAddress --amount 10 --network testnet

Request Testnet Tokens

selendra faucet 0x742d35Cc6634C0532925a3b844Bc9e7595f3f4A

Staking Commands

Staking Info

# View staking overview
selendra stake info

# List available pools
selendra stake pools

# Join a pool (coming soon)
selendra stake join --pool 1 --amount 100

# Claim rewards (coming soon)
selendra stake claim

# Unbond from pool (coming soon)
selendra stake unbond

Environment Variables

Set these in your .env file or export them:

# Required for transactions
PRIVATE_KEY=your_private_key
# or
SELENDRA_PRIVATE_KEY=your_private_key

Networks

| Network | Chain ID | RPC | | ------- | -------- | -------------------------------- | | Mainnet | 1961 | https://rpc.selendra.org | | Testnet | 1953 | https://rpc-testnet.selendra.org | | Local | 31337 | http://127.0.0.1:9944 |

Command Reference

selendra <command> [options]

Commands:
  init <name>              Initialize a new Selendra project
  compile                  Compile smart contracts
  deploy <contract>        Deploy smart contract
  status                   Show network status
  chain                    Show chain information
  block [number]           Show block information
  account [action]         Manage accounts (new|new-substrate|list)
  balance <address>        Check account balance
  transfer <to>            Transfer SEL tokens
  faucet <address>         Request testnet tokens
  stake [action]           Staking operations (info|pools|join|claim|unbond)

Global Options:
  -n, --network <network>  Network to use (mainnet|testnet|local)
  --json                   Output as JSON (where supported)
  -h, --help               Display help
  -V, --version            Display version

Integration with Selendra SDK

This CLI is part of the @selendrajs/sdk monorepo and uses @selendrajs/sdk for blockchain interactions.

// The CLI uses the SDK internally
import { SelendraClient } from "@selendrajs/sdk";

Development

# Install dependencies
npm install

# Run in development mode
npm run dev -- status --network testnet

# Build
npm run build

# Run tests
npm test

# Link globally for testing
npm link
selendra --help

License

MIT