func CreateNewAccount(iCmd interface{}, w *wallet.Wallet) (interface{}, error) {
	cmd := iCmd.(*qitmeerjson.CreateNewAccountCmd)
	if cmd.Account == "*" {
		return nil, &qitmeerjson.ErrReservedAccountName
	}
	_, err := w.NextAccount(waddrmgr.KeyScopeBIP0044, cmd.Account)
	if waddrmgr.IsError(err, waddrmgr.ErrLocked) {
		return nil, &qitmeerjson.RPCError{
			Code: qitmeerjson.ErrRPCWalletUnlockNeeded,
			Message: "Creating an account requires the wallet to be unlocked. " +
				"Enter the wallet passphrase with walletpassphrase to unlock",
		}
	}
	return "succ", err
}
createNewAccount handles a createnewaccount request by creating and
returning a new account. If the last account has no transaction history
as per BIP 0044 a new account cannot be created so an error will be returned.
package walletrpc
import (
	"encoding/hex"
	"fmt"
	"time"
	util "github.com/Qitmeer/qitmeer-wallet/utils"
	"github.com/Qitmeer/qitmeer-wallet/wallet/txrules"
	"github.com/Qitmeer/qitmeer/core/address"
	"github.com/Qitmeer/qitmeer/crypto/ecc/secp256k1"
	"github.com/Qitmeer/qitmeer/log"
	"github.com/Qitmeer/qitmeer-wallet/json/qitmeerjson"
	waddrmgr "github.com/Qitmeer/qitmeer-wallet/waddrmgs"
	"github.com/Qitmeer/qitmeer/core/types"
	"github.com/Qitmeer/qitmeer-wallet/wallet"
)