Connect ligthhouse validator directly to ETH2 node?

Is it possible to connect a lighthouse validator directly to the infura ETH2 endpoint?

I tried this but didn’t work:

lighthouse vc --network mainnet --beacon-nodes

(I’ve replace my project id and secret in the above example)

My validator just gives error:

WARN Offline beacon node endpoint: <snip: shows endpoint URL here>, error: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "https", host: Some(Domain("")), port: None, path: "/eth/v1/node/version", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("dns error", Custom { kind: Other, error: "failed to lookup address information: Name or service not known" })) })

Ok i found the problem is I should be using endpoint:

(As shown in the eth2 docs)

Not (as shown on my project settings page):

Hi @dave149012048, and welcome to the Infura community!

Thank you so much for posting your solution - glad you figured it out! I’ve passed this along to the developers so we can update our project settings page to make this less confusing :slight_smile: