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

ironfish-wallet

v2.4.0

Published

CLI for running a standalone wallet

Downloads

28

Readme

ironfish-wallet

The Iron Fish Wallet CLI is a standalone process which provides account key management, transaction creation, and asset storage.

Installation

The Iron Fish Standalone Wallet can be installed via NPM:

$ npm i -g ironfish-wallet

Refer to the Commands section for usage details, or run:

$ ironfishw --help

Setup

In order to start the standalone wallet, you must configure the process to point to a full Iron Fish Node.

Connecting a Standalone Wallet to a Remote Node

# Enable TCP connection to the full node
$ ironfishw config:set walletNodeTcpEnabled true

# Set the TCP host of the full node
$ ironfishw config:set walletNodeTcpHost <node-host>

# Set the TCP port of the full node
$ ironfishw config:set walletNodeTcpPort <node-port>

# (Optional) If the full node has TLS enabled, set the RPC authentication token
$ ironfishw config:set walletNodeRpcAuthToken <auth-token>

# After the above commands are run, you can start the wallet
$ ironfishw start

Alternatively, you can pass (or override the existing configuration) via CLI flags:

$ ironfishw start --node.tcp --node.tcp.host=<node-tcp-host> --node.tcp.port=<node-tcp-port>

If TLS is set:

$ ironfishw start --node.tcp --node.tcp.host=<node-tcp-host> --node.tcp.port=<node-tcp-port> --node.tcp.tls --node.auth=taqueriaramirez

Connecting a Standalone Wallet to a Local Node

If you have a local node running and wish to connect via IPC:

# Enable IPC connection to the full node
$ ironfishw config:set walletNodeIpcEnabled true

# Set the IPC path of the full node
$ ironfishw config:set walletNodeIpcPath <full-node-ipc-path>

# After the above commands are run, you can start the wallet
$ ironfishw start

Alternatively, you can pass (or override the existing configuration) via CLI flags:

$ ironfishw start --node.ipc --node.ipc.path=<full-node-ipc-path>

Commands

The ironfish-wallet CLI has several commands to manage an Iron Fish wallet.

Appending --help to each command will provide help. For example:

$ ironfishw accounts --help

Wallet

  • ironfishw accounts - List all the accounts on the node
  • ironfishw address - Display your account address
  • ironfishw assets - Display the wallet's assets
  • ironfishw balance - Display the account balance
  • ironfishw balances - Display the account's balances for all assets
  • ironfishw browse - Browse to your data directory
  • ironfishw burn - Burn tokens and decrease supply for a given asset
  • ironfishw config - Print out the entire config
  • ironfishw create - Create a new account for sending and receiving coins
  • ironfishw delete - Permanently delete an account
  • ironfishw export - Export an account
  • ironfishw faucet - Receive coins from the Iron Fish official testnet Faucet
  • ironfishw help - Display help for ironfishw.
  • ironfishw import - Import an account
  • ironfishw migrations - List all the migration statuses
  • ironfishw mint - Mint tokens and increase supply for a given asset
  • ironfishw notes - Display the account notes
  • ironfishw post - Post a raw transaction
  • ironfishw prune - Removes expired transactions from the wallet
  • ironfishw rename - Change the name of an account
  • ironfishw repl - An interactive terminal to the node
  • ironfishw rescan - Rescan the blockchain for transactions
  • ironfishw send - Send coins to another account
  • ironfishw start - Start the wallet node
  • ironfishw status - Get status of an account
  • ironfishw stop - Stop the wallet node
  • ironfishw transaction - Display an account transaction
  • ironfishw transactions - Display the account transactions
  • ironfishw use - Change the default account used by all commands
  • ironfishw which - Show the account currently used.

Configuration

  • ironfishw config - Print out the entire config
  • ironfishw config:edit - Edit the config in your configured editor
  • ironfishw config:get - Print out one config value
  • ironfishw config:set - Set a value in the config
  • ironfishw config:unset - Unset a value in the config and fall back to default

Migrations

  • ironfishw migrations - List all the migration statuses
  • ironfishw migrations:start - Run migrations

Node

  • ironfishw node:status - Show the status of the full node

RPC

  • ironfishw rpc:status - Show the status of the RPC layer
  • ironfishw rpc:token - Get or set the RPC auth token

Workers

  • ironfishw workers:status - Show the status of the worker pool

Development

Ensure you are running Node 20.x.

Local Node Changes

If you need to test changes simulatenously to both the ironfish SDK and this standalone wallet code base. In that case, you can link the wallet to the local instance of the ironfish SDK using the following steps:

In the ironfish repository:

# Build all packages
$ yarn build

# Navigate to the SDK directory
$ cd ironfish

# Link the SDK package
$ yarn link

After that, in this standalone wallet repository:

$ yarn link "@ironfish/sdk"