Manic.Miner (Manic v0.1.1) View Source

Module for encapsulating a miner Merchant API client.

Link to this section Summary

Types

t()

Bitcoin miner API client

Functions

Returns a HTTP client for the given URL.

Returns a map of Manic's known miners.

Returns a miner client for the given URL.

Link to this section Types

Specs

t() :: %Manic.Miner{
  client: Tesla.Client.t(),
  options: keyword(),
  url: String.t() | atom()
}

Bitcoin miner API client

Link to this section Functions

Specs

client(
  String.t() | atom(),
  keyword()
) :: Tesla.Client.t()

Returns a HTTP client for the given URL.

Specs

known_miners() :: map()

Returns a map of Manic's known miners.

Specs

new({String.t() | atom(), keyword()}) :: t()

Returns a miner client for the given URL.

Specs

new(
  String.t() | atom(),
  keyword()
) :: t()