BSV.ARC.Client (bsv_sdk v1.1.0)

Copy Markdown View Source

HTTP client for the ARC API.

Summary

Functions

Broadcast a transaction to the ARC API.

Create a new ARC client with the given configuration.

Query the status of a transaction by txid.

Types

t()

@type t() :: %BSV.ARC.Client{config: BSV.ARC.Config.t(), req: Req.Request.t()}

Functions

broadcast(client, tx)

@spec broadcast(t(), BSV.Transaction.t()) ::
  {:ok, BSV.ARC.Types.Response.t()} | {:error, term()}

Broadcast a transaction to the ARC API.

new(config)

@spec new(BSV.ARC.Config.t()) :: t()

Create a new ARC client with the given configuration.

status(client, txid)

@spec status(t(), String.t()) :: {:ok, BSV.ARC.Types.Response.t()} | {:error, term()}

Query the status of a transaction by txid.