跳转至

lambdacli query account

Description

This command is used for querying balance information of certain address.

Usage:

 lambdacli query account <address> [flags]

Flags

Name,shorthand Type Required Default Description
-h, --help False help for account
--height Int False Block height to query, omit to get most recent provable block
--ledger String False Use a connected Ledger device
--node String False tcp://localhost:26657 <host>:<port>to tendermint rpc interface for this chain
--trust-node String False True Don't verify proofs for responses

Examples

Query your account, you can use lambdacli keys list find your account address

 NAME:   TYPE:   ADDRESS:                                        PUBKEY:
 master  local   lambda1v7rq4afpf47wfq4qymyaa9mvvvq69f7f6k7cv9   lambdapub1addwnpepq0xqh3fs7lfw88gum0qx5h6ezh2n8pqk8xkw36lvkx7675dyztwdww453lm
 partner1        local   lambda1h7pnxzejqtzlfcad89hkn0ersjqmfsj89re3ks   lambdapub1addwnpepq2x8m074dguyvhrqw99u2dz4vrhe7k4q775gzyurtpeh78h3628xqquww0s

After that, use ./lambdacli query account you will get the detail info for the account.

./lambdacli query account lambda1v7rq4afpf47wfq4qymyaa9mvvvq69f7f6k7cv9
Account:
  Address:       lambda1v7rq4afpf47wfq4qymyaa9mvvvq69f7f6k7cv9
  Pubkey:        lambdapub1addwnpepq0xqh3fs7lfw88gum0qx5h6ezh2n8pqk8xkw36lvkx7675dyztwdww453lm
  Coins:         797998999995ulamb,80701000utbb
  AccountNumber: 0
  Sequence:      31

Common Issue

If you query an wrong account, you will get the follow information.

./lambdacli query account lambda1v7rq4afpf47wfq4qymyaa9mvvvq69f7f6x7cv9 
ERROR: decoding bech32 failed: checksum failed. Expected 6k7cv9, got 6x7cv9.