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

filpay-cli

v1.1.0

Published

CLI tool for Filecoin Pay withdrawals with proper nonce management

Readme

filpay-cli - Filecoin Pay CLI Tool

Complete CLI tool for managing FilecoinPayV1 payments with proper nonce management for active PDP nodes.

Features

  • ✓ Check account balance and lockup info (with --detailed and --json flags)
  • ✓ Withdraw available funds to self or another address
  • ✓ Deposit USDFC into FilecoinPay contract
  • ✓ List and manage payment rails (shows all rails)
  • ✓ Settle payments from payers
  • ✓ Preview settlement amounts before settling
  • Proper "pending" nonce management - works reliably even with active PDP nodes
  • ✓ Built on official Filecoin Cloud Synapse SDK
  • ✓ Colorful terminal output with emojis for better readability

Installation

📦 npm Package: filpay-cli

Install Globally (Recommended)

npm install -g filpay-cli

Then use anywhere:

filpay balance --account 0x...
filpay withdraw 1.0 --key YOUR_KEY

Quick Start (via npx)

Run without installing:

npx filpay-cli balance --account 0x...
npx filpay-cli withdraw 1.0 --key YOUR_KEY

Local Development

git clone https://github.com/FilOzone/filpay-cli.git
cd filpay-cli
npm install
node cli.js <command> [options]

Commands

Balance & Wallet

# Check account balance
filpay balance --account 0x...

# Detailed balance (includes wallet balance)
filpay balance --account 0x... --detailed

# JSON output (for scripts)
filpay balance --account 0x... --json

# Check wallet USDFC balance (with contract balance if using --key)
filpay wallet-balance --account 0x...
filpay wallet-balance --key YOUR_KEY

Deposits & Withdrawals

# Deposit USDFC into FilecoinPay
filpay deposit 10 --key YOUR_KEY

# Withdraw to your wallet
filpay withdraw 0.5 --key YOUR_KEY

# Withdraw to another address
filpay withdraw 0.5 --to 0xRecipient --key YOUR_KEY

Payment Rails

# List all your payment rails
filpay rails list --key YOUR_KEY

# Get detailed rail information
filpay rails info 123 --key YOUR_KEY

# Settle a specific rail
filpay rails settle 0xPayerAddress --key YOUR_KEY

# Preview all settlements (no transactions)
filpay rails settle-all --key YOUR_KEY --preview

# Auto-settle all rails
filpay rails settle-all --key YOUR_KEY --yes

Settlement

# Preview settlement amount
filpay settlement-preview 0xPayerAddress --key YOUR_KEY

# Settle payment (shortcut)
filpay settle 0xPayerAddress --key YOUR_KEY

Options

  • --rpc <url> - RPC endpoint (default: https://rpc.ankr.com/filecoin)
  • --key <key> - Private key (required for transactions)
  • --account <addr> - Account address (for balance checks)
  • --to <addr> - Recipient address (for withdrawals)
  • --detailed - Show detailed information
  • --json - Output as JSON
  • --yes - Skip confirmation prompts
  • --preview - Preview settlements without executing transactions

Why This Tool?

Standard tools like cast send use "latest" nonces instead of "pending" nonces, causing "nonce too low" errors when PDP nodes are actively sending transactions. This tool uses the Filecoin Cloud Synapse SDK which properly handles pending nonces, ensuring reliable transaction submission even in high-activity environments.

Contract Information

  • FilecoinPayV1: 0x23b1e018F08BB982348b15a86ee926eEBf7F4DAa
  • USDFC Token: 0x80B98d3aa09ffff255c3ba4A241111Ff1262F045
  • Network: Filecoin Mainnet (Chain ID: 314)

Requirements

  • Node.js 18+ (ES modules support)
  • npm

Development

# Install dependencies
npm install

# Test locally
node cli.js help

# Link for global usage
npm link

Resources

License

ISC