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

chainpeekcli

v1.1.0

Published

Blockchian cli that gives you easy access to blockchain data from your command line

Downloads

4

Readme

Chain Peek CLI

Usage

$ npm install -g chainpeekcli
$ peek COMMAND
running command...
$ peek (--version)
chainpeekcli/1.1.0 darwin-x64 node-v18.16.0
$ peek --help [COMMAND]
USAGE
  $ peek COMMAND
...

Commands

peek abi-events NAME

lists all ABI events

USAGE
  $ peek abi-events NAME

ARGUMENTS
  NAME  abi name in storage

DESCRIPTION
  lists all ABI events

ALIASES
  $ peek abi-events

EXAMPLES
  $ peek abi-events erc20ABI

peek abi-methods NAME

lists all methods of abi by providing name ABI is stored as

USAGE
  $ peek abi-methods NAME

ARGUMENTS
  NAME  abi name in storage

DESCRIPTION
  lists all methods of abi by providing name ABI is stored as

ALIASES
  $ peek abi-methods

EXAMPLES
  $ peek abi-methods erc20ABI

peek abi delete NAME

Delete ABI stored in local storage by providing name ABI is stored as

USAGE
  $ peek abi delete NAME

ARGUMENTS
  NAME  name ABI is stored as

DESCRIPTION
  Delete ABI stored in local storage by providing name ABI is stored as

ALIASES
  $ peek delete-abi

EXAMPLES
  $ peek abi delete erc20ABI

See code: dist/commands/abi/delete.ts

peek abi event NAME

lists all ABI events

USAGE
  $ peek abi event NAME

ARGUMENTS
  NAME  abi name in storage

DESCRIPTION
  lists all ABI events

ALIASES
  $ peek abi-events

EXAMPLES
  $ peek abi event erc20ABI

See code: dist/commands/abi/event.ts

peek abi get NAME

Get ABI stored in local storage by providing name ABI is stored as

USAGE
  $ peek abi get NAME

ARGUMENTS
  NAME  name ABI is stored as

DESCRIPTION
  Get ABI stored in local storage by providing name ABI is stored as

ALIASES
  $ peek get-abi

EXAMPLES
  $ peek abi get erc20ABI

See code: dist/commands/abi/get.ts

peek abi list

list the name of all stored ABIs

USAGE
  $ peek abi list

DESCRIPTION
  list the name of all stored ABIs

ALIASES
  $ peek list-abi

EXAMPLES
  $ peek abi list

See code: dist/commands/abi/list.ts

peek abi method NAME

lists all methods of abi by providing name ABI is stored as

USAGE
  $ peek abi method NAME

ARGUMENTS
  NAME  abi name in storage

DESCRIPTION
  lists all methods of abi by providing name ABI is stored as

ALIASES
  $ peek abi-methods

EXAMPLES
  $ peek abi method erc20ABI

See code: dist/commands/abi/method.ts

peek abi set NAME ABIPATH

Read contract abi from file path provided and stores to local storage

USAGE
  $ peek abi set NAME ABIPATH

ARGUMENTS
  NAME     name to store abi as
  ABIPATH  abi file path

DESCRIPTION
  Read contract abi from file path provided and stores to local storage

ALIASES
  $ peek set-abi

EXAMPLES
  $ peek abi set erc20ABI src/abi/erc20abi.json

See code: dist/commands/abi/set.ts

peek address address-to-ens ADDRESS

Performs a reverse lookup of the address in ENS using the Reverse Registrar. If the name does not exist, or the forward lookup does not match, null is returned

USAGE
  $ peek address address-to-ens ADDRESS [--mainnet | --rpc_url <value> |  | --sepolia | --goerli | --arbitrum |
    --arbitrumGoerli | --optimism | --optimismGoerli | --polygon | --polygonMumbai]

ARGUMENTS
  ADDRESS  wallet address or contract address

