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

squads-decoder

v0.0.14

Published

Zero-dependency Solana transaction message decoder for Squads Protocol v4. Decode instructions, compute hardware wallet message hashes.

Downloads

586

Readme

Squads TX Hashes

Don't Trust, Verify!

A single-page, zero-dependency tool for decoding and verifying Solana transaction messages, specifically designed for Squads Protocol v4 multisig transactions.

Works fully offline -- no internet connection required.

Features

  • Decode serialized Solana transaction messages (hex or base64)
  • Compute the SHA-256 message hash displayed by hardware wallets (e.g., Ledger)
  • Decode all instructions with human-readable labels for:
    • Squads v4 instructions (vault_transaction_create, proposal_approve/reject, etc.)
    • SPL Token / Token-2022 transfers (TransferChecked, with token names for 100+ known tokens)
    • System Program (Transfer, AdvanceNonceAccount, etc.)
    • Compute Budget (SetComputeUnitLimit, SetComputeUnitPrice)
    • Associated Token Account creation
  • Safety classification -- instructions are marked as Safe, Review, or Unknown
  • Transaction summary -- shows what the vault transaction actually does in plain English
  • Token name resolution -- recognizes 100+ tokens including USDC, USDT, SOL, and xStocks tokenized equities
  • ATA to wallet resolution -- extracts destination wallet addresses from ATA creation instructions
  • Zero runtime dependencies -- everything is self-contained

Usage

Online

Visit: https://christsim.github.io/squads-tx-hashes-util/

Offline

  1. Download squads-tx-hashes.html from the latest release
  2. Verify the SHA-256 checksum: shasum -a 256 squads-tx-hashes.html
  3. Open the file in any browser -- no internet connection required

How to Verify a Transaction

  1. When your hardware wallet shows a transaction to sign, it displays a Message Hash
  2. Obtain the serialized transaction message (from your wallet software or browser dev tools)
  3. Paste it into the decode form
  4. The tool decodes all instructions and computes the message hash
  5. Compare the hash with what your hardware wallet displays
  6. If they match -- the transaction has not been tampered with
  7. If they don't match -- DO NOT sign the transaction

Standalone Library

A zero-dependency JavaScript module (squads-decoder.js) is also available for use in other projects:

import { decodeMessage, hashRawMessage, hexToBytes } from './squads-decoder.js';

const bytes = hexToBytes('80010002...');
const decoded = decodeMessage(bytes);
const hash = await hashRawMessage(bytes);

Download from the latest release.

Disclaimer

USE AT YOUR OWN RISK. This tool is provided as-is for informational purposes only. It does not guarantee the safety or legitimacy of any transaction. Always independently verify all destination addresses, amounts, and instructions. Never sign a transaction you do not fully understand. The authors accept no liability for any loss of funds.

Development

# Install dependencies
npm install

# Development server (hot reload)
npm run dev

# Run tests
npm test

# Production build (single HTML file + standalone library)
npm run build:all
# Output: dist/squads-tx-hashes.html + dist/squads-decoder.js

License

MIT