Junø
WebDiscordGithubTwitter
  • Juno
    • Intro
    • Home of CosmWasm
    • Contributors - Core Software
    • Brand Identity
    • Security Disclosures
    • Economic Overview
      • Disclaimer
      • Native Asset (JUNO)
      • Incentive structure
      • Supply API - Data
  • Developer Guides
    • CosmWasm Contracts
      • Compile a Contract
      • Deploy a Contract
      • Guide: How to Upload a Smart Contract on the Juno Chain
      • Use Cw-orchestrator to speed-up your development
      • Query A Contract
      • Send Tokens to a Contract
    • Miscellaneous
      • Conversions
      • Multi Message Transaction
      • Get & Decode Transactions
      • Get Token Prices
      • Get Account Transactions
      • IBC Transfer
      • State Export / Airdrop
    • Juno Modules
      • FeeShare
      • TokenFactory
    • API Endpoints
      • Cosmos
        • Tx
          • V1beta1
            • Simulate
            • Txs
              • Block
        • Params
          • V1beta1
            • Params
        • Bank
          • V1beta1
            • Balances
              • By denom
            • Denoms metadata
            • Params
            • Spendable balances
            • Supply
        • Upgrade
          • V1beta1
            • Applied plan
            • Current plan
            • Module versions
            • Upgraded consensus state
        • Auth
          • V1beta1
            • Accounts
            • Module accounts
            • Params
        • Staking
          • V1beta1
            • Delegations
            • Historical info
            • Params
            • Pool
            • Validators
              • Delegations
                • Unbonding delegation
              • Unbonding delegations
            • Delegators
              • Redelegations
              • Unbonding delegations
              • Validators
        • Evidence
          • V1beta1
            • Evidence
        • Mint
          • V1beta1
            • Annual provisions
            • Inflation
            • Params
        • Feegrant
          • V1beta1
            • Allowance
            • Allowances
            • Issued
        • Gov
          • V1beta1
            • Params
            • Proposals
              • Deposits
              • Tally
              • Votes
        • Distribution
          • V1beta1
            • Community pool
            • Params
            • Delegators
              • Rewards
              • Validators
              • Withdraw address
            • Validators
              • Commission
              • Outstanding rewards
              • Slashes
        • Slashing
          • V1beta1
            • Params
            • Signing infos
        • Authz
          • V1beta1
            • Grants
              • Grantee
              • Granter
        • Base
          • Tendermint
            • V1beta1
              • Blocks
                • Latest
              • Node info
              • Syncing
              • Validatorsets
                • Latest
          • Node
            • V1beta1
              • Config
      • Cosmwasm
        • Wasm
          • V1
            • Code
              • Contracts
            • Contract
              • History
              • Raw
              • Smart
              • State
            • Codes
              • Params
              • Pinned
            • Contracts
              • Creator
      • Juno
        • Feeshare
          • V1
            • Fee shares
            • Params
        • Tokenfactory
          • V1beta1
            • Denoms from creator
            • Params
            • Denoms
              • Authority metadata
      • Ibc
        • Apps
          • Router
            • V1
              • Params
      • API Specification
    • Local Interchain
      • Local Interchain Rust Example
    • Junod Local Dev Setup
    • Integrate Leap wallet
    • SubQuery Indexer
  • Governance
    • Before submitting a proposal
    • Submitting a Proposal (CLI)
      • Formatting Proposal Markdown
  • Command-Line Interface (CLI)
    • Introduction
    • Useful CLI Commands
    • Module Reference
      • bank
      • distribution
      • gov
      • keys
      • params
      • slashing
      • staking
      • status
      • tendermint
      • upgrade
      • wasm
  • Nodes & Validators
    • Junod Installation and setup
    • Setting up Cosmovisor
    • Mainnet Setup and Tooling
    • Joining Mainnet
      • Sync from Snapshot
      • Sync with state-sync
      • Mainnet Upgrades
    • Joining Testnet
    • Relaying
    • Juno Delegations Program
Powered by GitBook
On this page
  • Introduction
  • Working Directory
  • Connecting to a Full-Node
  • Global Flags
  • Module Commands

Was this helpful?

  1. Command-Line Interface (CLI)

Introduction

A general introduction Juno cli along with a brief description of commands and flags

PreviousFormatting Proposal MarkdownNextUseful CLI Commands

Last updated 2 years ago

Was this helpful?

Introduction

junod is a command line client for the Juno network. Juno users can use junod to send transactions to the Juno network and query the blockchain data.

See for instructions on installing junod.

Working Directory

The default working directory for the junod is $HOME/.juno, which is mainly used to store configuration files and blockchain data. The Juno key data is saved in the working directory of junod. You can also specify the junod working directory by using the --home flag when executing junod.

Connecting to a Full-Node

By default, junod uses tcp://localhost:26657 as the RPC address to connect to the Juno network. This default configuration assumes that the machine executing junod is running as a full-node.

The RPC address can be specified to connect to any full-node with an exposed RPC port by adding the --node flag when executing junod

Global Flags

GET Commands

All GET commands have the following global flags:

Name, shorthand
type
Default Value
Description

--chain-id

string

The network Chain ID

--home

string

$HOME/.juno

Directory for config and data

--trace

string

Print out full stack trace on errors

--log_format

string

plain

Logging format (json | plain)

POST Commands

All POST commands have the following global flags:

Name, shorthand
type
Default
Description

--account-number

int

0

AccountNumber to sign the tx

--broadcast-mode

string

sync

Transaction broadcasting mode (sync | async | block)

--dry-run

bool

false

Ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it

--fees

string

Fees to pay along with transaction

--from

string

Name of private key with which to sign

--gas

string

200000

Gas limit to set per-transaction; set to "simulate" to calculate required gas automatically

--gas-adjustment

float

1

Adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set

--gas-prices

string

Gas prices in decimal format to determine the transaction fee

--generate-only

bool

false

Build an unsigned transaction and write it to STDOUT

--help, -h

string

Print help message

--keyring-backend

string

os

Select keyring's backend

--ledger

bool

false

Use a connected Ledger device

--memo

string

Memo to send along with transaction

--node

string

tcp://localhost:26657

<host>:<port> to tendermint rpc interface for this chain

--offline

string

Offline mode (does not allow any online functionality)

--sequence

int

0

Sequence number to sign the tx

--sign-mode

string

Choose sign mode (direct | amino-json), this is an advanced feature

--trust-node

bool

true

Don't verify proofs for responses

--yes

bool

true

Skip tx broadcasting prompt confirmation

--chain-id

string

The network Chain ID

--home

string

$HOME/.juno

Directory for config and data

--trace

string

Print out full stack trace on errors

Module Commands

Subcommand

Description

Bank subcommands for querying accounts and sending coins etc.

Distribution subcommands for rewards management

Governance and voting subcommands

Keys allows you to manage your local keystore for tendermint

Query parameters of modules

Slashing subcommands

Staking subcommands for validators and delegators

Query remote node for status

Tendermint state querying subcommands

Tx subcommands

Software Upgrade subcommands

Interact with smart contracts

here
bank
distribution
gov
keys
params
slashing
staking
status
tendermint
tx
upgrade
wasm
Page cover image