diff --git a/cli/wallet.go b/cli/wallet.go index b8372a749..34e2376b7 100644 --- a/cli/wallet.go +++ b/cli/wallet.go @@ -75,7 +75,12 @@ var walletBalance = &cli.Command{ } ctx := ReqContext(cctx) - addr, err := address.NewFromString(cctx.Args().First()) + var addr address.Address + if cctx.Args().First() != "" { + addr, err = address.NewFromString(cctx.Args().First()) + } else { + addr, err = api.WalletDefaultAddress(ctx) + } if err != nil { return err }