Skip to main content

connect_node

Function connect_node 

Source
pub async fn connect_node(
    addr: &str,
    token: &str,
) -> Result<HostClient<WireError>>
Expand description

Connect to a remote banc node and return the postcard-rpc client, exactly as Node::connect does over USB. Must run on a tokio runtime (the wire workers are spawned onto it).