func (lnd *Lnd) GetNodeInfo(pubkey string, includeChannels bool) (*NodeInfo, error) {

	ctxb := context.Background()
	req := &lnrpc.NodeInfoRequest{
		PubKey:          pubkey,
		IncludeChannels: includeChannels,
	}
	info, err := lnd.client.GetNodeInfo(ctxb, req)
	if err != nil {
		return nil, err
	}

	return info, nil
}
//GetNodeInfo returns some info about a node identified by pubkey
GetNodeInfo returns some info about a node identified by pubkey
// GetNodeInfo returns some info about a node identified by pubkey
func (lnd *Lnd) GetNodeInfo(pubkey string, includeChannels bool) (*NodeInfo, error) {
	ctxb := context.Background()
	req := &lnrpc.NodeInfoRequest{
		PubKey:          pubkey,
		IncludeChannels: includeChannels,
	}
	info, err := lnd.client.GetNodeInfo(ctxb, req)
	if err != nil {
		return nil, err
	}
	return info, nil
}
func ( lnd * Lnd ) GetNodeInfo ( pubkey string , includeChannels bool ) ( * NodeInfo , error ) { ctxb := context . Background ( ) req := & lnrpc . NodeInfoRequest { PubKey : pubkey , IncludeChannels : includeChannels , } info , err := lnd . client . GetNodeInfo ( ctxb , req ) if err != nil { return nil , err } return info , nil }
GetNodeInfo returns some info about a node identified by pubkey
GetNodeInfo returns some info about a node identified by pubkey