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 🙏

© 2024 – Pkg Stats / Ryan Hefner

mvs-rawsign

v0.1.4

Published

Sign Metaverse raw transactions offline

Downloads

8

Readme

Installation

Install using npm:

npm install -g mvs-rawsign

Usage

Usage: mvs-rawsign [options] [command]

Options:
  -V, --version     output the version number
  -h, --help        output usage information

Commands:
  sign [options]
  generate [options]
  decode [options]

You can omit any of the options. You will then get a cli menu to select or enter the missing information.

Decode

Usage: decode [options]

Options:
  --tx [tx]            Hex encoded raw transaction
  --pretty             Pretty JSON format
  --network [network]  Network to use (default mainnet).
  -h, --help           output usage information

Consider to use the --pretty option.

Example:

mvs-rawsign decode --tx 0200000001ea1a27de1f3cee7c31033b93fd493717b2ff47e756df1185007d65bf7db25455010000006b483045022100f8fa56d4f3015689c01f4557351e858aec4a139d752bc19b322390093393efc3022077d706621c3e36c8b6a90c6d354e8a85dd81d39a4e2fb582c0fd28f3f1a9caec0121034593f54b073ed6a3728056d0f6595d614c717c639a9301761de7c8ef5d5fe1b4ffffffff0201000000000000001976a914f087200b95bd043a134a0cead903e0a3600d79eb88ac0100000000000000db604b00000000001976a9147f8ac2a0179a4eb308c7ae837aed878b5ed25de288ac010000000000000000000000 --pretty

Sign

Usage: sign [options]

Options:
  --tx [tx]                  Hex encoded raw transaction
  --signall                  Sign all inputs
  --index [index]            HD index to use
  --words [words]            Mnemonic words to use for signature
  --privatekey [privatekey]  Private key to use for signature
  --wif [wif]                Private key in WIF format to use for signature
  --network [network]        Network to use (default mainnet).
  -h, --help                 output usage information

You can either use your mnemonic words or a private key. If you use the --privatekey option it will not ask you for a mnemonic. Currently the private key must be 64 characters long.

Output is the signed hex encoded transaction.

Example:

mvs-rawsign sign --tx 0200000001ea1a27de1f3cee7c31033b93fd493717b2ff47e756df1185007d65bf7db25455010000006b483045022100f8fa56d4f3015689c01f4557351e858aec4a139d752bc19b322390093393efc3022077d706621c3e36c8b6a90c6d354e8a85dd81d39a4e2fb582c0fd28f3f1a9caec0121034593f54b073ed6a3728056d0f6595d614c717c639a9301761de7c8ef5d5fe1b4ffffffff0201000000000000001976a914f087200b95bd043a134a0cead903e0a3600d79eb88ac0100000000000000db604b00000000001976a9147f8ac2a0179a4eb308c7ae837aed878b5ed25de288ac010000000000000000000000 --privatekey 877dc58c951086ebf8ce94e2c622502605ba20ece2fdebf60d1aff45270cc3d3 --signall

Generate new wallet(s)

Usage: generate [options]

Options:
  --count [count]      Batch generation of multiple wallets (default 1)
  --pk [pk]            Set private key data (for testing purpose)
  --network [network]  Network to use (default mainnet).
  -h, --help           output usage information

Generates new wallet objects. Without count parameter it will return a single new wallet. If count parameter is given it will return an array of wallets (even if count is set to 1).