Anoma.Client (Anoma v0.29.0)

Documentation for Client.

Summary

Functions

I return the list of intents in the node I'm connected to.

I connect to a remote node over GRPC.

Given a Client, I disconnect it and cleanup.

I return the list of intents in the node I'm connected to.

I return the list of intents in the node I'm connected to.

I return the list of intents in the node I'm connected to.

I return the list of intents in the node I'm connected to.

I run a Nock program with its inputs, and return the result.

Types

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

Functions

Link to this function

add_intent(intent)

@spec add_intent(Anoma.TransparentResource.Transaction.t()) :: any()

I return the list of intents in the node I'm connected to.

Link to this function

connect(host, port, listen_port, node_id)

@spec connect(String.t(), integer(), integer(), String.t()) ::
  {: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.

@spec list_intents() :: [Noun.t()]

I return the list of intents in the node I'm connected to.

Link to this function

list_nullifiers()

@spec list_nullifiers() :: any()

I return the list of intents in the node I'm connected to.

Link to this function

list_unrevealed_commits()

@spec list_unrevealed_commits() :: any()

I return the list of intents in the node I'm connected to.

Link to this function

list_unspent_resources()

@spec list_unspent_resources() :: any()

I return the list of intents in the node I'm connected to.

Link to this function

run_nock(program, inputs)

@spec run_nock(Noun.t(), [Noun.t()]) :: {:ok, Noun.t()} | {:error, any()}

I run a Nock program with its inputs, and return the result.