6 "github.com/spf13/cobra"
7 jww "github.com/spf13/jwalterweatherman"
9 "github.com/vapor/util"
12 var walletInfoCmd = &cobra.Command{
14 Short: "Print the information of wallet",
16 Run: func(cmd *cobra.Command, args []string) {
17 data, exitCode := util.ClientCall("/wallet-info")
18 if exitCode != util.Success {
25 var rescanWalletCmd = &cobra.Command{
27 Short: "Trigger to rescan block information into related wallet",
29 Run: func(cmd *cobra.Command, args []string) {
30 if _, exitCode := util.ClientCall("/rescan-wallet"); exitCode != util.Success {
34 jww.FEEDBACK.Println("Successfully trigger rescanning wallet")