Skip to main content

get_http_rpc_host_from_env

Function get_http_rpc_host_from_env 

Source
pub fn get_http_rpc_host_from_env() -> String
Expand description

Get the HTTP RPC host from environment variable or resolve local IP as fallback

This function checks the DYN_HTTP_RPC_HOST environment variable first. If not set, it uses IP resolution to determine the local IP address.

ยงReturns

A string representation of the HTTP RPC host address