FLAGS
  --arbitrum         provider network
  --arbitrumGoerli   provider network
  --goerli           provider network
  --mainnet          provider network
  --optimism         provider network
  --optimismGoerli   provider network
  --polygon          provider network
  --polygonMumbai    provider network
  --rpc_url=<value>  provider network rpc url
  --sepolia          provider network

DESCRIPTION
  Performs a reverse lookup of the address in ENS using the Reverse Registrar. If the name does not exist, or the
  forward lookup does not match, null is returned

EXAMPLES
  $ peek address address-to-ens  0x34aA3F359A9D614239015126635CE7732c18fDF3 --mainnet

  $ peek address address-to-ens  0x34aA3F359A9D614239015126635CE7732c18fDF3 --rpc_url=[PROVIDER_URL]

See code: dist/commands/address/address-to-ens.ts

peek address balance ADDRESS

Get address balance

USAGE
  $ peek address balance ADDRESS [--mainnet | --rpc_url <value> |  | --sepolia | --goerli | --arbitrum |
    --arbitrumGoerli | --optimism | --optimismGoerli | --polygon | --polygonMumbai]

ARGUMENTS
  ADDRESS  wallet address or contract address

FLAGS
  --arbitrum         provider network
  --arbitrumGoerli   provider network
  --goerli           provider network
  --mainnet          provider network
  --optimism         provider network
  --optimismGoerli   provider network
  --polygon          provider network
  --polygonMumbai    provider network
  --rpc_url=<value>  provider network rpc url
  --sepolia          provider network

DESCRIPTION
  Get address balance

EXAMPLES
  $ peek address balance

See code: dist/commands/address/balance.ts

peek address ens-to-address ENS

Looks up the address of name. If the name is not owned, or does not have a Resolver configured, or the Resolver does not have an address configured, null is returned.

USAGE
  $ peek address ens-to-address ENS [--mainnet | --rpc_url <value> |  | --sepolia | --goerli | --arbitrum | --arbitrumGoerli
    | --optimism | --optimismGoerli | --polygon | --polygonMumbai]

ARGUMENTS
  ENS  An existing ens

FLAGS
  --arbitrum         provider network
  --arbitrumGoerli   provider network
  --goerli           provider network
  --mainnet          provider network
  --optimism         provider network
  --optimismGoerli   provider network
  --polygon          provider network
  --polygonMumbai    provider network
  --rpc_url=<value>  provider network rpc url
  --sepolia          provider network

DESCRIPTION
  Looks up the address of name. If the name is not owned, or does not have a Resolver configured, or the Resolver does
  not have an address configured, null is returned.

EXAMPLES
  $ peek address ens-to-address atg.eth --mainnet

  $ peek address ens-to-address atg.eth --rpc_url=[PROVIDER_URL]

See code: dist/commands/address/ens-to-address.ts

peek block-number

Returns the block number of the most recently mined block. Default network: localhost

USAGE
  $ peek block-number [--mainnet | --rpc_url <value> |  | --sepolia | --goerli | --arbitrum | --arbitrumGoerli |
    --optimism | --optimismGoerli | --polygon | --polygonMumbai]

FLAGS
  --arbitrum         provider network
  --arbitrumGoerli   provider network
  --goerli           provider network
  --mainnet          provider network
  --optimism         provider network
  --optimismGoerli   provider network
  --polygon          provider network
  --polygonMumbai    provider network
  --rpc_url=<value>  provider network rpc url
  --sepolia          provider network

DESCRIPTION
  Returns the block number of the most recently mined block. Default network: localhost

ALIASES
  $ peek block-number

EXAMPLES
  $ peek block-number --mainnet

  $ peek block-number --rpc_url=[PROVIDER_URL]

peek block number

Returns the block number of the most recently mined block. Default network: localhost

USAGE
  $ peek block number [--mainnet | --rpc_url <value> |  | --sepolia | --goerli | --arbitrum | --arbitrumGoerli |
    --optimism | --optimismGoerli | --polygon | --polygonMumbai]

