func GetClientAndInfo(v *vault.Vault, acc string) (*vault.AccountInfo, *api.API, error) {
	info, err := vault.GetAccount(v, acc)
	if err != nil {
		return nil, nil, errAccountNotFound
	}

	resolver := container.Instance.GetResolveService()
	routingInfo, err := resolver.ResolveRouting(info.RoutingID)
	if err != nil {
		logrus.Error(err)
		return nil, nil, errRoutingNotFound
	}

	client, err := api.NewAuthenticated(*info.Address, info.GetActiveKey().PrivKey, routingInfo.Routing, nil)
	if err != nil {
		return nil, nil, err
	}

	return info, client, nil
}
// GetClientAndInfo will get AccountInfo and API from account in the Vault
GetClientAndInfo will get AccountInfo and API from account in the Vault
// GetClientAndInfo will get AccountInfo and API from account in the Vault
func GetClientAndInfo(v *vault.Vault, acc string) (*vault.AccountInfo, *api.API, error) {
	info, err := vault.GetAccount(v, acc)
	if err != nil {
		return nil, nil, errAccountNotFound
	}
	resolver := container.Instance.GetResolveService()
	routingInfo, err := resolver.ResolveRouting(info.RoutingID)
	if err != nil {
		logrus.Error(err)
		return nil, nil, errRoutingNotFound
	}
	client, err := api.NewAuthenticated(*info.Address, info.GetActiveKey().PrivKey, routingInfo.Routing, nil)
	if err != nil {
		return nil, nil, err
	}
	return info, client, nil
}
func GetClientAndInfo ( v * vault . Vault , acc string ) ( * vault . AccountInfo , * api . API , error ) { info , err := vault . GetAccount ( v , acc ) if err != nil { return nil , nil , errAccountNotFound } resolver := container . Instance . GetResolveService ( ) routingInfo , err := resolver . ResolveRouting ( info . RoutingID ) if err != nil { logrus . Error ( err ) return nil , nil , errRoutingNotFound } client , err := api . NewAuthenticated ( * info . Address , info . GetActiveKey ( ) . PrivKey , routingInfo . Routing , nil ) if err != nil { return nil , nil , err } return info , client , nil }
GetClientAndInfo will get AccountInfo and API from account in the Vault
GetClientAndInfo will get AccountInfo and API from account in the Vault