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

@thalalabs/aptx

v0.1.2

Published

Lightweight CLI for simulating and submitting Aptos transactions

Readme

aptx

Lightweight CLI for simulating and submitting Aptos transactions.

Features

  • Simple transaction submission from JSON payloads
  • Fetch transaction payloads from the blockchain
  • Support for stdin input (pipe JSON directly)
  • Transaction simulation before submission (with --force to bypass)
  • Dry-run mode to test without submitting
  • Works with existing Aptos CLI profiles
  • Minimal dependencies, fast execution
  • Clear output with explorer links

Installation

npm install -g @thalalabs/aptx

Usage

Basic Usage (with simulation)

# From file
aptx submit --payload transaction.json --profile my-profile

# From stdin (pipe)
cat transaction.json | aptx submit --profile my-profile

# From stdin (explicit)
cat transaction.json | aptx submit --payload - --profile my-profile

# From echo
echo '{"function_id":"0x1::aptos_account::transfer","type_args":[],"args":[...]}' | aptx submit --profile my-profile

Force Submit (even if simulation fails)

aptx submit --payload transaction.json --profile my-profile --force

Dry-run (don't submit)

cat transaction.json | aptx submit --profile my-profile --dry-run

Custom Fullnode

aptx submit --payload transaction.json --profile my-profile --fullnode https://fullnode.testnet.aptoslabs.com/v1

Movement Network

aptx submit --payload transaction.json --profile my-profile --source movement

Transaction JSON Format

Transaction payloads should follow this format:

{
  "function_id": "0x1::aptos_account::transfer",
  "type_args": [],
  "args": [
    {
      "type": "address",
      "value": "0x1234..."
    },
    {
      "type": "u64",
      "value": "1000000"
    }
  ]
}

Profile Setup

aptx uses profiles from the Aptos CLI. Set them up with:

aptos init --profile my-profile

Profiles are stored in .aptos/config.yaml in your current directory.

Command Reference

fetch

Fetch a transaction payload from the blockchain.

Options:

  • --txn <hash_or_version> - Transaction hash (0x...) or version number (required)
  • --fullnode <url> - Fullnode URL (required)
  • --output <path> - Output file path (optional, defaults to stdout)

Examples:

# Fetch by transaction hash
aptx fetch --txn 0x1234... --fullnode https://api.mainnet.aptoslabs.com/v1

# Fetch by version number
aptx fetch --txn 12345678 --fullnode https://api.mainnet.aptoslabs.com/v1

# Save to file
aptx fetch --txn 0x1234... --fullnode https://api.mainnet.aptoslabs.com/v1 --output transaction.json

# Fetch and re-submit workflow
aptx fetch --txn 0x1234... --fullnode https://api.mainnet.aptoslabs.com/v1 | aptx submit --profile my-profile

submit

Submit a transaction from a JSON payload.

Options:

  • --payload <path> - Path to transaction JSON file or "-" for stdin (optional, defaults to stdin if omitted)
  • --profile <name> - Profile name from .aptos/config.yaml (required)
  • --fullnode <url> - Override fullnode URL from profile (optional)
  • --force - Submit transaction even if simulation fails (optional)
  • --dry-run - Only simulate the transaction without submitting (optional)
  • --source <source> - Config source: 'aptos' or 'movement' (default: 'aptos')

Development

# Install dependencies
npm install

# Build
npm run build

# Run locally
npm start

License

MIT