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 🙏

© 2025 – Pkg Stats / Ryan Hefner

lootex-cli

v0.0.5

Published

A command-line interface tool for interacting with Lootex, specifically designed for deploying NFT collections.

Readme

Lootex CLI

A command-line interface tool for interacting with Lootex, specifically designed for deploying NFT collections.

Installation

npm install -g lootex-cli

Usage

lootex [command] [options]

Commands

Deploy

Deploy a new NFT collection to a supported blockchain.

lootex deploy --imageFile <path> --walletPrivateKey <key> --authToken <token> --apiKey <key> [options]

Required Options:

  • --imageFile <path>: Path to the image file for your NFT collection
  • --walletPrivateKey <key>: Private key of the wallet used for deployment
  • --authToken <token>: Authentication token for Lootex
  • --apiKey <key>: Lootex API key

Optional Options:

  • --name <name>: Collection name (default: "My Awesome NFT Collection")
  • --symbol <symbol>: Collection symbol (default: "MANFT")
  • --chainId <id>: Chain ID for deployment (default: "1868")
  • --assetName <name>: Asset name (default: same as collection name)
  • --assetDescription <description>: Asset description (default: same as collection name)
  • --startTime <timestamp>: Start time in milliseconds since epoch (default: 24 hours from now)
  • --amount <amount>: Number of NFTs to mint (default: "1000")
  • --price <price>: Price per NFT (default: "0")
  • --creatorFeeAddress <address>: Address to receive the creator fee if isCreatorFee is set to true (default: wallet address)
  • --isCreatorFee: Enable creator fee (default: false)

List

List an NFT for sale on the Lootex marketplace.

lootex list --tokenAddress <address> --tokenId <id> --pricePerToken <price> --chainId <id> [options]

Required Options:

  • --tokenAddress <address>: NFT contract address
  • --tokenId <id>: NFT token ID
  • --pricePerToken <price>: Price per NFT in the smallest denomination of the currency
  • --chainId <id>: Chain ID where the NFT exists

Optional Options:

  • --apiKey <key>: Lootex API key (can also use LOOTEX_API_KEY environment variable)
  • --walletPrivateKey <key>: Private key of the wallet (can also use LOOTEX_PRIVATE_KEY environment variable)
  • --tokenType <type>: Token type, either "ERC721" or "ERC1155" (default: "ERC721")
  • --quantity <amount>: Amount to list for ERC1155 tokens (default: "1")
  • --currency <address>: Currency address for payment (default: native token of the chain)
  • --startTime <timestamp>: Start time in ms since epoch (default: immediate)
  • --endTime <timestamp>: End time in ms since epoch
  • --duration <ms>: Duration in ms (alternative to endTime)
  • --fees <json>: Fees as JSON string

Buy

Buy one or more NFTs from listings on the Lootex marketplace.

lootex buy --orderHashes <hashes...> --chainId <id> [options]

Required Options:

  • --orderHashes <hashes...>: Order hashes of the listings (can specify multiple)
  • --chainId <id>: Chain ID where the orders exist

Optional Options:

  • --apiKey <key>: Lootex API key (can also use LOOTEX_API_KEY environment variable)
  • --walletPrivateKey <key>: Private key of the wallet (can also use LOOTEX_PRIVATE_KEY environment variable)

Environment Variables

You can use the following environment variables instead of passing command-line options:

  • LOOTEX_API_KEY: Your Lootex API key
  • LOOTEX_PRIVATE_KEY: Your wallet's private key

Examples

Deploy a Collection

lootex deploy \
  --imageFile ./my-nft.png \
  --walletPrivateKey 0x123... \
  --authToken abcdef... \
  --apiKey xyz... \
  --name "My NFT Collection" \
  --symbol "MNFT" \
  --chainId 1868 \
  --amount 100 \
  --price 0.1

List an NFT for Sale

lootex list \
  --tokenAddress 0x123... \
  --tokenId 123 \
  --pricePerToken 1000000000000000000 \
  --chainId 1868 \
  --walletPrivateKey 0x123... \
  --apiKey xyz...

Buy an NFT

lootex buy \
  --orderHashes 0xabc... \
  --chainId 1868 \
  --walletPrivateKey 0x123... \
  --apiKey xyz...