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

stxn-cli

v1.2.0

Published

CLI for interacting with Lestnet blockchain

Readme

STXN CLI

A command-line interface for interacting with the Lestnet blockchain. STXN CLI provides a simple way to manage wallets, check balances, deploy smart contracts, and more on the Lestnet testnet.

Installation

Install globally from npm:

npm install -g stxn-cli

Features

  • 🔍 Check address balances
  • 🔑 Create new wallets
  • 🌐 Get network information
  • 💸 Send transactions
  • 📝 Deploy smart contracts
  • 💻 Dry-run deployment with gas estimation

Usage

Check Balance

Get the balance of any Lestnet address:

stxn balance <address>

Example:

stxn balance 0xB5a71834a2DC0cc2a7a8893407D6EA04ABAB6BD4

Create Wallet

Generate a new random wallet with address, private key, and mnemonic:

stxn create-wallet

Keep your private key and mnemonic secure!

Network Information

Get information about the Lestnet network:

stxn network

Send Transactions

Send LETH to another address:

stxn send <to> <amount> <privateKey> [options]

Options:

  • -g, --gas-limit <limit>: Custom gas limit

Example:

# Send 1 LETH
stxn send 0xRecipientAddress 1 0xYourPrivateKey

# Send with custom gas limit
stxn send 0xRecipientAddress 0.5 0xYourPrivateKey --gas-limit 21000

Deploy Smart Contracts

Deploy a Solidity smart contract to Lestnet:

stxn deploy <contract-file> -c <constructor-args> -p <private-key>

Options:

  • -c, --constructor-args <args>: Constructor arguments (comma-separated)
  • -p, --private-key <key>: Private key for deployment
  • -g, --gas-limit <limit>: Custom gas limit
  • -d, --dry-run: Compile without deploying (good for testing)

Example:

# Deploy with constructor argument 42
stxn deploy SimpleStorage.sol -c 42 -p 0x123...

# Dry run to check compilation and estimate gas
stxn deploy SimpleStorage.sol -c 42 -p 0x123... --dry-run

Contract Example

Here's a simple storage contract example (SimpleStorage.sol):

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract SimpleStorage {
    uint256 private value;

    constructor(uint256 _value) {
        value = _value;
    }

    function getValue() public view returns (uint256) {
        return value;
    }

    function setValue(uint256 _value) public {
        value = _value;
    }
}

Getting Testnet Funds

To get testnet LETH for your wallet:

  1. Visit Lestnet website
  2. Click on "Get Testnet Funds"
  3. Enter your wallet address
  4. Receive free testnet LETH

Links

License

MIT