Skip to main content

Commands

This section describes the commands available on JMESd, the JMES blockchain's command line interface and node daemon.

add-genesis-account

Adds a genesis account to genesis.json.

Syntax


_1
jmesd add-genesis-account <address-or-key-name> '<amount><coin-denominator>,<amount><coin-denominator>'

Example


_1
jmesd add-genesis-account acc1 '200000000ubjmes'

collect-gentxs

Collects genesis transactions and outputs them to genesis.json.

Syntax


_1
jmesd collect-gentxs

debug

Helps debug the application. For a list of syntax and subcommands, see the debug subcommands.

export

Exports the state to JSON.

Syntax


_1
jmesd export

gentx

Adds a genesis transaction to genesis.json.

Syntax


_1
jmesd gentx <key-name> <amount><coin-denominator>

Example


_8
jmesd gentx myKey 1000000ubjmes --home=/path/to/home/dir --keyring-backend=os --chain-id=test-chain-1 \
_8
--moniker="myValidator" \
_8
--commission-max-change-rate=0.01 \
_8
--commission-max-rate=1.0 \
_8
--commission-rate=0.07 \
_8
--details="..." \
_8
--security-contact="..." \
_8
--website="..."

help

Shows help information.

Syntax


_1
jmesd help

init

Initializes the configuration files for a validator and a node.

Syntax


_1
jmesd init <moniker>

Example


_1
jmesd init myNode

keys

Manages Keyring commands. For a list of syntax and subcommands, see the keys subcommands.

migrate

Migrates the source genesis into the target version and prints to STDOUT.

Syntax


_1
jmesd migrate <path-to-genesis-file>

Example


_1
jmesd migrate /genesis.json --chain-id=testnet --genesis-time=2020-04-19T17:00:00Z --initial-height=4000

query

Manages queries. For a list of syntax and subcommands, see the query subcommands.

rosetta

Creates a Rosetta server.

Syntax


_1
jmesd rosetta

start

Runs the full node application with Tendermint in or out of process. By default, the application runs with Tendermint in process.

Syntax


_1
jmesd start

status

Displays the status of a remote node.

Syntax


_1
jmesd status

tendermint

Manages the Tendermint protocol.

testnet

Creates a testnet with the specified number of directories and populates each directory with the necessary files.

Syntax


_1
jmesd testnet

Example


_1
jmesd testnet --v 6 --output-dir ./output --starting-ip-address 192.168.10.2

tx

Retrieves a transaction by its hash, account sequence, or signature. For a list of full syntax and subcommands, see the tx subcommands.

Syntax to query by hash


_1
jmesd query tx <hash>

Syntax to query by account sequence


_1
jmesd query tx --type=acc_seq <address>:<sequence>

Syntax to query by signature


_1
jmesd query tx --type=signature <sig1_base64,sig2_base64...>

txs

Retrieves transactions that match the specified events where results are paginated.

Syntax


_1
jmesd query txs --events '<event>' --page <page-number> --limit <number-of-results>

Example


_1
jmesd query txs --events 'message.sender=cosmos1...&message.action=withdraw_delegator_reward' --page 1 --limit 30

unsafe-reset-all

Resets the blockchain database, removes address book files, and resets data/priv_validator_state.json to the genesis state.

Syntax


_1
jmesd unsafe-reset-all

validate-genesis

Validates the genesis file at the default location or at the location specified.

Syntax


_1
jmesd validate-genesis </path-to-file>

Example


_1
jmesd validate-genesis </genesis.json>

version

Returns the version of JMES you're running.

Syntax


_1
jmesd version