Probe
NAME
probe - Perform Ethereum RPC calls from the comfort of your command line.
SYNOPSIS
probe
[options] command [args]
probe
[options] --version
probe
[options] --help
DESCRIPTION
This program is a set of tools to interact with Ethereum and perform conversions.
COMMANDS
General Commands
probe help Display help information about Probe.
probe completions Generate shell autocompletions for Probe.
Chain Commands
probe chain-id Get the Ethereum chain ID.
probe chain Get the symbolic name of the current chain.
probe client Get the current client version.
Transaction Commands
probe publish Publish a raw transaction to the network.
probe receipt Get the transaction receipt for a transaction.
probe send Sign and publish a transaction.
probe call Perform a call on an account without publishing a transaction.
probe rpc Perform a raw JSON-RPC request [aliases: rp]
probe tx Get information about a transaction.
probe run Runs a published transaction in a local environment and prints the trace.
probe estimate Estimate the gas cost of a transaction.
probe access-list Create an access list for a transaction.
probe logs Get logs by signature or topic
Block Commands
probe find-block Get the block number closest to the provided timestamp.
probe gas-price Get the current gas price.
probe block-number Get the latest block number.
probe basefee Get the basefee of a block.
probe block Get information about a block.
probe age Get the timestamp of a block.
Account Commands
probe balance Get the balance of an account in wei.
probe storage Get the raw value of a contract's storage slot.
probe proof Generate a storage proof for a given storage slot.
probe nonce Get the nonce for an account.
probe code Get the bytecode of a contract.
probe codesize Get the runtime bytecode size of a contract.
ENS Commands
probe lookup-address Perform an ENS reverse lookup.
probe resolve-name Perform an ENS lookup.
probe namehash Calculate the ENS namehash of a name.
Etherscan Commands
probe etherscan-source Get the source code of a contract from Etherscan.
ABI Commands
probe abi-decode Decode ABI-encoded input or output data.
probe abi-encode ABI encode the given function arguments, excluding the selector.
probe 4byte Get the function signatures for the given selector from https://sig.eth.samczsun.com.
probe 4byte-decode Decode ABI-encoded calldata using https://sig.eth.samczsun.com.
probe 4byte-event Get the event signature for a given topic 0 from https://sig.eth.samczsun.com
probe calldata ABI-encode a function with arguments.
probe calldata-decode Decode ABI-encoded input data.
probe pretty-calldata Pretty print calldata.
probe selectors Extracts function selectors and arguments from bytecode
probe upload-signature Upload the given signatures to https://sig.eth.samczsun.com.
Conversion Commands
probe format-bytes32-string Formats a string into bytes32 encoding.
probe from-bin Convert binary data into hex data.
probe from-fixed-point Convert a fixed point number into an integer.
probe from-utf8 Convert UTF8 to hex.
probe from-wei Convert wei into an ETH amount
probe parse-bytes32-address Parses a checksummed address from bytes32 encoding.
probe parse-bytes32-string Parses a string from bytes32 encoding.
probe to-ascii Convert hex data to an ASCII string.
probe to-base Convert a number of one base to another.
probe to-bytes32 Right-pads hex data to 32 bytes.
probe to-dec Converts a number of one base to decimal
probe to-fixed-point Convert an integer into a fixed point number.
probe to-hex Converts a number of one base to another
probe to-hexdata Normalize the input to lowercase, 0x-prefixed hex.
probe to-int256 Convert a number to a hex-encoded int256.
probe to-rlp RLP encodes hex data, or an array of hex data
probe to-uint256 Convert a number to a hex-encoded uint256.
probe to-unit Convert an ETH amount into another unit (ether, gwei, wei).
probe to-wei Convert an ETH amount to wei.
probe shl Perform a left shifting operation.
probe shr Perform a right shifting operation.
Utility Commands
probe sig Get the selector for a function.
probe sig-event Generate event signatures from event string.
probe keccak Hash arbitrary data using keccak-256.
probe compute-address Compute the contract address from a given nonce and deployer address.
probe create2 Generate a deterministic contract address using CREATE2
probe interface Generate a Ylem interface from a given ABI.
probe index Compute the storage slot for an entry in a mapping.
probe concat-hex Concatenate hex strings.
probe max-int Get the maximum i256 value.
probe min-int Get the minimum i256 value.
probe max-uint Get the maximum u256 value.
probe to-check-sum-address Convert an address to a checksummed format (EIP-55).
Wallet Commands
probe wallet Wallet management utilities.
probe wallet new Create a new random keypair.
probe wallet address Convert a private key to an address.
probe wallet sign Sign a message.
probe wallet vanity Generate a vanity address.
probe wallet verify Verify the signature of a message.
OPTIONS
Special Options
-V
--version
Print version info and exit.
Common Options
-h
--help
Prints help information.
EXAMPLES
-
Call a function on a contract:
probe call 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 \
"balanceOf(address)(uint256)" 0x... -
Decode raw calldata:
probe calldata-decode "transfer(address,uint256)" \
0xa9059cbb000000000000000000000000e78388b4ce79068e89bf8aa7f218ef6b9ab0e9d0000000000000000000000000000000000000000000000000008a8e4b1a3d8000 -
Encode calldata:
probe calldata "someFunc(address,uint256)" 0x... 1
BUGS
See https://github.com/bchainhub/foxar/issues for issues.