$ 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
...
peek abi-events NAME
peek abi-methods NAME
peek abi delete NAME
peek abi event NAME
peek abi get NAME
peek abi list
peek abi method NAME
peek abi set NAME ABIPATH
peek address address-to-ens ADDRESS
peek address balance ADDRESS
peek address ens-to-address ENS
peek block-number
peek block number
peek block transaction-hash [BLOCK_NUMBER]
peek contract ADDRESS ABI
peek delete-abi NAME
peek deploy FILENAME FILEPATH
peek event watch ADDRESS ABI EVENT
peek events-watch ADDRESS ABI EVENT
peek get-abi NAME
peek help [COMMANDS]
peek list-abi
peek plugins
peek plugins:install PLUGIN...
peek plugins:inspect PLUGIN...
peek plugins:install PLUGIN...
peek plugins:link PLUGIN
peek plugins:uninstall PLUGIN...
peek plugins:uninstall PLUGIN...
peek plugins:uninstall PLUGIN...
peek plugins update
peek set-abi NAME ABIPATH
peek wallet generate
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
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
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
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
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
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
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
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
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
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
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
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]
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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