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

@xact-wallet-sdk/nft-cli

v0.0.13

Published

This CLI allow you to mint your NFT's

Downloads

13

Readme

nft-minting

nft Version CircleCI Downloads/week License

Usage

$ npm install -g @xact-wallet-sdk/nft-cli
$ nft COMMAND
running command...
$ nft (--version)
@xact-wallet-sdk/nft-cli/0.0.13 darwin-x64 node-v14.18.1
$ nft --help [COMMAND]
USAGE
  $ nft COMMAND
...

Config file

The configuration file provided to mint command should looks like this:

{
  "nftStorageApiKey": "YOUR_STORAGE_API_KEY",
  "hederaAccount": {
    "accountId": "0.0.12345678",
    "privateKey": "YOUR_PRIVATE_KEY",
    "environment": "testnet"
  },
  // Only needed for mint-multiple command
  "metadata": {
    // The following will be applied to the token
    "name": "TOKEN_NAME",
    "symbol": "TOKEN_SYMBOL",
        "customRoyaltyFee": [
      {
        "collectorAccountId": "0.0.12345678",
        "fallbackFee": 100,
        "numerator": 10,
        "denominator": 100
      }
    ],
    // The following will be applied to the nft
    "category": "Art",
    "creator": "TOKEN_CREATOR"
  }
}

To pass this file to your command use --config option.

Example of how to use

  1. Create a folder mint with a config.json file inside and your output folder from hashlips
  2. Move into your folder mint
$ cd mint
  1. Run mint-multiple command:
$ nft mint-multiple --from ./output

Commands

nft commands

list all the commands

USAGE
  $ nft commands [-h] [-j] [--hidden] [--columns <value> | -x] [--sort <value>] [--filter <value>] [--output
    csv|json|yaml |  | [--csv | --no-truncate]] [--no-header | ]

FLAGS
  -h, --help         Show CLI help.
  -j, --json         display unfiltered api data in json format
  -x, --extended     show extra columns
  --columns=<value>  only show provided columns (comma-separated)
  --csv              output is csv format [alias: --output=csv]
  --filter=<value>   filter property by partial string matching, ex: name=foo
  --hidden           show hidden commands
  --no-header        hide table header from output
  --no-truncate      do not truncate output to fit screen
  --output=<option>  output in a more machine friendly format
                     <options: csv|json|yaml>
  --sort=<value>     property to sort by (prepend '-' for descending)

DESCRIPTION
  list all the commands

See code: @oclif/plugin-commands

nft help [COMMAND]

Display help for nft.

USAGE
  $ nft help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for nft.

See code: @oclif/plugin-help

nft mint-multiple

Mint NFT's with multiple metadata

USAGE
  $ nft mint-multiple -f <value> [-c <value>]

FLAGS
  -c, --config=<value>  [default: /Users/tailorweb./Lab/xact/nft-cli/config.json] Path of your config file
  -f, --from=<value>    (required) Path from which you want to create your NFT's

DESCRIPTION
  Mint NFT's with multiple metadata

EXAMPLES
  $ nft mint multiple -c sample.config.json -f ~/Downloads/nfts
        Checking your configuration...
        Checking if the path is a directory...
        Reading the content of all the paired files...
        Running minting of your directory...
        ...

See code: dist/commands/mint-multiple/index.ts

nft mint-single

Mint NFT's with single metadata

USAGE
  $ nft mint-single -m <value> -i <value> [-c <value>] [-s <value>]

FLAGS
  -c, --config=<value>    [default: /Users/tailorweb./Lab/xact/nft-cli/config.json] Path of your config file
  -i, --image=<value>     (required) Path of your image file
  -m, --metadata=<value>  (required) Path of your json metadata file
  -s, --supply=<value>    [default: 1] Amount of supply

DESCRIPTION
  Mint NFT's with single metadata

EXAMPLES
  $ nft mint single -c sample.config.json -m ~/Downloads/nft/metadata.json -i ~/Downloads/nft/image.png -s 1500
        Checking your configuration...
        Checking if your paths...
        Reading the content of your file...
        Running minting...
        ...

See code: dist/commands/mint-single/index.ts