BSV.ARC.Types.Response (bsv_sdk v1.1.0)

Copy Markdown View Source

Response from the ARC API.

Summary

Functions

Parse a JSON map (string keys, camelCase) into an ArcResponse.

Types

t()

@type t() :: %BSV.ARC.Types.Response{
  block_hash: String.t() | nil,
  block_height: non_neg_integer() | nil,
  detail: String.t() | nil,
  extra_info: String.t() | nil,
  instance: String.t() | nil,
  merkle_path: String.t() | nil,
  status: integer() | nil,
  timestamp: String.t() | nil,
  title: String.t() | nil,
  tx_status: String.t() | nil,
  txid: String.t()
}

Functions

from_json(map)

@spec from_json(map()) :: t()

Parse a JSON map (string keys, camelCase) into an ArcResponse.