CLI Reference

Command-line interface for interacting with Bitplanet blockchain.

Overview

The evmd CLI provides commands for:

  • Querying blockchain state

  • Submitting transactions

  • Managing keys and accounts

  • Node configuration and status

Query Commands

Bank Module

Query all balances:

evmd query bank balances cosmos1... --output json

Query specific denomination:

evmd query bank balances cosmos1... --denom bplcoin --output json

Query total supply:

evmd query bank total --output json

Staking Module

Query all validators:

Query specific validator:

Query delegations:

Governance Module

Query all proposals:

Query specific proposal:

Query votes for proposal:

Distribution Module

Query delegator rewards:

Query rewards from specific validator:

Node Status

Check node status:

Check sync status:

Transaction Commands

Bank Module

Send tokens:

Staking Module

Delegate to validator:

Undelegate from validator:

Redelegate between validators:

Governance Module

Vote on proposal:

Vote options:

  • yes: Vote in favor

  • no: Vote against

  • abstain: Abstain from voting

  • no_with_veto: Vote against with veto power

Submit text proposal:

Distribution Module

Withdraw rewards:

Withdraw all rewards:

Key Management

List keys:

Add new key:

Import key from mnemonic:

Export key:

Show key address:

Show key as JSON:

Gas Configuration

Auto Gas Estimation

The --gas-adjustment multiplier adds a buffer to the estimated gas.

Manual Gas Setting

Gas Price

Direct Fee Setting

Output Formats

JSON output:

Text output (default):

Pipe to jq for formatting:

Common Flags

Transaction Flags

  • --chain-id: Chain identifier (default: 9001)

  • --from: Name or address of key to sign with

  • --gas: Gas limit (or "auto" for estimation)

  • --gas-adjustment: Gas adjustment multiplier (default: 1.0)

  • --gas-prices: Gas prices (e.g., "0.001bplcoin")

  • --fees: Transaction fees

  • --yes: Skip confirmation prompt

  • --broadcast-mode: Transaction broadcast mode (sync, async, block)

Query Flags

  • --output: Output format (json, text)

  • --height: Block height to query

  • --node: RPC endpoint (default: tcp://localhost:26657)

Configuration

Initialize config:

View config:

Set specific config value:

Node Commands

Initialize node:

Start node:

Reset node data:

Show node ID:

Show validator info:


Related: REST API Reference | gRPC API Reference

Last updated