ForgeSdk v1.1.4 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

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

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(pid, config) View Source
update_config(pid(), String.t()) :: any()

Link to this function

update_gas(pid, gas) View Source
update_gas(pid(), map()) :: any()