func (k KuCLIContext) GetAccountInfo() (exported.Account, error) {
	return NewAccountRetriever(k).GetAccount(k.GetAccountID())
}
GetAccountInfo get account info by from account id
package txutil
import (
	"io"
	"github.com/KuChainNetwork/kuchain/chain/types"
	"github.com/KuChainNetwork/kuchain/x/account/exported"
	"github.com/cosmos/cosmos-sdk/client/context"
	"github.com/cosmos/cosmos-sdk/codec"
)
type KuCLIContext struct {
	context.CLIContext
	FromAccount AccountID
}
func NewKuCLICtx(ctx context.CLIContext) KuCLIContext {
	return KuCLIContext{
		CLIContext: ctx,
	}.WithFromAccount(types.NewAccountIDFromAccAdd(ctx.GetFromAddress()))
}
func NewKuCLICtxNoFrom(ctx context.CLIContext) KuCLIContext {
	return KuCLIContext{
		CLIContext: ctx,
	}
}
func NewKuCLICtxByBuf(cdc *codec.Codec, inBuf io.Reader) KuCLIContext {
	return NewKuCLICtx(context.NewCLIContextWithInput(inBuf).WithCodec(cdc))
}
func NewKuCLICtxByBufNoFrom(cdc *codec.Codec, inBuf io.Reader) KuCLIContext {
	ctx := context.NewCLIContextWithInput(inBuf).WithCodec(cdc)
	return NewKuCLICtxNoFrom(ctx)
}
func (k KuCLIContext) WithFromAccount(from AccountID) KuCLIContext {
	k.FromAccount = from
	return k
}
func (k KuCLIContext) WithAccount(name Name) KuCLIContext {
	k.FromAccount = types.NewAccountIDFromName(name)
	return k
}
func (k KuCLIContext) GetAccountID() AccountID {
	return k.FromAccount
}
func (k KuCLIContext) WithOutput(w io.Writer) KuCLIContext {
	k.Output = w
	return k
}