FLAGS
  --arbitrum         provider network
  --arbitrumGoerli   provider network
  --goerli           provider network
  --mainnet          provider network
  --optimism         provider network
  --optimismGoerli   provider network
  --polygon          provider network
  --polygonMumbai    provider network
  --rpc_url=<value>  provider network rpc url
  --sepolia          provider network

DESCRIPTION
  Returns the block number of the most recently mined block. Default network: localhost

ALIASES
  $ peek block-number

EXAMPLES
  $ peek block number --mainnet

  $ peek block number --rpc_url=[PROVIDER_URL]

See code: dist/commands/block/number.ts

peek block transaction-hash [BLOCK_NUMBER]

get transaction details and hash of block. If block is not provider, details of latest block is returned

USAGE
  $ peek block transaction-hash [BLOCK_NUMBER] [--mainnet | --rpc_url <value> |  | --sepolia | --goerli | --arbitrum |
    --arbitrumGoerli | --optimism | --optimismGoerli | --polygon | --polygonMumbai] [--json]

ARGUMENTS
  BLOCK_NUMBER  block number

FLAGS
  --arbitrum         provider network
  --arbitrumGoerli   provider network
  --goerli           provider network
  --mainnet          provider network
  --optimism         provider network
  --optimismGoerli   provider network
  --polygon          provider network
  --polygonMumbai    provider network
  --rpc_url=<value>  provider network rpc url
  --sepolia          provider network

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  get transaction details and hash of block. If block is not provider, details of latest block is returned

EXAMPLES
  $ peek block transaction-hash 4474398 --sepolia

  $ peek block transaction-hash 4474398 --rpc_url=[PROVIDER_URL]

See code: dist/commands/block/transaction-hash.ts

peek contract ADDRESS ABI

Create a contract instance and interact with the contract methods in a REPL environment

USAGE
  $ peek contract ADDRESS ABI [--mainnet | --rpc_url <value> |  | --sepolia | --goerli | --arbitrum |
    --arbitrumGoerli | --optimism | --optimismGoerli | --polygon | --polygonMumbai] [--private_key <value>]

ARGUMENTS
  ADDRESS  contract address
  ABI      name of abi saved using `peek set-abi`

FLAGS
  --arbitrum             provider network
  --arbitrumGoerli       provider network
  --goerli               provider network
  --mainnet              provider network
  --optimism             provider network
  --optimismGoerli       provider network
  --polygon              provider network
  --polygonMumbai        provider network
  --private_key=<value>  private key of transaction signer
  --rpc_url=<value>      provider network rpc url
  --sepolia              provider network

DESCRIPTION
  Create a contract instance and interact with the contract methods in a REPL environment

EXAMPLES
  $ peek contract 0x62d77aF1c22277D227269ceC3868c59471c0f9ed erc20ABI --mainnet

  > await contract.name()

  > await contract.getterFunction()

  $ peek contract 0x62d77aF1c22277D227269ceC3868c59471c0f9ed erc20ABI --private_key=0x00000000000000000000000000000000000000000000 --mainnet

  > await contract.mint()

  > await contract.setterFunction({value: '10000000000000'})

See code: dist/commands/contract/index.ts

peek delete-abi NAME

Delete ABI stored in local storage by providing name ABI is stored as

USAGE
  $ peek delete-abi NAME

ARGUMENTS
  NAME  name ABI is stored as

DESCRIPTION
  Delete ABI stored in local storage by providing name ABI is stored as

ALIASES
  $ peek delete-abi

EXAMPLES
  $ peek delete-abi erc20ABI

peek deploy FILENAME FILEPATH

Create a contract instance and interact with the contract methods in a REPL environment

USAGE
  $ peek deploy FILENAME FILEPATH [--mainnet | --rpc_url <value> |  | --sepolia | --goerli | --arbitrum |
    --arbitrumGoerli | --optimism | --optimismGoerli | --polygon | --polygonMumbai] [--private_key <value>]

ARGUMENTS
  FILENAME  contract file name
  FILEPATH  contract file path

