# Command Overview

Below is a quick reference of the different commands available.

# Commands

Command Description
transactions [count] Shows statistics on the latest transactions on the blockchain.
hashrate [options] <blocks> [toblock] Calculate the network hashrate for the given number of latest blocks.
send <recipient> <amount> Sends Tokens to the recipient from the configured account, with Tokens given in whole units.
transfers [options] [to] [depth] Reads past Token transfers.
balance <account> Gets the Token balance of the given account.
token-balances [options] <address> Gets all Token balances for the given Token contract address.
receipt <hash> Loads a transaction receipt by the given hash.
account <name> Creates a new account in the file <name>.json.
private-key Creates a new account and prints the address and private key.
gas [options] [type] Get the current gas price or other values from ETH Gas Station.
ether <recipient> <amount> Sends Ether to the recipient from the configured account, with Ether given in whole units.
balance-eth [options] <address> Query the Ether balance of an address.
last-gas <address> Find the last transaction of an address and print its info.
last-activity [options] <address> Find the last transaction the given address submitted and output the date.
contract-call <method> [arguments...] Make an arbitrary contract method call (non-transaction).
multi-call [options] <method> [arguments...] Make contract view calls on a list of arguments, where each arguments should be a comma-separated list.
contract-send [options] <method> [arguments...] Make an arbitrary contract method "send" as a transaction.
contract-deploy [options] <build-file> [arguments...] Deploy a contract from a Truffle build file.
contract-bytecode <build-file> [arguments...] Output deployable bytecode with constructor arguments encoded from a Truffle build file.
function-signature <function-string> Calculates the ABI signature of the given function string.
topic0 <event-string> Calculates the topic0 hash for an event type.
functions [abi-file] Lists all functions in the ABI from the file or URL if given, or the default ABI.
events [abi-file] Lists all events in the ABI from the file or URL if given, or the default ABI.
decode-input <data> Decodes ABI encoded input data to functions.
abi [options] <source> Loads an ABI from the source and saves it to file. Source can be a contract address or web URL.
code [options] <source> Loads the contract code from the source and saves it to file. Source can be a contract address or
logs <address> [topic0] Get past event logs for the given contract address, optionally filtered by topic0.
get-bytecode <address> Get the bytecode of a given address.
wei [options] <value> Convert Ether to Wei, or other decimal counts with -d.
from-wei [options] <value> Convert Wei to Ether, or other decimal counts with -d.
has-functions <address> [functions...] Attempts to detect which functions exist in the given contract address.
is-contract [address...] Detects which of the given addresses are contracts
vanity [options] <type> <text> Generate a vanity address.
help [command] Display help for a command.
embed-config <name> Generates a configuration file <name>.yaml for the ABI that can be used with show-features and build-blocks.
show-features [config-file] Loads all view functions (contract-call) in the ABI from the file or URL if given and generates embed snippets.
build-blocks [config-file] Loads all transaction functions (contract-call) in the ABI from the file or URL if given and generates embed snippets.

# Options

-V, --version output the version number
-a, --account <account file> File containing the encrypted account
-p, --password <password file> File containing the account password
-k, --privatekey <key> Private key, can be used instead of account and password
-f, --keyfile <file> Private key file instead of account and password
-n, --network <name> Use a specific Ethereum network found in the config
-q, --quiet Suppress logging output from console
--abi <file> ABI file to use, or Truffle build file
--abiraw <abi> ABI as escaped JSON
--address <address> Contract address
--gasprice <price> Specify a gas price in Gwei instead of automatic
--gaslimit <limit> Specify a gas limit instead of automatic
--nonce <nonce> Specify a nonce number, +X, or -X to control the nonce used
--noconfirm Don't wait for a confirmation for a transaction, exit after it's sent
--plain Plain output without labels or colors. This also sets --quiet
--json JSON output.
--fromblock <block> When querying transfers, start from the given block
-h, --help display help for command