ForgeSdk v0.33.2 ForgeSdk.RpcConn View Source

Persistent gRPC connection to Forge GRPC server.

Link to this section Summary

Link to this section Functions

Link to this function

get_config(name) View Source
get_config(atom()) :: String.t() | {:error, :closed}

Link to this function

get_conn(name) View Source
get_conn(atom()) :: ForgeSdk.Conn.t() | {:error, :closed}

Link to this function

start_link(name, endpoint, opts, callback) View Source
start_link(atom(), String.t(), Keyword.t(), (() -> any()) | nil) ::
  GenServer.on_start()

The parameters for start_link/3 are:

  • endpoint - the address of gRPC server in host:port format
  • opts - the options for gRPC http2 client gun
  • callback - the 0 arity function to be called when gRPC connection is established
Link to this function

update_config(name, config) View Source
update_config(atom(), String.t()) :: any()

Link to this function

update_gas(name) View Source
update_gas(atom()) :: any()