FLAGS
  --arbitrum             provider network
  --arbitrumGoerli       provider network
  --goerli               provider network
  --mainnet              provider network
  --optimism             provider network
  --optimismGoerli       provider network
  --polygon              provider network
  --polygonMumbai        provider network
  --private_key=<value>  private key of deployer address
  --rpc_url=<value>      provider network rpc url
  --sepolia              provider network

DESCRIPTION
  Create a contract instance and interact with the contract methods in a REPL environment

EXAMPLES
  $ peek deploy 0x62d77aF1c22277D227269ceC3868c59471c0f9ed erc20ABI --mainnet

  > await contract.name()

  > await contract.getterFunction()

  $ peek deploy 0x62d77aF1c22277D227269ceC3868c59471c0f9ed erc20ABI --private_key=0x00000000000000000000000000000000000000000000 --mainnet

  > await contract.mint()

  > await contract.setterFunction({value: '10000000000000'})

See code: dist/commands/deploy/index.ts

peek event watch ADDRESS ABI EVENT

emits new events from contract

USAGE
  $ peek event watch ADDRESS ABI EVENT [--mainnet | --rpc_url <value> |  | --sepolia | --goerli | --arbitrum |
    --arbitrumGoerli | --optimism | --optimismGoerli | --polygon | --polygonMumbai]

ARGUMENTS
  ADDRESS  contract address
  ABI      name of abi saved using `peek set-abi`
  EVENT    event to watch

FLAGS
  --arbitrum         provider network
  --arbitrumGoerli   provider network
  --goerli           provider network
  --mainnet          provider network
  --optimism         provider network
  --optimismGoerli   provider network
  --polygon          provider network
  --polygonMumbai    provider network
  --rpc_url=<value>  provider network rpc url
  --sepolia          provider network

DESCRIPTION
  emits new events from contract

ALIASES
  $ peek events-watch

EXAMPLES
  $ peek event watch 0xF51CD0d607c82db2B7EB670554C82C276A9549B4 erc20ABI Transfer --mainnet

See code: dist/commands/event/watch.ts

peek events-watch ADDRESS ABI EVENT

emits new events from contract

USAGE
  $ peek events-watch ADDRESS ABI EVENT [--mainnet | --rpc_url <value> |  | --sepolia | --goerli | --arbitrum |
    --arbitrumGoerli | --optimism | --optimismGoerli | --polygon | --polygonMumbai]

ARGUMENTS
  ADDRESS  contract address
  ABI      name of abi saved using `peek set-abi`
  EVENT    event to watch

FLAGS
  --arbitrum         provider network
  --arbitrumGoerli   provider network
  --goerli           provider network
  --mainnet          provider network
  --optimism         provider network
  --optimismGoerli   provider network
  --polygon          provider network
  --polygonMumbai    provider network
  --rpc_url=<value>  provider network rpc url
  --sepolia          provider network

DESCRIPTION
  emits new events from contract

ALIASES
  $ peek events-watch

EXAMPLES
  $ peek events-watch 0xF51CD0d607c82db2B7EB670554C82C276A9549B4 erc20ABI Transfer --mainnet

peek get-abi NAME

Get ABI stored in local storage by providing name ABI is stored as

USAGE
  $ peek get-abi NAME

ARGUMENTS
  NAME  name ABI is stored as

DESCRIPTION
  Get ABI stored in local storage by providing name ABI is stored as

ALIASES
  $ peek get-abi

EXAMPLES
  $ peek get-abi erc20ABI

peek help [COMMANDS]

Display help for peek.

USAGE
  $ peek help [COMMANDS] [-n]

ARGUMENTS
  COMMANDS  Command to show help for.

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

DESCRIPTION
  Display help for peek.

See code: @oclif/plugin-help

peek list-abi

list the name of all stored ABIs

USAGE
  $ peek list-abi

DESCRIPTION
  list the name of all stored ABIs

ALIASES
  $ peek list-abi

EXAMPLES
  $ peek list-abi

peek plugins

