# `BSV.JungleBus.Client`
[🔗](https://github.com/Bittoku/bsv_sdk_elixir/blob/main/lib/bsv/junglebus/client.ex#L1)

HTTP client for the JungleBus API.

# `t`

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

# `get_address_transaction_details`

```elixir
@spec get_address_transaction_details(t(), String.t()) ::
  {:ok, [BSV.JungleBus.Types.Transaction.t()]} | {:error, term()}
```

Get full transaction details for an address.

# `get_address_transactions`

```elixir
@spec get_address_transactions(t(), String.t()) ::
  {:ok, [BSV.JungleBus.Types.AddressInfo.t()]} | {:error, term()}
```

Get address transaction metadata.

# `get_block_header`

```elixir
@spec get_block_header(t(), String.t()) ::
  {:ok, BSV.JungleBus.Types.BlockHeader.t()} | {:error, term()}
```

Get a block header by hash or height.

# `get_block_headers`

```elixir
@spec get_block_headers(t(), String.t(), non_neg_integer()) ::
  {:ok, [BSV.JungleBus.Types.BlockHeader.t()]} | {:error, term()}
```

List block headers starting from a given block.

# `get_transaction`

```elixir
@spec get_transaction(t(), String.t()) ::
  {:ok, BSV.JungleBus.Types.Transaction.t()} | {:error, term()}
```

Get a transaction by its ID.

# `new`

```elixir
@spec new(BSV.JungleBus.Config.t()) :: t()
```

Create a new JungleBus client with the given configuration.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
