Anoma.Client (Anoma v0.25.0)

Documentation for Client.

Summary

Functions

I connect to a remote node over GRPC.

Given a Client, I disconnect it and cleanup.

Types

@type t() :: %Anoma.Client{
  grpc_port: integer() | nil,
  supervisor: pid() | nil,
  type: (:grpc | :tcp) | nil
}

Functions

Link to this function

connect(host, port, listen_port)

@spec connect(String.t(), integer(), integer()) ::
  {:ok, t()} | {:error, term()} | {:error, term(), term()}

I connect to a remote node over GRPC.

Link to this function

disconnect(client)

@spec disconnect(t()) :: :ok

Given a Client, I disconnect it and cleanup.