List installed plugins.

USAGE
  $ peek plugins [--json] [--core]

FLAGS
  --core  Show core plugins.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List installed plugins.

EXAMPLES
  $ peek plugins

See code: @oclif/plugin-plugins

peek plugins:install PLUGIN...

Installs a plugin into the CLI.

USAGE
  $ peek plugins:install PLUGIN...

ARGUMENTS
  PLUGIN  Plugin to install.

FLAGS
  -f, --force    Run yarn install with force flag.
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Installs a plugin into the CLI.
  Can be installed from npm or a git url.

  Installation of a user-installed plugin will override a core plugin.

  e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
  will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
  the CLI without the need to patch and update the whole CLI.


ALIASES
  $ peek plugins add

EXAMPLES
  $ peek plugins:install myplugin 

  $ peek plugins:install https://github.com/someuser/someplugin

  $ peek plugins:install someuser/someplugin

peek plugins:inspect PLUGIN...

Displays installation properties of a plugin.

USAGE
  $ peek plugins:inspect PLUGIN...

ARGUMENTS
  PLUGIN  [default: .] Plugin to inspect.

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Displays installation properties of a plugin.

EXAMPLES
  $ peek plugins:inspect myplugin

See code: @oclif/plugin-plugins

peek plugins:install PLUGIN...

Installs a plugin into the CLI.

USAGE
  $ peek plugins:install PLUGIN...

ARGUMENTS
  PLUGIN  Plugin to install.

FLAGS
  -f, --force    Run yarn install with force flag.
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Installs a plugin into the CLI.
  Can be installed from npm or a git url.

  Installation of a user-installed plugin will override a core plugin.

  e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
  will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
  the CLI without the need to patch and update the whole CLI.


ALIASES
  $ peek plugins add

EXAMPLES
  $ peek plugins:install myplugin 

  $ peek plugins:install https://github.com/someuser/someplugin

  $ peek plugins:install someuser/someplugin

See code: @oclif/plugin-plugins

peek plugins:link PLUGIN

Links a plugin into the CLI for development.

USAGE
  $ peek plugins:link PLUGIN

ARGUMENTS
  PATH  [default: .] path to plugin

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Links a plugin into the CLI for development.
  Installation of a linked plugin will override a user-installed or core plugin.

  e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
  command will override the user-installed or core plugin implementation. This is useful for development work.


EXAMPLES
  $ peek plugins:link myplugin

See code: @oclif/plugin-plugins

peek plugins:uninstall PLUGIN...

Removes a plugin from the CLI.

USAGE
  $ peek plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ peek plugins unlink
  $ peek plugins remove

peek plugins:uninstall PLUGIN...

Removes a plugin from the CLI.

USAGE
  $ peek plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ peek plugins unlink
  $ peek plugins remove

See code: @oclif/plugin-plugins

peek plugins:uninstall PLUGIN...

Removes a plugin from the CLI.

USAGE
  $ peek plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ peek plugins unlink
  $ peek plugins remove

peek plugins update

Update installed plugins.

USAGE
  $ peek plugins update [-h] [-v]

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Update installed plugins.

See code: @oclif/plugin-plugins

peek set-abi NAME ABIPATH

Read contract abi from file path provided and stores to local storage

USAGE
  $ peek set-abi NAME ABIPATH

ARGUMENTS
  NAME     name to store abi as
  ABIPATH  abi file path

DESCRIPTION
  Read contract abi from file path provided and stores to local storage

ALIASES
  $ peek set-abi

EXAMPLES
  $ peek set-abi erc20ABI src/abi/erc20abi.json

peek wallet generate

generates a new random account

USAGE
  $ peek wallet generate [--no-export]

FLAGS
  --no-export  disables export for mnemonic and private key to 'new-wallet.json' file in current directory

DESCRIPTION
  generates a new random account

EXAMPLES
  $ peek wallet generate generateAccount

  $ peek wallet generate generateAccount --no-export

See code: dist/commands/wallet/generate.ts